Author: jacopoc
Date: Wed Jun 2 09:34:19 2010
New Revision: 950452
URL:
http://svn.apache.org/viewvc?rev=950452&view=revLog:
Enhanced Birt view handler to automatically set report parameters in the request.
Modified:
ofbiz/trunk/framework/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java
Modified: ofbiz/trunk/framework/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java?rev=950452&r1=950451&r2=950452&view=diff==============================================================================
--- ofbiz/trunk/framework/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java (original)
+++ ofbiz/trunk/framework/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java Wed Jun 2 09:34:19 2010
@@ -86,6 +86,8 @@ public class BirtViewHandler implements
Map<String, Object> parameters = UtilGenerics.cast(request.getAttribute(BirtWorker.BIRT_PARAMETERS));
if (parameters != null) {
context.put(BirtWorker.BIRT_PARAMETERS, parameters);
+ } else {
+ context.put(BirtWorker.BIRT_PARAMETERS, UtilHttp.getParameterMap(request));
}
// set locale from request
Locale locale = (Locale)request.getAttribute(BirtWorker.BIRT_LOCALE);