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

svn commit: r946270 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/ModelWidget.java

Author: adrianc
Date: Wed May 19 16:50:27 2010
New Revision: 946270

URL: http://svn.apache.org/viewvc?rev=946270&view=rev
Log:
Deprecated some methods in ModelWidget.java that are not thread-safe. Plus, the implementation of widget comments was flawed. Widget comments can be enabled/disabled on a per-request basis, but the setting was saved on a per-widget basis.

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/ModelWidget.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/ModelWidget.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/ModelWidget.java?rev=946270&r1=946269&r2=946270&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/ModelWidget.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/ModelWidget.java Wed May 19 16:50:27 2010
@@ -88,7 +88,9 @@ public class ModelWidget implements Seri
      * Returns true if boundary comments are enabled for this widget, otherwise
      * returns false.
      * @return True if boundary comments are enabled for this widget
+     * @deprecated Use the static <code>widgetBoundaryCommentsEnabled</code> method instead
      */
+    @Deprecated
     public boolean boundaryCommentsEnabled() {
         return enableWidgetBoundaryComments;
     }
@@ -96,7 +98,9 @@ public class ModelWidget implements Seri
     /**
      * Enables/disables boundary comments for this widget.
      * @param context The screen rendering context
+     * @deprecated Do not use this - it is not thread-safe
      */
+    @Deprecated
     public void setWidgetBoundaryComments(Map<String, ? extends Object> context) {
         Map<String, ? extends Object> parameters = UtilGenerics.checkMap(context.get("parameters"));
         enableWidgetBoundaryComments = widgetBoundaryCommentsEnabled(parameters);