I try to create Container instance and use it like Composite in SWT -
i.e. just plain container with Layout, without any decoration. However
this code throws exception:
{
Container container = new Container();
{
Label label = new Label("New Label");
container.add(label);
}
rootPanel.add(container, 270, 5);
container.setSize("250px", "250px");
}
[ERROR] Unable to load module entry point class
com.mycompany.project.client.ImageViewer (see associated exception for
details)
java.lang.AssertionError: This UIObject's element is not set; you may
be missing a call to either Composite.initWidget() or
UIObject.setElement()
at com.google.gwt.user.client.ui.UIObject.getElement(UIObject.java:
511)
at com.gwtext.client.widgets.Component.getElement(Component.java:432)
at com.gwtext.client.widgets.Component.getElement(Component.java:405)
at com.google.gwt.user.client.ui.AbsolutePanel.setWidgetPositionImpl
(AbsolutePanel.java:158)
at com.google.gwt.user.client.ui.RootPanel
$DefaultRootPanel.setWidgetPositionImpl(RootPanel.java:59)
at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:
98)
I've read here
http://extjs.com/learn/Ext_FAQ_layout#Panel_vs_Container
that Container should be used instead of Panel if I don't need border/
header/etc.
So, is there way to use Container in GWT-Ext?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---