Saturday, December 30, 2017
when and why facelets DEVELOPMENT was replaced by javax faces PROJECT STAGE
when and why facelets DEVELOPMENT was replaced by javax faces PROJECT STAGE
was trying today to figure out when and why facelets.DEVELOPMENT was replaced by javax.faces.PROJECT_STAGE and i think i finally found the answer in the following article by IBM:
Changes to XHTML and Java sources of a JSF 2.0 web project not refreshed on publish to the WAS V8 server
facelets.DEVELOPMENT was used in JSF 1.2 (Facelets 1.x)
web.xml:
...
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>...
javax.faces.PROJECT_STAGE has been used since JSF 2 (Facelets 2.0 VDL, Facelets 2.0 API [specifically javax.faces.application.ProjectStage])(see "*** NOTE" below).
web.xml:
...
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>...
*** NOTE
"
In JavaServer Faces (JSF) 2.0, Facelets is the default view declaration language (VDL) instead of JavaServer Pages (JSP). With Facelets, you don�t need to configure a view handler as you used to do in JSF 1.2. Facelets is a JSF-centric view technology.
"