Hi,

I have an Editor component that uses  a for component to render text fields.
My problem is, in case of an validation error how to I mark the right field.

I tried passing the name of the component but it always marked the field that was generated in the last iteration.

<component id="for" type="For">
       <binding name="source" value="ognl:list"/>
       <binding name="value" value="ognl:nameServer"/>
       <binding name="element" value="literal:tr"/>
   </component>

   <component id="hostname" type="TextField">
       <binding name="value" value="nameServer.hostName"/>
       <binding name="displayName" value="message:hostname-label"/>
   </component>

   <component id="ips" type="TextField">
       <binding name="value" value="nameServer.ips"/>
       <binding name="displayName" value="message:ips-label"/>
   </component>

       <table>
               <tr jwcid="for">
                   <td><span jwcid="hostname">ns1.au</span></td>
                   <td><span jwcid="ips">203.1.5.1</span></td>
               </tr>
      </table>

Thanks,
Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to