This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes JQuery & JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JQuery & JSF" Watch "JQuery & JSF" New topic
Author

JQuery & JSF

Jyothi Thummalapenta
Greenhorn

Joined: Apr 17, 2012
Posts: 11
Hi,

Can anyone please let me know a good website to learn JQuery and JSF clearly.

Thanks in Advance


Regards
Jo
A Rene
Greenhorn

Joined: Jul 17, 2013
Posts: 4
May I know your scope of work because jquery is embedded in jsf. May be I feel unless there is an individual purpose of jquery you need to learn it. Correct me if Im wrong.
rgds Street
Jyothi Thummalapenta
Greenhorn

Joined: Apr 17, 2012
Posts: 11
Hi Rene,

Thankyou for the reply.

I am new to both JQuery and JSF. As part of my project i need JQuery and apart from that i wanted to learn JSF. That is the reason i asked for both JQuery and JSF.

Could you please suggest me some books or online websites to learn both of them.

Regards
Jo
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

If you know basic jQuery, you can make it work with JSF, although some JSF extension tagsets (such as RichFaces) also include jQuery support tags.

There are only a few "gotchas":

1. Don't use the "$" notation when mixing jQuery and JSF. The "$" is interpreted by the EL processor to mean JSP-style value substitution. Use the "jQuery." form, instead.

2. JSF has something called a naming container that causes the actual HTML IDs of the raw output to be more complex than the simple IDs that you code in JSF View Definition Language. jQuery, like all JavaScript, needs the HTML ID values, not the JSF ID values. When in doubt, "View Page Source" in your browser.

3. The jQuery that's bundled in with some of the JSF extension tagsets may be very antiquated. You will have to either code down to their level or take steps to make sure that the proper version of jQuery for the features you need is being pulled in (and doesn't collide).


Customer surveys are for companies who didn't pay proper attention to begin with.
Jyothi Thummalapenta
Greenhorn

Joined: Apr 17, 2012
Posts: 11
Thanks a lot Tim
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JQuery & JSF