Re: PrettyFaces does not coexist with OpenFaces

Splash Forums PrettyFaces Users PrettyFaces does not coexist with OpenFaces Re: PrettyFaces does not coexist with OpenFaces

#20378

nicog
Participant

Actually found the solution:

this has something to do with filters order in web.xml

<!– FILTERS –>

<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>

<filter-name>ResourceFilter</filter-name>

<filter-class>org.openfaces.util.ResourceFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>ResourceFilter</filter-name>

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

</filter-mapping>

<filter>

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

<filter-name>RichFacesFilter</filter-name>

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

<init-param>

<param-name>createTempFiles</param-name>

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

</init-param>

<init-param>

<param-name>maxRequestSize</param-name>

<param-value>10000000</param-value>

</init-param>

<!– PERFORMANCE OPTIMIZATION–>

<init-param>

<param-name>forcenotrf</param-name>

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

</init-param>

</filter>

<filter-mapping>

<filter-name>RichFacesFilter</filter-name>

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

<dispatcher>REQUEST</dispatcher>

<dispatcher>FORWARD</dispatcher>

<dispatcher>INCLUDE</dispatcher>

<dispatcher>ERROR</dispatcher>

</filter-mapping>

<filter>

<description>Redirection vers Login.jsp</description>

<filter-name>SecurityCheckFilter</filter-name>

<filter-class>com.mfpsoft.security.SecurityCheckFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>SecurityCheckFilter</filter-name>

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

</filter-mapping>