1 Reply Latest reply on Nov 27, 2008 7:10 PM by Dao Anh Vu

    JBoss 4.2.3 and Facelets?

    Emil Nilimaa Newbie

      How do we add facelets to jboss 4.2.3 in the internal tomcat?

      It doent seem to find the viewhandler that we had in the previous versions and putting in the jsf api jar clashes with the jsf included in the internal tomcat...

      Please inform us how to do this.

      Best wishes,

        • 1. Re: JBoss 4.2.3 and Facelets?
          Dao Anh Vu Newbie

          Hi eminil,

          you just add jsf-facelets.jar into you WEB-INF/lib (i use facelets 1.1.12) and config web.xml as following:

          ...
          <!-- Use Documents Saved as *.xhtml -->
           <context-param>
           <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
           <param-value>.xhtml</param-value>
           </context-param>
           <context-param>
           <param-name>com.sun.faces.verifyObjects</param-name>
           <param-value>false</param-value>
           <!-- <param-value>true</param-value> -->
           </context-param>
          <!-- Faces Servlet -->
           <servlet>
           <servlet-name>Faces Servlet</servlet-name>
           <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
           <load-on-startup>1</load-on-startup>
           </servlet>
          
           <!-- Faces Servlet Mapping -->
           <servlet-mapping>
           <servlet-name>Faces Servlet</servlet-name>
           <url-pattern>*.jsf</url-pattern>
           </servlet-mapping>
          ...
          


          with faces-config.xml, you config as following:
          ...
          <application>
           <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
           </application>
          ...
          


          hope this help.