My HTML page is like this:

  <body>
    <span id='loadingMessage'>Loading! Please wait...</span>
    <div id='eventForm'></div>
</body>

In my code I use a RootPanel to hide the "Loading" message and another one
to build the UI. Is it alright to use a RootPanel built on a "span" element?

public void onModuleLoad()
    {
     VerticalPanel vPanel = new VerticalPanel();
     vPanel.addStyleName("widePanel");
     vPanel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);

     EventForm eventForm = new EventForm();
     vPanel.add(eventForm);

     // Add the Event Form to the RootPanel
     Panel rootPanel = RootPanel.get("eventForm");
     rootPanel.add(vPanel);

     Panel loadingMessage = RootPanel.get("loadingMessage"); // *<==== is
this OK?*
     loadingMessage.setVisible(false);
    }

Thanks

Fred

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