This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JSF and the fly likes How to create Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to create "Help Tree" using JSF" Watch "How to create "Help Tree" using JSF" New topic

How to create "Help Tree" using JSF

Matt Hardy

Joined: Nov 03, 2011
Posts: 18
Could somebody please tell me how to create a Help Tree using. I am using JSF 1.2 version. I tried using jquery but could not integrate jquery into jsf page..

Matt Hardy

Joined: Nov 03, 2011
Posts: 18
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17423

Please don't bump. It doesn't help. If someone knows the answer, we have enough people listening that you'll get an answer, but since we're all volunteers, we check in when we can. We're not sitting around waiting to answer questions all day.

JSF doesn't come with a tree GUI control because core JSF is mapped to plain HTML and there's no basic HTML tree control. However, some of the third-party extension tagsets do provide a tree control.

As far as jQuery goes, jQuery works quite well in a JSF environment. In fact, some of the third-party packages use jQuery internally.

There are 2 things, however, that you have to be aware of when using jQuery in JSF.

1. Element IDs at the jQuery level (raw HTML) are not the same as their JSF source-code IDs. For example the inputText control with an ID of "firstName" in a JSF form named "form1" will have an HTML (jQuery) ID of "form1:firstName".

2. The "$" character has an alternative meaning to the JSF EL processor. So instead of using the common jQuery "$" form, you have to use the "jQuery." form of expression in order to avoid conflicts and confusion.

An IDE is no substitute for an Intelligent Developer.
Matt Hardy

Joined: Nov 03, 2011
Posts: 18
Thank you Mr.Tim
I agree. Here's the link:
subject: How to create "Help Tree" using JSF
It's not a secret anymore!