Re: Jboss-5.1.0GA and Pretty Faces

Splash Forums PrettyFaces Users Jboss-5.1.0GA and Pretty Faces Re: Jboss-5.1.0GA and Pretty Faces

#20868

amandabogado
Participant

<?xml version=”1.0″ encoding=”UTF-8″?>

This is what I have in my web.xml file..

<web-app version=”2.5″ xmlns=”http://java.sun.com/xml/ns/javaee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd“>

<servlet>

<servlet-name>jcaptcha</servlet-name>

<servlet-class>py.com.naveOnline.seguridad.ImageCaptchaServlet</servlet-class>

<load-on-startup>0</load-on-startup>

</servlet>

<servlet>

<servlet-name>mailServlet</servlet-name>

<servlet-class>py.com.naveOnline.utils.mailServlet</servlet-class>

</servlet>

<servlet>

<servlet-name>ImageCaptchaServlet</servlet-name>

<servlet-class>py.com.naveOnline.seguridad.ImageCaptchaServlet</servlet-class>

</servlet>

<description>NaveOnLine</description>

<display-name>NaveOnLine</display-name>

<context-param>

<param-name>javax.faces.STATE_SAVING_METHOD</param-name>

<param-value>server</param-value>

</context-param>

<context-param>

<param-name>org.richfaces.SKIN</param-name>

<param-value>DEFAULT</param-value>

</context-param>

<context-param>

<param-name>com.sun.faces.verifyObjects</param-name>

<param-value>false</param-value>

</context-param>

<context-param>

<param-name>facelets.REFRESH_PERIOD</param-name>

<param-value>-1</param-value>

</context-param>

<context-param>

<param-name>com.sun.faces.validateXml</param-name>

<param-value>false</param-value>

</context-param>

<context-param>

<param-name>javax.faces.STATE_SAVING_METHOD</param-name>

<param-value>server</param-value>

</context-param>

<context-param>

<param-name>javax.faces.DEFAULT_SUFFIX</param-name>

<param-value>.xhtml</param-value>

</context-param>

<context-param>

<param-name>facelets.DEVELOPMENT</param-name>

<param-value>true</param-value>

</context-param>

<context-param>

<param-name>facelets.SKIP_COMMENTS</param-name>

<param-value>true</param-value>

</context-param>

<context-param>

<param-name>facelets.LIBRARIES</param-name>

<param-value>/WEB-INF/components.taglib.xml</param-value>

</context-param>

<filter>

<filter-name>Pretty Filter</filter-name>

<filter-class>com.ocpsoft.pretty.PrettyFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>Pretty Filter</filter-name>

<url-pattern>/*</url-pattern>

<dispatcher>FORWARD</dispatcher>

<dispatcher>REQUEST</dispatcher>

<dispatcher>ERROR</dispatcher>

</filter-mapping>

<filter>

<display-name>RichFaces Filter</display-name>

<filter-name>richfaces</filter-name>

<filter-class>org.ajax4jsf.Filter</filter-class>

</filter>

<filter-mapping>

<filter-name>richfaces</filter-name>

<servlet-name>Faces Servlet</servlet-name>

<dispatcher>REQUEST</dispatcher>

<dispatcher>FORWARD</dispatcher>

<dispatcher>INCLUDE</dispatcher>

</filter-mapping>

<listener>

<listener-class>py.com.naveOnline.aplicacion.AppContextListener</listener-class>

</listener>

<servlet>

<servlet-name>Faces Servlet</servlet-name>

<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

<load-on-startup>1</load-on-startup>

</servlet>

<servlet>

<servlet-name>respuestaPagoServlet</servlet-name>

<servlet-class>py.com.naveOnline.utils.RespuestaPagoServlet</servlet-class>

</servlet>

<servlet>

<servlet-name>PedidoPagoServlet</servlet-name>

<servlet-class>py.com.naveOnline.utils.PedidoPagoServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>Faces Servlet</servlet-name>

<url-pattern>*.jsf</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>respuestaPagoServlet</servlet-name>

<url-pattern>/respuesta.jsf</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>PedidoPagoServlet</servlet-name>

<url-pattern>/pedido.jsf</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>ImageCaptchaServlet</servlet-name>

<url-pattern>/ImageCaptchaServlet</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>jcaptcha</servlet-name>

<url-pattern>/jcaptcha</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>mailServlet</servlet-name>

<url-pattern>/mailServlet</url-pattern>

</servlet-mapping>

<session-config>

<session-timeout>

30

</session-timeout>

</session-config>

<welcome-file-list>

<welcome-file>index.html</welcome-file>

</welcome-file-list>

<error-page>

<error-code>403</error-code>

<location>/resources/errorPages/403.jsp</location>

</error-page>

<error-page>

<error-code>404</error-code>

<location>/resources/errorPages/404.jsp</location>

</error-page>

<error-page>

<error-code>500</error-code>

<location>/resources/errorPages/500.jsp</location>

</error-page>

</web-app>

I downloaded the 3.2.0 version of Pretty Faces for JSF1.2. I don’t use Maven.

Thanks..