thomas
784-6173
XForms controls with lazy authoring and binding
Five xf:input bind to nodes which are not defined in the model's instance.
<xf:input ref="lazy" >
<xf:label>lazy value:</xf:label>
</xf:input>
<xf:input ref="lazy" >
<xf:label>lazy value:</xf:label>
</xf:input>
<xf:input ref="lazy-second" >
<xf:label>laxy-second value:</xf:label>
</xf:input>
<xf:input ref="lazy-second" >
<xf:label>lazy-second value:</xf:label>
</xf:input>
<xf:input ref="lazy" >
<xf:label>lazy value:</xf:label>
</xf:input>
lazy value:
lazy value:
lazy-second value:
lazy-second value:
lazy value:
Two xf:input, one binds to a valid node in the model and the other binds to an undefined node.
<xf:input model="m2" ref="name" >
<xf:label>Name:</xf:label>
</xf:input>
<xf:input model="m2" ref="cell" >
<xf:label>Cell Phone:</xf:label>
</xf:input>
<xf:output model="m2" ref="cell" >
</xf:output>
Name:
Cell Phone: