You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by harish krishnaswamy <wh...@yahoo.com> on 2003/03/08 18:54:28 UTC

Validator- List/Map-backed property validation

Is there a way to validate a list/map-backed property
using validator in a generic fashion? For ex. i would
like to something like the following to validate all
the lastName fileds in the list/map:

<form name="view1SubmitForm">
  <field
     property="lastName[*]"
       depends="required">
     <arg0 key="view1SubmitForm.lastName"/>
  </field>
</form>

-Harish

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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


Re: Validator- List/Map-backed property validation

Posted by Matt Raible <ma...@raibledesigns.com>.
> Is there a way to validate a list/map-backed property
> using validator in a generic fashion? For ex. i would
> like to something like the following to validate all
> the lastName fileds in the list/map:
> 
> <form name="view1SubmitForm">
>   <field
>      property="lastName[*]"
>        depends="required">
>      <arg0 key="view1SubmitForm.lastName"/>
>   </field>
> </form>
> 
> -Harish
> 

Not currently, but IMO - there should be! ;0)


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