I am using <p:selectOneRadio>
mapped with Boolean (Wrapper class) property, so while display since the property is null, radio button is seen unselected (which is correct), but on click of save button, by default false is set in property even on not selecting any option (Yes/No). And after save, 'No' is appeared as being selected.
Below is the code (Primefaces 4):
<p:selectOneRadio value="#{myBean.hasMyBooleanProperty}">
<f:selectItem itemLabel="Yes" itemValue="#{true}" />
<f:selectItem itemLabel="No" itemValue="#{false}" />
</p:selectOneRadio>
Kindly let me know.
Best regards,
Soheb Shaikh