Take the 2-minute tour ×

I saw that Jetty and Jasper have JSP compilers that support JSF in JSP. However, I am interested in compiling facelets as well. Are there any tools available that would compile it to java code or bytecode?

share|improve this question
add comment

1 Answer

Facelets doesn't work that way. Unlike a JSP file, a Facelets file isn't compiled to a Java class. It's instead "compiled" to a XML tree, usually by a SAX parser (which is one of the fastest ways of parsing XML). The XML tree is in turn internally cached in server's memory by DefaultFaceletCache (in case of Mojarra) which can be customized by providing a custom FaceletCache.

share|improve this answer
add comment

Your Answer


