Thanks you guys for replying.  I guess I was a bit unclear in where my
confusion was.  I understand the difference between RootPanel and
RootLayoutPanel.  However, I had a basic login screen and no click
events were being triggered because somehow by adding my login window
to the RootLayoutPanel, an extra invisible <div> was thrown on top of
everything.  When added to the RootPanel (even though you're not
supposed to) the div was not there and the click event registered
(though the formatting was gone).

I went with the more straightforward instantiation of the login window
you suggested Stefan and the problem went away.

John

On Jun 7, 4:15 am, googelybear <googelyb...@gmail.com> wrote:
> @Stefan: That's what I thought too, and the javadoc and the dev pages
> make you believe that (Use LayoutPanels, they are new, shiny, better).
> But the layout panels are drastically different from the normal
> panels. If you want to have a "traditional" website behavior where the
> browser displays scrollbars as soon as the content gets too big (e.g.
> gmail) do NOT use LayoutPanels. If you want a more "application like"
> look, where the app fills the entire client-area of the browser and
> displays scrollbars itself (which means every gwt container by itself)
> use the new panels. A popular example for this is google wave. That's
> probably what those panels have been created for. So choose wisely ;-)
>
> You can read more about this 
> here:http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> Another thing to keep in mind: Stuffing a layout panel in a normal
> panel is generally a bad idea.
>
> On Jun 7, 7:23 am, "Stefan U." <stefan.uk...@gmail.com> wrote:
>
>
>
> > @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/DevGuideUiPan...
> > Do you agree?)
>
> > Best regards,
> > Stefan
>
> > On 7 Jun., 01:55, googelybear <googelyb...@gmail.com> 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." <stefan.uk...@gmail.com> wrote:
>
> > > > Hi John,
>
> > > > On 4 Jun., 20:13, John <bradley.r...@gmail.com> 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 google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to