Implemented new event handler for Groovy scripts; converted two Beanshell events to Groovy.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662337 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacopo Cappellato
2008-06-02 06:28:55 +00:00
parent 2128610fa6
commit 42723effc3
5 changed files with 56 additions and 3 deletions
@@ -28,7 +28,7 @@ under the License.
<description>Example Component Site Configuration File</description>
<owner>Copyright 2001-2008 The Apache Software Foundation</owner>
<handler name="bsf" type="request" class="org.ofbiz.webapp.event.BsfEventHandler"/>
<handler name="groovy" type="request" class="org.ofbiz.webapp.event.GroovyEventHandler"/>
<!--
These can be used to return the reports as views; make sure the classes are compiled and available
@@ -160,7 +160,7 @@ under the License.
</request-map>
<request-map uri="findExampleFeatures">
<security https="true" auth="true"/>
<event type="bsf" path="/WEB-INF/actions/includes/" invoke="findExampleFeatures.bsh"/>
<event type="groovy" path="component://example/webapp/example/WEB-INF/actions/includes/" invoke="findExampleFeatures.groovy"/>
<response name="success" type="view" value="ajaxAutocompleteOptions"/>
<response name="error" type="view" value="ajaxAutocompleteOptions"/>
</request-map>