Hello:
I have a GWT widget that subclasses the Composite, defined using
UiBinder. I also have a FormPanel within the widget. However it
appears that initWidget call fails for the widget. I have included the
UiBinder definition, it would be great if someone could let me know if
I am missing something here.
Cheers
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style>
.error {
font-weight: bold;
color: red;
}
.flexTableCell {
border-width: 1px 1px 1px 1px;
border-style: solid;
border-radius: 7px;
-moz-border-radius: 7px;
border-color: #5599bb;
padding: 5px;
}
</ui:style>
<g:HTMLPanel styleName="{style.flexTableCell}">
<g:Label ui:field="errorMessageLabel" styleName="{style.error}"
/>
<table>
<tr>
<td> Name </td>
<td>
<g:TextBox ui:field="tenantName" />
</td>
</tr>
<tr>
<td> Address Line 1 </td>
<td>
<g:TextBox ui:field="addressLine1" />
</td>
</tr>
<tr>
<td> Address Line 2 </td>
<td>
<g:TextBox ui:field="addressLine2" />
</td>
</tr>
<tr>
<td> City </td>
<td>
<g:TextBox ui:field="addressCity" />
</td>
</tr>
<tr>
<td> State </td>
<td>
<g:TextBox ui:field="addressState" />
</td>
</tr>
<tr>
<td> Zip </td>
<td>
<g:TextBox ui:field="addressZip" />
</td>
</tr>
<tr>
<td> Country </td>
<td>
<g:TextBox ui:field="addressCountry" />
</td>
</tr>
<tr>
<td>
<g:Button ui:field="saveData"> Save
Changes </g:Button>
</td>
</tr>
</table>
<g:Image ui:field="photo" />
<g:FormPanel ui:field="uploadFormPanel">
<g:TextBox ui:field="parentKeyBox" />
<g:TextBox ui:field="tenantIDBox" />
<g:FileUpload name="Upload Image" ui:field="fileName" />
<g:Button ui:field="uploadSubmit"> Upload </g:Button>
</g:FormPanel>
</g:HTMLPanel>
</ui:UiBinder>
--
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.