Hi,
I am woring on building a dashboard application. The site uses a
layout template and each page has the same header footer etc. Only the
content section differs across pages.
Following the same convention, I would like to place the app in the
content section of the dashboard page.
I'm using GWT 2.0 and the UIBinder feature to layout the app. I found
that the RootLayoutPanel internally uses RootPanel.get() which
basically means that it would occupy the whole page. I would like to
define a div with some id in HTML and have GWT place the application
in that div. The way it works with RootPanel.get("mydiv");
I tried
DockLayoutPanel outer = binder.createAndBindUi(this);
RootLayoutPanel root = RootLayoutPanel.get();
root.add(outer);
and
DockLayoutPanel outer = binder.createAndBindUi(this);
RootPanel root = RootPanel.get();
root.add(outer);
With the first snippet, the app occupies the whole screen with the
second, the app is not visible at all.
I have done this without UIBidnder but can't figure out how to do it
with it.
Can someone point out how to place a app in a named div while still
using UIBinder?
I am using the sample Mail application as reference and trying to put
it in a div so that it occupies only a part of the page and the rest
of the page is plain HTML
--
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.