A TabPanel containing a VerticalPanel that contains a HorizontalPanel
that contains another TabPanel causes an error.
The following code demnostrates the error. It will compile fine
without errors or warnings then when launched in the Development Shell
will error with Unable to load module entry point in XXX.
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TabPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
public class demoError implements EntryPoint {
public void onModuleLoad() {
final RootPanel rootPanel = RootPanel.get();
final TabPanel tabPanel = new TabPanel();
rootPanel.add(tabPanel, 0, 0);
tabPanel.setSize("100%", "100%");
final VerticalPanel vPanel = new VerticalPanel();
tabPanel.add(vPanel, "1Tab1");
vPanel.setSize("500", "500");
final HorizontalPanel hPanel1 = new HorizontalPanel();
vPanel.add(hPanel1);
hPanel1.setSize("500", "250");
final HorizontalPanel hPanel2 = new HorizontalPanel();
vPanel.add(hPanel2);
hPanel1.setSize("500", "250");
final TabPanel infoPanel = new TabPanel();
hPanel2.add(infoPanel);
infoPanel.selectTab(0);
infoPanel.setSize("500", "500");
final HorizontalPanel horizontalPanel_3 = new HorizontalPanel();
infoPanel.add(horizontalPanel_3, "2Tab1");
final HorizontalPanel horizontalPanel_4 = new HorizontalPanel();
infoPanel.add(horizontalPanel_4, "2Tab2");
final HorizontalPanel horizontalPanel_5 = new HorizontalPanel();
infoPanel.add(horizontalPanel_5, "2Tab3"); /**/
final HorizontalPanel horizontalPanel_1 = new HorizontalPanel();
tabPanel.add(horizontalPanel_1, "1Tab2");
final HorizontalPanel horizontalPanel_2 = new HorizontalPanel();
tabPanel.add(horizontalPanel_2, "1Tab3");
tabPanel.selectTab(0);
}
}
I am filling an issue on this, but try as I might I can't find a
workaround besides commenting out the horizontal panel that contains
the second tab panel. I tested and a tab panel can contain another
tab panel so I think it must have something to do with the nesting of
the panels as above. Any ideas or suggestions for a work around?
Mark
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---