He Thomas, thanks for the tip.

Tried it, and it works just fine.

Thanks, appearantly your also more creative then me :(

-- Ed


On Sep 25, 10:53 am, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> On 24 sep, 17:13, Ed <[EMAIL PROTECTED]> wrote:
>
> > Thanks Joel,
>
> > I think I understand you but let me overview my situation and fire
> > some questions.
>
> > My situation is legal situation I think:
> > I have a man part of the page that I want to use to show some static
> > information. There for I put the main page aside like explained above
> > and add the HTML text widget that is then shown. The user then simple
> > toggles between the two.
>
> Two options:
> <div id="a">Some HTML</div>
> <div id="b"></div>
> ...
> // Initialize the GWT part
> RootPanel.get("b").add(...);
> ...
> // toggle between the two parts
> RootPanel.get("a").setVisible(false);
> RootPanel.get("b").setVisible(true);
>
> or:
> <div id="container">
>    <div id="a">Some HTML</div>
> </div>
> ...
> // Initialize the GWT part
> RootPanel.get("container").add(myPanel);
> ...
> // toggle
> RootPanel.get("a").setVisible(false);
> myPanel.setVisible(true);
>
> No need to detach/attach your components/elements.
>
> (note that instead of creating a RootPanel for the static HTML part,
> you can also use:
>    UIObject.setVisible(Document.get().getElementById("a"), false);
> )
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to