aspose file tools
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 Groovy Fundamentals video training course this week in the Groovy 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: 16737

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