Maybe <rich:jQuery> is what you need.
thanks dmitry, i look at the example, I get exception with facelets
<rich:jQuery> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: jQuery
should I define jquery tag somewhere??
Which RichFaces version do you use?
<rich:jQuery> tag was introduced in 3.1.2 version. And looking at the example in RichFaces Live Demo it should work fine with facelets.