aspose file tools
The moose likes JSF and the fly likes How can I dynamically add/remove CSS includes in head when using facelets? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How can I dynamically add/remove CSS includes in head when using facelets?" Watch "How can I dynamically add/remove CSS includes in head when using facelets?" New topic
Author

How can I dynamically add/remove CSS includes in head when using facelets?

Jochen Szostek
Ranch Hand

Joined: Mar 23, 2008
Posts: 42

Hi all,

I was wondering if there is an easy way of adding/removing CSS includes in your html head when using the ui composition features of facelets?

Because often when using facelets composition you include something in your html body which also needs additional css. And perhaps it would be best not to load a lot of unnecessary css files from your html head.

All comments welcome!

Kind regards,

Jochen
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
I am not sure about Facelets, but the upcoming JSF 2.0 would support that kind of stuff by the new h:outputStyleSheet component.


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I dynamically add/remove CSS includes in head when using facelets?
 
Similar Threads
Customization of JSF 2.0 based application
not enamored by JSF 1.1
Tiles like definitions.xml in facelets
Facelets + CSS problem; CSS is not applied after first request
Facelets and JSF