svn commit: r1237383 - /ofbiz/branches/20111115ScreenWidgetRedesign/framework/widget/src/org/ofbiz/widget/html/HtmlMenuRenderer.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1237383 - /ofbiz/branches/20111115ScreenWidgetRedesign/framework/widget/src/org/ofbiz/widget/html/HtmlMenuRenderer.java

adrianc
Author: adrianc
Date: Sun Jan 29 17:37:05 2012
New Revision: 1237383

URL: http://svn.apache.org/viewvc?rev=1237383&view=rev
Log:
Screen Widget Redesign - fixed widget boundary comments.

Modified:
    ofbiz/branches/20111115ScreenWidgetRedesign/framework/widget/src/org/ofbiz/widget/html/HtmlMenuRenderer.java

Modified: ofbiz/branches/20111115ScreenWidgetRedesign/framework/widget/src/org/ofbiz/widget/html/HtmlMenuRenderer.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/20111115ScreenWidgetRedesign/framework/widget/src/org/ofbiz/widget/html/HtmlMenuRenderer.java?rev=1237383&r1=1237382&r2=1237383&view=diff
==============================================================================
--- ofbiz/branches/20111115ScreenWidgetRedesign/framework/widget/src/org/ofbiz/widget/html/HtmlMenuRenderer.java (original)
+++ ofbiz/branches/20111115ScreenWidgetRedesign/framework/widget/src/org/ofbiz/widget/html/HtmlMenuRenderer.java Sun Jan 29 17:37:05 2012
@@ -129,13 +129,13 @@ public final class HtmlMenuRenderer exte
         writer.append("</div>");
         appendWhitespace(writer);
         if (ModelWidget.widgetBoundaryCommentsEnabled(context)) {
-            renderEndingBoundaryComment(writer, "Menu Widget", modelMenu);
+            writer.append(buildBoundaryComment("End", "Menu Widget", modelMenu.getBoundaryCommentName()));
         }
     }
 
     private void renderMenuOpen(Appendable writer, Map<String, Object> context, ModelMenu modelMenu) throws IOException {
         if (ModelWidget.widgetBoundaryCommentsEnabled(context)) {
-            renderBeginningBoundaryComment(writer, "Menu Widget", modelMenu);
+            writer.append(buildBoundaryComment("Begin", "Menu Widget", modelMenu.getBoundaryCommentName()));
         }
         writer.append("<div");
         String menuId = modelMenu.getId();