Author: jonesde
Date: Mon Mar 16 14:48:16 2009
New Revision: 754908
URL:
http://svn.apache.org/viewvc?rev=754908&view=revLog:
Fixed JSON event handling as described in the ml by Bilgin
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/AbstractJSONEventHandler.java
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/JSONSimpleEventHandler.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/AbstractJSONEventHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/AbstractJSONEventHandler.java?rev=754908&r1=754907&r2=754908&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/AbstractJSONEventHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/AbstractJSONEventHandler.java Mon Mar 16 14:48:16 2009
@@ -45,7 +45,7 @@
public String invoke(Event event, RequestMap requestMap, HttpServletRequest request, HttpServletResponse response) throws EventHandlerException {
// call into the java handler for parameters parsing and invocation
- String respCode = service.invoke(null, requestMap, request, response);
+ String respCode = service.invoke(event, requestMap, request, response);
// pull out the service response from the request attribute
Map<String, Object> attrMap = UtilHttp.getJSONAttributeMap(request);
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/JSONSimpleEventHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/JSONSimpleEventHandler.java?rev=754908&r1=754907&r2=754908&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/JSONSimpleEventHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/JSONSimpleEventHandler.java Mon Mar 16 14:48:16 2009
@@ -29,5 +29,4 @@
this.service = new SimpleEventHandler();
this.service.init(context);
}
-
}