0 Replies Latest reply on Jul 14, 2007 5:16 PM by satelite_ca

    JSF mapping missing. ExtensionsFilter not correctly configur

    satelite_ca

      I am new to JSF's and using JBoss 4.2.0 application server.

      I trying to use <t:panelTabbedPane> and <t:panelTab> in my page like this:

      <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
      <t:panelTabbedPane id= "tbParticipant" selectedIndex = "0">
      <t:panelTab id = "ptFirstName" label = "First Name"></t:panelTab>
      <t:panelTab id = "ptLastName" label = "Last Name"></t:panelTab>
      </t:panelTabbedPane>

      When I open my page i get this error

      ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
      Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html

      I have my web.xml configured exactlly as described at http://myfaces.apache.org/tomahawk/extensionsFilter.html
      Actually I copied and paste the whole text word by word as shown below but still getting that error.


      <filter-name>MyFacesExtensionsFilter</filter-name>
      <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
      <init-param>
      <param-name>maxFileSize</param-name>
      <param-value>20m</param-value>
      Set the size limit for uploaded files.
      Format: 10 - 10 bytes
      10k - 10 KB
      10m - 10 MB
      1g - 1 GB

      </init-param>


      <!-- extension mapping for adding , , and other resource tags to JSF-pages -->
      <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
      <servlet-name>Faces Servlet</servlet-name>
      </filter-mapping>

      <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
      <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
      </filter-mapping>
      Alternate mapping using a url-pattern instead of a servlet-name (you still need the /faces/myFacesExtensionResource/* mapping as well):
      <!-- extension mapping for adding , , and other resource tags to JSF-pages -->
      <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>*.jsf</url-pattern>
      </filter-mapping>

      Please help and thank you in advance.