Hi!

I have tried Kent's DynamicForm example.

Home.html:

<table>
<tr jwcid="userList">
<td><span jwcid="userNameLabel">User name</span>&nbsp;<input type="text"
jwcid="userName"/></td>
<td><input type="password" jwcid="password"/></td>
<span jwcid="updateUser"/>
</tr>
</table>

Home.page:

<component id="userNameLabel" type="FieldLabel">
<binding name="field" value="component:userName"/>
</component>

<component id="userName" type="TextField">
<binding name="value" value="currentUser.name"/>
<binding name="validators" value="validators:required"/>
<binding name="displayName" value="literal:User name"/>
</component>

If I submit the form with an empty field, the field marked with ' ** ' But
there is some problem with the label, because the next label becomes red. If
I place the label after the textbox, everything is fine...

Istvan

Reply via email to