jakartaee / jakartaee/faces

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

Open
#1,289 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: Components/Renderers Priority: Major Type: Improvement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.