Hi John,
On 4 Jun., 20:13, John <[email protected]> wrote:
> 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
Just to make sure we are on the same page: I assume that this
(LoginWindow) is a widget that you define using UIBinder.
> 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);
> }
>
Now that part is confusing. Here I would expect something like
public void onModuleLoad() {
LoginWindow loginWindow = new LoginWindow();
RootLayoutPanel.get().add(loginWindow);
}
Maybe you should have another look at the uibinder tutorial. BTW, do
not try to use RootPanel with uibinder. Uibinder will only work when
using RootLayoutPanel.
God luck!
Stefan
--
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.