This content has been marked as final.
Show 3 replies
-
1. Re: How to use jQuery on richface?
user080701 Oct 29, 2008 11:14 PM (in response to user080701)Sorry, the exact code is
<a4j:loadScript src="resource://jquery.js"/>
jQuery(document).ready(function() {
alert('test') ;
var numRows = $('#listitems:content:listform:productlist').find('tr').length
alert(numRows) ;
});
where i define the dataGiid table as
<rich:dataGrid id="productlist" .....
and I view the page source code, the table id is listitems:content:listform:productlist' -
2. Re: How to use jQuery on richface?
user080701 Oct 29, 2008 11:15 PM (in response to user080701)missing the javascript in post
jQuery(document).ready(function() {
alert('test') ;
var numRows = $('#listitems:content:listform:productlist').find('tr').length
alert(numRows) ;
}); -
3. Re: How to use jQuery on richface?
nbelaevski Oct 30, 2008 7:48 PM (in response to user080701)Hello,
Try to use rich:jQuery component: http://livedemo.exadel.com/richfaces-demo/richfaces/jQuery.jsf?c=jQuery&tab=usage