here my idea with oneRadio
<h:selectOneRadio value="#{controller.myboolean}">
<f:selectItem itemValue="#{true}" itemLabel="Yes"/>
<f:selectItem itemValue="#{false}" itemLabel="No"/>
</h:selectOneRadio>
here the with commandLink:
<h:commandLink value="YES" action="#{controller.setMyboolean(true)}"/>
<br/>
<h:commandLink value="NO" action="#{controller.setMyboolean(false)}"/>
In my application I want to show or disable my table with <h:selectOneRadio>
. For example if i have chosen the first radioButton the table is shown. I don't to click a <h:commandButton>
to change the value myboolean
. Therefore my excepted reaction of my application has to be like a <h:commandLink>
. I click on it and the value changes, the table is shown. But in my case I want to use a <h:selectOneRadio>