2 Replies Latest reply on Feb 19, 2009 9:23 AM by Nick Belaevski

    Filter Configuration

    nimo stephan Master

      I want to set up the filter configuration and have following questions:

      1. What is the default-filter in richfaces?

      2. I also use Trinidat and Seam and have this snippet in my web.xml:

      <!-- Trinidad -->
       <context-param>
       <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
       <param-value>com.sun.facelets.FaceletViewHandler</param-value>
       </context-param>
       <filter>
       <filter-name>Trinidad</filter-name>
       <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
       </filter>


      Now, I want to use NEKO-Filter. What should I do?

      Should I only put this into my web.xml without changing anything else:
      (following the Richfaces-Manual:)
      <filter>
      <display-name>RichFaces Filter</display-name>
      <filter-name>richfaces</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>
      </filter>
      
      <context-param>
      <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
      <param-value>NONE,NEKO,TIDY</param-value>
      </context-param>
      
      <context-param>
      <param-name>org.ajax4jsf.xmlparser.NEKO</param-name>
      <param-value>/pages/repeat\.xhtml</param-value>
      </context-param>
      <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>FORWARD</dispatcher>
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>INCLUDE</dispatcher>
      </filter-mapping>