1 Reply Latest reply on Mar 11, 2013 4:28 AM by Lukáš Fryč

    Evaluating .ecss resource programatically

    Adrian Mitev Master

      Hi all! I'm creating a functionality that creates a single combined css file from all the css files used in the current view (using custom h:head renderer).

      I get all css files from the classpath and store them as a single css file internally and serve it to the browser. However the ecss resources cannot be extracted directly, they have to be evaluated first because they are dynamic and contain EL expressions. Currently i perform an internal http request from the server to the server requesting the ecss file from the server where it gets evaluated by the API using a URLConnection. Is there a better/more proper way to evaluate such ecss resource using some internal API without performing additional HTTP request?