Has anyone solved this yet? I'm using GWT 1.5.3. I do not have
nested DIV tags, just one DIV tag called "gwtROOT." It must be
something simple, some setting in GWT, or something.
I had this working before checking the project into SVN. Now, I've
checked every setting in the project but it just doesn't work. There
doesn't seem to be a "GWT Ignore all Div Tags" setting I can uncheck.
Code:
<div id="gwtRoot" title="GWT Area"></div>
I wish to add all my objects at this location.
import com.google.gwt.user.client.ui.SimplePanel;
onModuleLoad()
SimplePanel rootPanel = new SimplePanel();
RootPanel.get("gwtRoot").add(rootPanel);
But it just can't find the tag.
On Apr 15, 2:38 am, Vitali Lovich <[email protected]> wrote:
> That's the general way to build GWT applications (attach all widgets to
> RootPanel.get())
>
> On Wed, Apr 15, 2009 at 4:43 AM, chee loong <[email protected]> wrote:
>
> > On Wed, Apr 15, 2009 at 4:35 PM, Vitali Lovich <[email protected]> wrote:
>
> >> Well that changes the layout doesn't it. Depends what you want to do. If
> >> you just want to add styles using Javascript, then use the DOM class. If
> >> you actually want GWT widgets out of them, consider building the page using
> >> GWT to begin with rather than trying to wrap existing HTML into GWT
> >> widgets.
>
> > Are you trying to said, instead of using few <div> to render the GWT
> > widget, and consider using 1 <div> element, and build the whole application
> > wrapping with other gwt widget and loaded with that RootPanel ?
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---