0 Replies Latest reply on Nov 3, 2009 1:44 PM by Jonathan Brenner

    Is it possible to change the extension of the AjaxScript jav

    Jonathan Brenner Newbie

      Sorry I had to double-post this...
      The quotes in the subject of the previous post caused most of the subject to be truncated.

      The question is the same:

      Is it possible to change the extension of the AjaxScript javascript include to be something different from that specified in the SeamFilter url-pattern?

      Whenever I include an a4j tag in a facelet, I get the following script referenced in the head of my HTML document:

      <script src="/myapplication/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.AjaxScript.foo" type="text/javascript"></script>



      I have determined that the "foo" extension is the result of the following entry in my web.xml:

      <filter>
       <filter-name>Seam Filter</filter-name>
       <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
       </filter>
       <filter-mapping>
       <filter-name>Seam Filter</filter-name>
       <url-pattern>*.foo</url-pattern>
       <dispatcher>FORWARD</dispatcher>
       </filter-mapping>


      The reason I need to do this is that I am working in a homegrown framework that does some undesirable processing via servlet filters when a resource named *.foo is requested.
      Therefore, I want the request for this javascript file to bypass these servlet filters.

      Thanks,
      Jonathan