File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 17417

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: JSF integration jquery
It's not a secret anymore!