@Dennis, thanks for correcting me. I had this confused because I started using the new GWT 2.0 layout system the same time I started using UiBinder. So, to repeat this once more: the issue of RootLayoutPanel vs. RootPanel has nothing to do with UiBinder. If you are not using any of the LayoutPanels, you should use RootPanel.
(However, this seems to be a reasonable suggestion, does it not: if you are starting a new project, try using the new GWT 2.0 layout system, i.e. Move to standards mode and use the new Layout-based panels. See http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideUiPanels.html#Standards Do you agree?) Best regards, Stefan On 7 Jun., 01:55, googelybear <[email protected]> wrote: > 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.
