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 How can I dynamically add/remove CSS includes in head when using facelets? 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 "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.
 
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
Facelets and JSF
not enamored by JSF 1.1
Tiles like definitions.xml in facelets
Facelets + CSS problem; CSS is not applied after first request
Customization of JSF 2.0 based application