2 Replies Latest reply on Dec 24, 2008 5:22 AM by fabmars

    Strange a4j resource prefix with url-based servlet mappings

    fabmars

      Hello

      I've noticed that if one has one or several path-based mappings for his Faces servlet filter, all a4j resources get prefixed by the last path seclared.

      Example:
      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>/somepath1/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>/somepath999/*</url-pattern>
      </servlet-mapping>

      A4j resources written like this:

      That is all a4j resources are now comprising the LAST servlet-mapping, just between the context name and the /a4j/ path part.


      One can reproduce it just by changing the web.xml of the RichFaces demo war.

      It's no big deal imo, but I filed an issue in the RF Jira: https://jira.jboss.org/jira/browse/RF-5460