java - in jsf how to store radio buttons into a bean -
java - in jsf how to store radio buttons into a bean -
please write bean code:
<h:datatable rows="10" value="#{loginformbean.keyaslist}" rendered="true" var="deviceid" id="producten"> <h:column> <h:outputtext value="#{deviceid}" /> </h:column> <h:column> <h:selectoneradio value="#{loginformbean.devicemap[deviceid]}"> <c:if test="#{loginformbean.devicemap[deviceid] eq on}"> <f:selectitem itemvalue="on" itemlabel="on" /> </c:if> <c:otherwise> <f:selectitem itemvalue="off" itemlabel="off" /> </c:otherwise> </h:selectoneradio> </h:column> </h:datatable> <h:commandbutton value="submit" action="#{loginformbean.updateconfigurations}" />
here devicemap contains deviceid key , status value after submiting button values has store..how bean please help me..
i think need save in pojo class.
java jsf-2
Comments
Post a Comment