Automatic compression of jsf.js
There is no user action required to make this happen: If the Project stage is Development, the file is served uncompressed (for ease in debugging with something like Firebug), but if the Project stage is anything else, then the file is compressed (and essentially unreadable, since besides stripping all comments, variable names are stripped, as well as all line breaks).
To enable Project Stage as Development, place the following in your web.xml file:
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
- Login or register to post comments
- Printer-friendly version
- driscoll's blog
- 2147 reads






Comments
by vmunhoz - 2009-07-03 13:50
Fantastic, i really waiting for a decent IDE to start my jsf2 project :(by cprashantreddy - 2009-07-06 07:44
Use JAWR : https://jawr.dev.java.net/