DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
| Code Block |
|---|
Form nestedForm = new Form("nestedForm") {
@Override
public boolean isEnabled() {
return getRootForm().findSubmittingButton().getForm() == this;
}
};
|
In Wicket 1.5 you have to do this (otherwise you'll get a null pointer)
| Code Block |
|---|
Form nestedForm = new Form("nestedForm") {
@Override
public boolean isEnabled() {
if (getRootForm().findSubmittingButton() != null) {
return getRootForm().findSubmittingButton().getForm() == this;
} else {
return true;
}
}
|
Another way is to let your child form implement IFormVisitorParticipant as follows:
...