I have a PF selectOneRadio implemented on a modal-dialog
<p:selectOneRadio value="true" onchange="doSomething()" widgetVar="idWidget" >
<f:selectItem itemLabel="1" itemValue="true" />
<f:selectItem itemLabel="2" itemValue="false" />
</p:selectOneRadio>
when i click a botton i need to restore the default value (the value of selectOneRadio to true) . I need so of a JQUERY function or JS or PF.
I try with PF('idWidget').select($('.ui-radiobutton-box').first());
it selects the value of selectOneRadio outside the dialog, although the widgetVar has another name. I don't know what to use anymore . Please help me.