This content has been marked as final.
Show 3 replies
-
1. Re: selected value for <h:selectBooleanCheckbox/>
ilya40umov Jan 4, 2011 1:12 AM (in response to vampiree)I guess you have an error in your JS/XHTML code.
it should be if(#{rich:clientId('t1')}.checked == true)
Look there for details:
http://mkblog.exadel.com/2009/12/richfaces-built-in-client-functions/
-
2. Re: selected value for <h:selectBooleanCheckbox/>
vampiree Jan 4, 2011 6:55 AM (in response to ilya40umov)hi iila,
i tried with
oncomplete="if(#{rich:clientId('t1')}.checked == true){alert('checked');}else{alert('unchecked');}"
but it doesnt work out.
have any oder opinion
-
3. Re: selected value for <h:selectBooleanCheckbox/>
ilya40umov Jan 4, 2011 7:22 AM (in response to vampiree)Every form in JSF has auto generated id by default and JSF adds it to your element. So your element has id like this "yourFormGenId:t1"
You have two options:
1) set up special id to your form and use "specId:t1"
2) set prependId="false" and your form id would not be added to element id.
If it will not help you post a full code sample, please.