I read this article about dynamic CSS.
I would like to generate CSS based on db parameters.
Something similar to <link rel="stylesheet" href="mydynamicCss.ashx?cssCode=mainPage" type="text/css"/>
What is the best way to implement it in JSF?
I am using JSF2.0
<h:outputStylesheet library="css" name="yourcss.css"/>). You can get theExternalContext, for example, and try to do something with it. Although I can't figure out right now a way to get a paramter from the css file.