I have a form which has two buttons, one submit and one cancel button.  They are constructed like so:

form.add(new Button("submit", new Model(getString("label.submit", null))));
form.add(new Button("cancel", new Model(getString("label.cancel", null))));

The model of the button is used as the value attribute, and everything looks right when the form first comes up.  However, when I click submit and there is a validation error, the value attribute of the cancel button gets erased/nulled out.  Am I doing something wrong or is this a bug?

--Andrew

Reply via email to