isn't <validator class="FooValidator" *required="false"*> what you are
looking for?

On Wed, Nov 4, 2009 at 5:29 PM, Michal Charemza <[email protected]>wrote:

> Hi,
>
> Is it possible to define a validator so that it accepts multiple
> arguments, but some of these are stated to be not required? I have
> found a post from 2008 on this issue
> http://groups.google.com/group/agavi-users/browse_thread/thread/105f5a71b770f6fc/337bed4097f6a24f?lnk=gst&q=optional#337bed4097f6a24f
>  , but without any responses.
>
> Why I want this: I am making a validator that exports a Doctrine
> record populated with fields entered on a webpage. However, some of
> these fields are optional, and it appears that the validator won't run
> unless all of the specified arguments are submitted by the user.
>
> Michal.
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.agavi.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to