Thanks for the help and the tips, it worked!

On Mar 21, 12:29 pm, zggame <[email protected]> wrote:
> A small typo.   I think RootLayoutPanel only has get(), not get(String
> element).  So there can only be one RootLayoutPanel, which anchors on
> <body>.  Generally, I found it is better not to mix  *layoutPanels and
> old panels.  Things are easily screwed up.  I once put a simplePanel
> in a DockLayoutPanel and that one disappears from time to time.  I
> change the simplePanel to LayoutPanel and it works fine since.
>
> On Mar 21, 7:40 am, Jaan <[email protected]> wrote:
>
> > Layout panels must be added into to the RootLayoutPanel, not
> > RootPanel.
>
> > So change
> >  RootPanel.get("zodiacEntryPoint").add(lol);
> > to
> >  RootLayoutPanel.get("zodiacEntryPoint").add(lol);
>
> > and everything should work.
>
> > On Mar 20, 8:55 pm, Marcelo Sena <[email protected]> wrote:
>
> > > DockLayoutPanel lol = new DockLayoutPanel(Unit.PX);
> > > lol.add(new Label("LOL"));
> > > RootPanel.get("zodiacEntryPoint").add(lol);
>
> > > This code produces no output.
>
> > > RootPanel.get("zodiacEntryPoint").add(new Label("LOL"));
>
> > > This code shows "LOL" at left side of the page.
>
> > > Here is the root HTML of the application:
>
> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> > > "http://www.w3.org/TR/html4/loose.dtd";>
> > > <html>
> > >   <head>
> > >     <meta http-equiv="content-type" content="text/html;
> > > charset=UTF-8">
> > >     <link type="text/css" rel="stylesheet" href="Zodiac.css">
> > >     <script type="text/javascript" language="javascript" src="zodiac/
> > > zodiac.nocache.js"></script>
> > >   </head>
>
> > >   <body>
> > >     <div id="zodiacEntryPoint"></div>
> > >   </body>
> > > </html>
>
> > > Why can't DockLayoutPanel render?
>
> > > I'm using Firefox 3.5

-- 
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