myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "Extensions/Scripting/Setup" by jankeesvanandel
Date Sun, 18 Apr 2010 12:59:32 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The "Extensions/Scripting/Setup" page has been changed by jankeesvanandel.
http://wiki.apache.org/myfaces/Extensions/Scripting/Setup?action=diff&rev1=22&rev2=23

--------------------------------------------------

  }}}
  
  This parameter and the servlet filter <<<MUST>>> be set otherwise ext-scripting
will not be enabled!
- 
- Make sure to map the filter to the correct url-pattern or servlet-name otherwise ext-scripting
will not be enabled!
- 
- When you see the following error in your logs (and probably a NullPointerException), check
your filter configuration.
- {{{
- WARNING: [EXT-SCRIPTING] Scripting Weaver is not set. Disabling script reloading subsystem.
Make sure you have the scripting servlet filter enabled in your web.xml
- }}}
- 
  
  ==== web.xml Filter ====
  '''Ext-Scripting''' relies on several entries to be present in the web.xml to function properly.
@@ -101, +93 @@

      <filter-mapping>
         <filter-name>scriptingFilter</filter-name>
         <url-pattern>*.jsf</url-pattern>
-        <dispatcher>REQUEST</dispatcher>
-        <dispatcher>FORWARD</dispatcher>
-        <dispatcher>INCLUDE</dispatcher>
-        <dispatcher>ERROR</dispatcher>
      </filter-mapping>
  }}}
- This filter entry is the only necessary entry needed for extensions scripting all other
values are optional
+ You can also map the filter directly to the Faces Servlet
  
  {{{
-         <url-pattern>*.jsf</url-pattern>
+        <servlet-name>faces</servlet-name>
  }}}
  
+ Make sure to map the filter to the correct url-pattern or servlet-name otherwise ext-scripting
will not be enabled!
+ 
+ When you see the following error in your logs (and probably a NullPointerException stack
trace), check your filter configuration. You probably have an error in your filter configuration.
+ {{{
+ WARNING: [EXT-SCRIPTING] Scripting Weaver is not set. Disabling script reloading subsystem.
Make sure you have the scripting servlet filter enabled in your web.xml
+ }}}
  
  ==== web.xml Root Sourcepaths ====
  

Mime
View raw message