Looking through the Agavi source, I see mention of 'child validators', and the 'or' operator. I feel maybe this could be used (in the example I gave and some others that I haven't mentioned). I've not managed to find an example of using child validators: could I ask if someone could show me how to use them, or point me in the direction of somewhere that does?
Michal. On Tue, Mar 17, 2009 at 7:34 PM, Michal Charemza <[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. > _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
