It appears that UiBinder Templates correspond to a single HTML
element. That single HTML element is added to the DOM. This does
not quite fit my needs. I would like a template to correspond to a
series of elements. Does anyone know if this is possible?
Let's say that I want to add a few dates to a table. Month, day, and
year are separate columns in the table. It may seem that HTMLPanel
would fit, but it adds a DIV element.
I created a DateBox class with this layout.
***** DateBox.ui.xml ***********
<ui:UiBinder>
<g:HTMLPanel>
<td> <g:TextBox ui:field="month" ></g:TextBox></td>
<td> <g:TextBox ui:field="day"></g:TextBox></td>
<td> <g:TextBox ui:field="year"></g:TextBox></td>
</g:HTMLPanel>
</ui:UiBinder>
I use dates in several places in this layout.
***** MyLayout.ui.xml ******
<ui:UiBinder>
<g:HTMLPanel>
<table>
<tr>
<td> Leading Stuff </td>
<my:DateBox ui:field="birthDate"></my:DateBox>
<td> Trailing Stuff </td>
</tr>
</table>
</g:HTMLPanel>
</ui:UiBinder>
HTMLPanel inserts div tags in the output.
***** results ******
<table>
<tr>
<td> Leading Stufff </td>
<div>
<td><input...</td>
<td><input...</td>
<td><input...</td>
</div>
<td> Trailing Stuff </td>
</tr>
</table>
Thanks for your help,
Tim K
--
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.