This content has been marked as final.
Show 5 replies
-
1. Re: jQuery and JSF
cash1981 Nov 6, 2009 11:32 PM (in response to bashan)Unfortunately you have to espace the : in jQuery.
$("#foo\\:bar")
What you also can do inside a form, is use
<h:form id="willNotShow" prependId="false">
Then jsf will not put the id on its children. Makes things a little easier
-
2. Re: jQuery and JSF
luxspes Nov 6, 2009 11:35 PM (in response to bashan)I wrote a javascript function to help me with that:
function escapeIdForJQuery(id) { return id.replace(/:/g,"\\:").replace(/\./g,"\\."); }
-
3. Re: jQuery and JSF
cash1981 Nov 6, 2009 11:41 PM (in response to bashan)You run that with document ready handler on all pages?
-
4. Re: jQuery and JSF
cash1981 Nov 6, 2009 11:42 PM (in response to bashan)Ok sorry my bad. I saw what you are actually doing. Ignore my previous post please :-)
-