Re: Error when defining a generic Composite widget using Java Generics
Originally, the DualList class inherited from Composite rather that FocusWidget - however, in order to use the DualList together with DataEntry, I had to extend it from FocusWidget.And I think, that the problem is related to this somehow...
Jip. You have forgotten to set a root element in your DualList. Each Widget in GWT must have such a root element.
You need to call
public DualList() {
super(Document.get().createDivElement()); // or any other HTML element that fits your needs.
// ...
}
-- J.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home