This content has been marked as final.
Show 4 replies
-
1. Re: Question about seam:component
joblini Dec 2, 2008 6:19 PM (in response to lcbdl888)Sounds like a job for <rich:jQuery/>
-
2. Re: Question about seam:component
lcbdl888 Dec 2, 2008 8:15 PM (in response to lcbdl888)Thank you Ingo. I coded like this. It works good.
<h:column> <f:facet name="header"> <h:selectBooleanCheckbox id="selectAll" title="Select all/none"/> </f:facet> <h:selectBooleanCheckbox id="certSelected" value="#{_cert.selected}"/> </h:column> <rich:jQuery selector="#selectAll" query="click(function() {selectCerts(null, jQuery(this).attr('checked'));})"/> <rich:jQuery selector="input[@id*=certSelected]" name="selectCerts" timing="onJScall" query="attr('checked',param)"/>
-
3. Re: Question about seam:component
msureshmd Nov 26, 2009 8:12 AM (in response to lcbdl888)I used your code for Select all/unselect. But, it’s thrown JavaScript error. Can you plz explain the second line of <rich:jQuery> and also what is the ‘param’ value?. What should I give instead of param? Anyone have idea plz tell me. -
4. Re: Question about seam:component
msureshmd Dec 3, 2009 10:11 AM (in response to lcbdl888)I used Jquery like this,It's working fine
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('input[id*=selectAll]').click(function(){
var status = this.checked;
jQuery('input[id*=selectRow]').each(function(){
this.checked = status
});
});
});
</script>
<rich:column style="text-align:center" >
<f:facet name="header">
<h:selectBooleanCheckbox id="selectAll"/>
</f:facet>
<h:selectBooleanCheckbox value="#{countryList.selectedCountry[countryDAO.code]}" id="selectRow"/>
</rich:column>