hi, as far as gwt 2.1. HTMLPanel was treated somohow special by uibinder. (i'm not sure if it hasn't changed in newer versions) normally a widget in ui binder could contain text or html when implemented hasText and hasHTML interfaces. then the content of the node in ui.xml was parsed as text or html. however it was not allowed to contain subwidgets. on the other hand side if a widget implemented hasWidgets interface (so it was a panel :)) it contents in ui.xml has been parsed as widgets to be added to that panel. but HTMLPanel had its own dedicated parser in uibinder: com.google.gwt.uibinder.elementparsers.HTMLPanelParser, which was aware of how to parse both widgets-markup and plain-html. but widgets which inherited from HTMLParser has not been handled by that parser.
but coming back to your particular example :) - if yuo only need a html markup (not widgets) inside your widget, do not inherit from HTMLPanel but use HTML widget instead, or Composite and implement hasHTML. -- 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.
