Description
I found that when upgrading from 1.3-rc2 to 1.3-final, the setRequired() on a CheckBox I had was no longer registered as a field-error when posting the form with no value in the checkbox.
Steps to reproduce:
Create a quickstrart project and put the following in the HomePage.java:
public class HomePage extends WebPage {
public HomePage(final PageParameters parameters)
}
Then HomePage.html:
<html xmlns:wicket="http://wicket.apache.org">
<body>
<div wicket:id="feedback">Feedback</div>
<form wicket:id="f">
<label>Agree</label>
<input type="checkbox" wicket:id="agree" />
<input type="submit" wicket:id="submit" />
</form>
</body>
</html>
With 1.3-final I don't get a feedback/error message. With 1.3-rc2, the feedback message "Field 'agree' is required." shows up when I post the form.
Attachments
Issue Links
- is blocked by
-
WICKET-1221 setRequired(true) will force a Checkbox to be checked
- Resolved