You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jarnot Voytek Contr AU HQ/SC <Vo...@MAXWELL.AF.MIL> on 2003/11/26 19:25:38 UTC

RE: struts 1.1 validation of indexed properties

Look here for an example:
http://home.earthlink.net/~dwinterfeldt/revision.html update 9/25/2001.
Works like a champ.

--
Voytek Jarnot
Quantum materiae materietur marmota monax si marmota monax materiam possit
materiari?


> -----Original Message-----
> From: Andreas Wuest [mailto:AndreasWuest@gmx.de]
> Sent: Wednesday, November 26, 2003 1:20 PM
> To: struts-user@jakarta.apache.org
> Subject: struts 1.1 validation of indexed properties
> 
> 
> hi,
> 
> i have a small problem validating index properties in my form.
> in the validation.xml file i have the following definition
> to validate my indexed properties. the validation works fine
> for the first (index = 0) property.  but i have a maximum of
> 18 indexed properties.
> 
>    <form name="tipPlayingDayPreviewForm">
>       <field property="tipsIndexed[0]" 
> depends="required,integer,intRange">
>         <arg0 key="tipPlayingDayPreviewForm.tipsIndexed" />
>         <arg1 name="intRange" key="${var:min}" resource="false" />
>         <arg2 name="intRange" key="${var:max}" resource="false" />
>         <var>
>           <var-name>min</var-name>
>           <var-value>0</var-value>
>         </var>
>         <var>
>           <var-name>max</var-name>
>           <var-value>20</var-value>
>         </var>
>       </field>
>     </form>
> 
> do i have to add all the 17 other indexed properties with 
> explicit index, just 
> like the one above (only with different indexes), or is there 
> a simpler way 
> to validate all the properties with only one definition ?
> i could not find any documentation about that. 
> i link would be very helpful, too.
> 
> thanks in advance,
> 
> Andreas
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org