How to make selected h:selectOneRadio of h:dataTable remain selected on postback?
问题 In normal circumstances like this: <h:form> <h:selectOneRadio value="#{bean.gender}"> <f:selectItem itemValue="Male" itemLabel="Male" /> <f:selectItem itemValue="Female" itemLabel="Female" /> <f:selectItem itemValue="Other" itemLabel="Other" /> </h:selectOneRadio> <h:commandButton value="Submit" action="#{bean.action}" /> </h:form> Selecting one radio button disselects the other & the radio button will be remain selected on the postback. (when the same view is rendered) However, when we're