DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
| Code Block |
|---|
Button submit = new Button("submit") {
public void onSubmit() {
// handle form submission
}
}
form.add(submit);
TextField foo = new TextField("foo") {
public boolean isRequired() {
Form form = (Form) findParent(Form.class);
return form.getRootForm().findSubmittingButton() == submitButtonbutton;
}
}
form.add(foo);
|
Note the call to getRootForm. Technically, this is only required in nested forms.
...