Hello,
how do I find out if selectBooleanCheckbox is checked in javascript? Which method on widgetVar I should to call? Common jQuery techniques doesn't work to me.
Thanks
Vasek
<p:selectBooleanCheckbox value="#{beStatusBean.autoRefresh}" label="Auto refresh" id="autoRefresh" widgetVar="autoRefresh">
<p:ajax update=":form" process="@form" oncomplete="--here check if checkbox is checked--"/>
</p:selectBooleanCheckbox>
selectBooleanCheckbox client side API
What we use is this:
the boolean checkBox:
javascript:
the boolean checkBox:
Code: Select all
<p:selectBooleanCheckbox id="boolInactive" value="true" onchange="javascript:toggleInactive()"/>
Code: Select all
var inactive = true;
function toggleInactive(){
inactive = !inactive;
renderInactive();
}
JSF 2.0
Primefaces 3.2
Tomcat 7.0
Primefaces 3.2
Tomcat 7.0