On 12 sep, 14:08, Folke <[EMAIL PROTECTED]> wrote:
> It's possible but I wouldn't call it "alright" because it's illegal to
> attach block elements to inline elements and therefore <span>
> shouldn't be used as panel element even if you never plan to add any
> other widgets.
It also has a slight overhead: RootPanel.get(...) creates a RootPanel
object and adds it to a HashMap (so that the same RootPanel is
returned in later calls with the same id).
> Use Document.get().getElementById("loadingMessage") to get the element
> and then use either Label.wrap() and setVisible() or use
> setPropertyBoolean("visible", false) directly. I prefer the former.
...or UIObject.setVisible(loadingMessage, false) ;-)
(with loadingMessage being the result of the getelementById)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---