Skip to content

SelectOneRadio: Selecting disabled items #13954

@EvanKnowles

Description

@EvanKnowles

Describe the bug

It is possible to select a disabled option in the radio button if you modify the value of one of the enabled options to be the value of the disabled option.

Full writeup: https://stackoverflow.com/questions/21328768/primefaces-dialog-framework-not-working

Reproducer

PrimefacesTest project: https://github.com/EvanKnowles/primefaces-test-radio-select

In the primfaces test project, open the default test.xhtml. There is a radio button with two disabled items. Clicking the button will set the value of the enabled Two item to be the three-disabled value. Clicking Two afterwards will select the third disabled item.

Expected behavior

No response

PrimeFaces edition

Community

PrimeFaces version

15

Theme

No response

JSF implementation

All

JSF version

3.0

Java version

24

Browser(s)

No response

Metadata

Metadata

Assignees

Labels

🔒 securitySecurity related issue or enhancement

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions