Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to implement Jqery in my jsf page??  RSS feed

 
Matt Hardy
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.
 
Tim Holloway
Bartender
Posts: 18661
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same general way that you would with non-JSF, except that in order to avoid confusion with the EL processor, you can't use the "$" convention. You have to use "jQuery." as the introducing term on a jQuery expression.

If you're using RichFaces, there's a (old) version of jQuery that come automatically with RichFaces, which uses it internally. In that case, you don't even have to explicitly request jQuery, since RichFaces does it in the background.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!