> I don't want a <div> - as you point out this won't work... I would like to
> create a <tr> from UiBinder (with no <div> wrapping it).
But UiBinder internally uses a <div> to "parse the HTML" (see
UiBinderUtil.fromHtml)
Also, I didn't notice earlier, but you cannot use widgets that way,
they must be included within other widgets (only exceptions: some
custom parsers, and HTML markup inside an HTMLPanel, but they're still
descendant of a widget)
This means you'd have to use an HTMLPanel as the "root" of your
UiBinder. You could try using <g:HTMLPanel tag='tr'><td><g:Label ...></
td>...</g:HTMLPanel> but you'd still have a UiBinder<HTMLPanel,X>, not
a UiBinder<TableRowElement,X>, which changes drastically your "owner
class".
Another possibility, more a hack than anything else, include a <table>
in the UiBinder and then tweak the DOM at runtime to get rid of it
(and its, implicit in markup, <tbody> child).
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment