File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
wood burning stoves
 
subject: Conditional include of <script> tag in a JSF page
 
Similar Threads
is there any way to include or show html files inside JSF files in runtime?
JSF and tiles
c:import with Facelets
Generating <script> tag from Custom JSF Tag
Including JSP in a JSF framework