Am I hopelessly confused, but can’t “APIs to facilitate sharing connections between [AJAX] frameworks and components” can already be done, at least for Mozilla, using XPCom (which would also put some end to the endless stream of “How do I do synchronous XmlHTTPRequests?” questions
“and Don’t!” answers)…
gwt
It’s Friday…
- (*) to .
- FP!
- The endsingularity is near.
Hear, hear!
IFOWONGO!!!. - No kidding… I’ve been wondering about this myself:
> where can I find the correct capitalization for the xmlrpcfilter setting ? - Really, Sherlock? It looks like
xmlrpc_filter
from where I’m sitting (CherryPy 2.2.1). How many different misleading combinations of capitalizations and underscore placements can you find in online “docs”? This is one of those really annoying things about this stuff… (And don’t tell me to RTFC, though that’s the only thing that resolved it for me…) - Most excellent all things GWT resource
- Sorokin ported to Java
- What’s up with the snide attitudes? This is
not even worth commenting, so I won’t… But a propos: what is wrong with “want[ing] everything done through [the] IDE“? This desire could be due to “Laziness, Impatience and Hubris“. Computers are good at repetitive tasks and I hate wasting keystrokes… - A propos of nothing (I think this is my motto), it’s so nice that
com.google.gwt.user.client.ui.MouseListener extends java.util.EventListener
, having nothing to do withcom.google.gwt.user.client.ui.EventListener
… Not!
How to waste a weekend
I spent half of Friday tracking down a GWT problem that caused problems in both Opera and IE. By trial and error I kind of isolated it to my use of syntactic sugar (yeah, I know…) Then I spent most of Saturday trying to come up with a pithy reproducible case. Here it is
(posted to http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/ae307a25041f3a7e/, reproducing here for my own reference):
Consider the following source (made with -style pretty):
package x.y.z;
import com.google.gwt.core.client.*;
import com.google.gwt.user.client.ui.*;public class WastedWeekend extends Label implements EntryPoint {
public void onModuleLoad() {
foo();
}void foo() {
Button[] stuff = new Button[1];
doNothing(stuff[0] = new Button());
}void doNothing(Widget w) {
The foo() function translates into the following:
RootPanel.get().add(w);
}
This is all well and good. But now let me change, in
function _$foo(_this$static){
var _stuff;
_stuff = _initDims('[Lcom.google.gwt.user.client.ui.Button;', [0],
[5], [1], null);
_$doNothing(_this$static, _stuff[0] = _$Button(new _Button()));}
foo()
the type of “stuff” toLabel
(that is, the superclass ofWastedWeekend
). That is, as follows:
void foo() {
Label[] stuff = new Label[1];
doNothing(stuff[0] = new Label());}Now the translation is:
functionfunction _$foo(_this$static){
var _stuff;
_stuff = _initDims('[Lcom.google.gwt.user.client.ui.Label;', [0],
[7], [1], null);
_$doNothing(_this$static, _setCheck(_stuff, 0, _$Label(new
_Label())));}
Notice the difference? What’s going on?
This is reproducible whenever this sample
Now, should I spend Sunday trying to actually figure this out?WastedWeekend
class is the same subclass of the same
Widget
as thestuff
variable.
(I did not go into more details as far as inheritance tree, so I don’t know what happens if they are siblings or something)…
KISS
A propos that meme/urban legend/тема/байка about the space pen and a pencil…
I’m using Alexei Sokolov’s version, not the SVG one, but close enough… So, just like commenter Stefan, I was wondering about using text with GWT Canvas. So when Robert Hanson responded that “That is definately on my to-do list, but I don’t have a timeframe for doing it”, I envisioned some weird stuff like sending vector font definitions and rendering them or some such thing…
And then I think, PopupPanel
s will do… Don’t forget to override onEventPreview()
like so: