This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF integration jquery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF integration jquery" Watch "JSF integration jquery" New topic

JSF integration jquery

Dura Hurtado
Ranch Hand

Joined: Feb 16, 2011
Posts: 120
Hi , I have been using jquery in my .jsf app but it just works with .html components. I am a begginer in jquery and I am looking for the easiest way to use it in .xhtml files.

¿Which is the right way?

¿Any clue?

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961

Not only does jQuery work just fine in JSF, the RichFaces JSF extension tagset even uses it (under cover) to do its AJAX functions!

However, you may run into difficulties in properly addressing objects, because the "id" attributes on JSF tags aren't their "real" IDs as seen by JavaScript/jQuery. You have to use the internally-generated IDs, which you can obtain by examining the generated HTML ("View Page Source"). Note that automatically-generated ID components can change names unpredictably, so for maximum reliability you should explicitly ID naming containers such as forms and dataTables.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: JSF integration jquery
Similar Threads
how to create type button in JSF using SUN RI
How can i integrate jQuery in Jsf ?
couldn't get an icon with Jquery-Button in jsf
Using JQuery JSF components together