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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -