1 2 Previous Next 16 Replies Latest reply on Feb 16, 2007 10:22 AM by Crayton OSteen

    tomahawk extension filter and seam fileUpload

    francesco milesi Newbie

      Hi everbody,

      In my seam application I use tomahawk components so I had to put in my web.xml the following rows


       <filter>
       <filter-name>extensionsFilter</filter-name>
       <filter-class>
       org.apache.myfaces.component.html.util.ExtensionsFilter
       </filter-class>
       </filter>
      
       <filter-mapping>
       <filter-name>extensionsFilter</filter-name>
       <url-pattern>*.seam</url-pattern>
       </filter-mapping>
      
       <filter-mapping>
       <filter-name>extensionsFilter</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       </filter-mapping>
      


      To use <s:fileUpload> I also added
       <filter>
       <filter-name>Seam Multipart Filter</filter-name>
       <filter-class>
       org.jboss.seam.servlet.SeamMultipartFilter
       </filter-class>
       <init-param>
       <param-name>createTempFiles</param-name>
       <param-value>true</param-value>
       </init-param>
       </filter>
      
       <filter-mapping>
       <filter-name>Seam Multipart Filter</filter-name>
       <url-pattern>*.seam</url-pattern>
       </filter-mapping>
      


      The problem is that seam upload seems to work fine only if I comment Tomahawk extensionFilter, but that makes unavailable some Tomahawk's components (tree2 for example) .

      I tried different ordering of filters inside my web.xml (I don't know if that makes sense....), but I could not make tomahawk components and seam fileUpload work together.

      Do you have an idea where is the problem ?

      Many Thanks in advance

      Ciao Francesco







        1 2 Previous Next