[email protected] wrote: > Hi > > I have an index page listing various records. Each record has a > checkbox next to it, which the user can check for a multi-delete > operation. > > <input type="checkbox" name="TitleID[]" value="1" />
> Can someone please suggest which validator to use in this case, to > have the checkbox array passed through to the executeWrite() method, > also what 'argument' should be used for the validator ie. Hi, I gathered a few validation gotchas a while ago and covered many common array validation cases too. Check out the article at http://blog.veikko.fi/post/68983308/agavi-tip-validation-gotchas. In your case you probably want to use AgaviNumberValidator (looks like your IDs are integers) and <arguments base="TitleID[]"><argument/></argument>. -veikko -- Veikko Mäkinen [email protected] 044 5910 413 http://blog.veikko.fi _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
