[ 
https://issues.apache.org/jira/browse/MYFACES-4169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16249674#comment-16249674
 ] 

Eduardo Breijo edited comment on MYFACES-4169 at 11/13/17 2:55 PM:
-------------------------------------------------------------------

That solution does not seem to solve the issue. It is needed anyway for the 
rest of the selectOneRadio that does not contain a value expression, but it is 
being bypassed the first time because the referenced component "radio0" has a 
value expression, and the submitted value is "Value3" from the third component 
"radio2", leading to the Validation Error.

The submitted value for both the second component "radio1" and the third 
component "radio2" is null. I would expect that submitted value is null for 
"radio0" and "radio1" if I'm submitting the third component value.

If you add a value expression to each component from the above case, it will 
behave as expected. It will go through each component as well, and if I'm 
submitting the third component value, then the submitted value for the other 
components are null.





was (Author: eduardobreijo):
That solution does not seem to solve the issue. It is needed anyway for the 
rest of the selectOneRadio that does not contain a value expression, but it is 
being bypassed the first time because the referenced component "radio0" has a 
value expression, and the submitted value is "Value3" from the third component 
"radio2", leading to the Validation Error.

The submitted value for both the second component "radio1" and the third 
component "radio2" is null. I would expect that submitted value is null for 
"radio0" and "radio1" if I'm submitting the third component value.


> 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)

Reply via email to