Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jochen Szostek
Ranch Hand
Posts: 42
Android Google Web Toolkit Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure about Facelets, but the upcoming JSF 2.0 would support that kind of stuff by the new h:outputStyleSheet component.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic