Hi

I have a Form with fields marked with various validators.
F1 = required
F2 = length 4
F3 = required
F4 .....

And I also have 2 submit links, "save" and "search". When I click on "save",
the normal default form processing happens. But when I click on "search" I
want to bypass all "required" validators.

I saw a suggestion to modify each FormComponent's isRequired which seems
reasonable :

TextField txt = new TextField("txtfield", model) {
 public boolean isRequired() {
   return findParent(Form.class).getRootForm().findSubmittingButton()
instanceof IRequireFields;



but is there any other alternative for this scenario ?

Josh

Reply via email to