jsf - Primefaces: RadioButtons stop working when using value property -
i'm using primefaces, , need create radio groups in each row of datatable, i'm trying connect separate groups. use widgetvar property so:
<p:selectoneradio id="first" widgetvar="connect"> <f:selectitem itemvalue="false" itemlabel="false" /> </p:selectoneradio> <p:selectoneradio id="second" widgetvar="connect"> <f:selectitem itemvalue="true" itemlabel="true"/> </p:selectoneradio>
it's working fine, when check one, other unchecks itself. problem shows when try attach default value adding value property this:
<p:selectoneradio id="first" value="false" widgetvar="connect"> <f:selectitem itemvalue="false" itemlabel="false" /> </p:selectoneradio> <p:selectoneradio id="second" value="false" widgetvar="connect"> <f:selectitem itemvalue="true" itemlabel="true"/> </p:selectoneradio>
now it's set radio element named false checked, when check other, first 1 stays checked. can me this?
Comments
Post a Comment