RFE: When the required attribute of a checkbox is set to true, a validation error should occur when the form is submitted and the checkbox is not checked
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 127
- Forks
- 59
- Avg merge
- 23h
- Merged PRs (30d)
- 7
Description
See the RequiredCheckboxValidator in OmniFaces for a discussion of the issue:
[http://showcase.omnifaces.org/validators/RequiredCheckboxValidator](http://showcase.omnifaces.org/validators/RequiredCheckboxValidator)
The default behavior in JSF is non-intuitive and causes seemingly unnecessary work to be required in the action method.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the RequiredCheckboxValidator discussion linked in the issue and compare its behavior with Jakarta Faces checkbox validation. Confirm the submission path for a checkbox whose required attribute is true; done means an unchecked checkbox produces a validation error before the action method runs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100