This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSF and the fly likes Conditional include of <script> tag in a JSF page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "Conditional include of <script> tag in a JSF page" Watch "Conditional include of <script> tag in a JSF page" New topic
Author

Conditional include of <script> tag in a JSF page

satya anvesh
Greenhorn

Joined: Sep 23, 2008
Posts: 16
Hi

I want to include a .js script in a jsf page conditionally. That is, if a bean condition is true, one.js should be included otherwise two.js should be included in the JSF page. I am using JSF 1.1 so it does not support 'rendered' tag in <f:verbatim>. How can I achieve this? Thanks for your help.

Anvesh
satya anvesh
Greenhorn

Joined: Sep 23, 2008
Posts: 16
can any one please answer the question??
Thanks
Anvesh
 
 
subject: Conditional include of <script> tag in a JSF page