![]() | This page should serve as a "specification" (aka nominal state, not the current state) on nested form handling.
Please review the various situations and correct any mistakes or add new situations if necessary.
Thanks, Gerolf |
<form wicket:id="outer">
<form wicket:id="middle">
<form wicket:id="inner">
</form>
</form>
</form>
form...enabled
form...disabled
form...submitted form with no errors
form...form with errors
E...onError called
S...onSubmit called
_...nothing called, but input is preserved
![]() | Notice
When submitting a nested form, the entire <form> is submitted (including fileuploads), but processed according to the rules below. |
all forms enabled
outer form submitted
all forms enabled
middle form submitted
all forms enabled
inner form submitted
middle form disabled
outer form submitted
inner form disabled
outer form submitted
outer form disabled
outer form submitted
all forms enabled
middle form has error
outer form submitted
all forms enabled
middle form has errors
middle form submitted
all forms enabled
inner form has errors
middle form submitted
middle form disabled
outer form has errors
outer form submitted
all forms enabled
inner form has errors
outer form submitted
middle form disabled
inner form has (*potential) errors
outer form submitted
| Outer |
Middle |
Inner* |
| S |
_ |
_ |