Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note the call to getRootForm. Technically, this is only required in nested forms.

If you would like to bypass validation altogether you can do so by:

Code Block

new Button("submit").setDefaultFormProcessing(false);

CheckBox

In this recipe, the field is only required when a checkbox on the form is checked:

...