[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: JBoss 4.2.3 and Facelets?

hainho do-not-reply at jboss.com
Thu Nov 27 19:11:00 EST 2008


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192906#4192906

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192906



More information about the jboss-user mailing list