I'm new to GWT and trying to put together a simple login screen that
displays an alert window when the user presses the Login button. The
layout is done using UIBinder in a g:DockLayoutPanel. Which means
that my LoginWindow class has to be added to the RootLayoutPanel in
the onModuleLoad() function of my EntryPoint class:
public void onModuleLoad() {
DockLayoutPanel root = uiBinder.createAndBindUi(this);
RootLayoutPanel.get().add(root);
}
However, none of the @UIHandler functions get triggered. If I instead
add the LoginWindow to the RootPanel, nothing gets shown, but from
what I've read events should then work:
DockLayoutPanel root = uiBinder.createAndBindUi(this);
DockLayoutPanel root = uiBinder.createAndBindUi(this);
RootPanel.get().add(root);
}
Now, I may be missing something very simple, but I haven't been able
to find anything online that describes how to fix this problem. My
question basically boils down to, how do you enable event triggering
of UIBinder layouts with nothing in the RootPanel?
Thanks!
John
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.