Thanks! The one at http://www.mivesto.de/agavi/agavi-faq.html I think
will answer my questions. I didn't even know the FAQ existed...

Michal.

On Thu, Mar 19, 2009 at 10:59 PM, Steffen Gransow <[email protected]> wrote:
>> Hi,
>>
>> I have a page where I have an array of inputs (descriptions for
>> photos). These are required, and I have set up a validator to ensure
>> each is non-empty. For each I also have a 'delete' checkbox (to delete
>> photos upon submission of the form).
>>
>> However, right now the bizarre situation occurs that a description for
>> a photo must be non-empty in order to delete it. I would like to avoid
>> this. Would I need a custom validator for this, or is there some
>> trickery in the validation xml file that can achieve this?
>>
>> Michal.
>>
>
>
> Without offering a direct answer to your question, I just want to mention, 
> that validators can depend on other validators and may be nested as well. I'm 
> pretty sure you can solve your problem with some nested/dependant validators. 
> Defining custom validators is not that hard either.
>
> http://www.agavi.org/documentation/tutorial/validation.html (at the bottom)
>
> http://trac.agavi.org/browser/branches/1.0/samples/app/lib/validator/AgaviSampleAppProductValidator.class.php
>
> http://www.mivesto.de/agavi/agavi-faq.html#validation_3
>
> Regards,
>
> Steffen
>
> _______________________________________________
> 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