You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2012/05/21 18:22:50 UTC

svn commit: r1341093 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreen.java

Author: doogie
Date: Mon May 21 16:22:49 2012
New Revision: 1341093

URL: http://svn.apache.org/viewvc?rev=1341093&view=rev
Log:
FEATURE: SimpleMethod was putting a "nullField" =
GenericEntity.NullField into each context, but ModelScreen wasn't.  Now
they are the same.

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreen.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreen.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreen.java?rev=1341093&r1=1341092&r2=1341093&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreen.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreen.java Mon May 21 16:22:49 2012
@@ -350,6 +350,8 @@ public class ModelScreen extends ModelWi
     public void renderScreenString(Appendable writer, Map<String, Object> context, ScreenStringRenderer screenStringRenderer) throws ScreenRenderException {
         // make sure the "null" object is in there for entity ops
         context.put("null", GenericEntity.NULL_FIELD);
+        // make sure the "nullField" object is in there for entity ops
+        context.put("nullField", GenericEntity.NULL_FIELD);
 
         // wrap the whole screen rendering in a transaction, should improve performance in querying and such
         Map<String, String> parameters = UtilGenerics.cast(context.get("parameters"));