[
https://issues.apache.org/jira/browse/MYFACES-4169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16248000#comment-16248000
]
Eduardo Breijo commented on MYFACES-4169:
-----------------------------------------
Hey [~tandraschko] I have found a case where I'm getting a validation error
when submitting the values of selectOneRadio in a form. This only happens when
we have selectItem in each of the selectOneRadio components and one value
attribute in the first selectOneRadio component.
Case 1:
<h:selectOneRadio id="radio0" group="testGroup"
value="#{selectOneRadioGroupBean.selectedValue}">
<f:selectItem itemValue="Value1"/>
</h:selectOneRadio>
<h:selectOneRadio id="radio1" group="testGroup">
<f:selectItem itemValue="Value2"/>
</h:selectOneRadio>
<h:selectOneRadio id="radio2" group="testGroup">
<f:selectItem itemValue="Value3"/>
</h:selectOneRadio>
<h:commandButton id="submitButton" value="Submit"/>
Error: If I submit radio0 value, there is no issue. But if I submit radio1 or
radio2 then I get this message: radio0: Validation Error: Value is not valid
> selectOneRadio grouping broken
> ------------------------------
>
> Key: MYFACES-4169
> URL: https://issues.apache.org/jira/browse/MYFACES-4169
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-372
> Affects Versions: 2.3.0-beta
> Reporter: Paul Nicolucci
> Assignee: Thomas Andraschko
> Fix For: 2.3.0
>
> Attachments: JSF23SelectOneRadioGroup.war,
> SelectOneRadioGroupBean.java, index.xhtml
>
>
> I was testing out the new group attribute on the <h:selectOneRadio/>
> component and found that it does not look to work in all scenarios:
> I've provided a test application to shows a working scenario and then
> multiple scenarios that I think should work but don't.
> The app can be deployed on tomcat.
> You can drive a request to the index page which will contain the links what
> doesn't work:
> http://localhost:8080/JSF23SelectOneRadioGroup/index.xhtml
> Or you can directly verify what does not work by sending requests to:
> localhost:8080/JSF23SelectOneRadioGroup/error.xhtml
> localhost:8080/JSF23SelectOneRadioGroup/error2.xhtml
> localhost:8080/JSF23SelectOneRadioGroup/error3.xhtml
> localhost:8080/JSF23SelectOneRadioGroup/error4.xhtml
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)