You can add form level validation, creating composite validators, and add both the checkbox and the field, and the validators for the field to your composite validator.
See EqualInputValidator for an example implementation. Martijn On 7/3/06, Joni Freeman <[EMAIL PROTECTED]> wrote: > I have a curious requirement for a form. When a user submits a form, > some of the FormComponents should not be processed at all (for example, > validation should not be done). Each FormComponent has an accompanying > checkbox control which determines whether the actual control is > activated or not. > > [ ] _______ (this text field should not be processed) > [X] _______ (this should be) > > etc. > > One way to implement this could be by overriding Form.validate(). > However, it seems tedious and not very elegant, so maybe i'm missing > something obvious? > > Joni > > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Download Wicket 1.2 now! Write Ajax applications without touching JavaScript! -- http://wicketframework.org Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
