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.