RootLayoutPanel is designed for the new "full screen" Layout panels
(GWT 2.0 and newer). RootPanel for the "regular" panels.
Use RootLayoutPanel when you have at least 1 layout panel in your app.

@Stefan: Can you explain what's wrong with using uibinder and
RootPanel as long as you do NOT have any layout panels (this is what I
am doing currently and so far it seems to work fine) ?

thanks,
Dennis

On Jun 7, 12:48 am, "Stefan U." <[email protected]> wrote:
> 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.

Reply via email to