You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2012/10/08 16:58:32 UTC

svn commit: r1395598 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SheetRenderer.java

Author: lofwyr
Date: Mon Oct  8 14:58:31 2012
New Revision: 1395598

URL: http://svn.apache.org/viewvc?rev=1395598&view=rev
Log:
TOBAGO-1206: Some sheet header markups are missing

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SheetRenderer.java

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SheetRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SheetRenderer.java?rev=1395598&r1=1395597&r2=1395598&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SheetRenderer.java (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SheetRenderer.java Mon Oct  8 14:58:31 2012
@@ -742,7 +742,7 @@ public class SheetRenderer extends Layou
       }
       tip += ResourceManagerUtils.getPropertyNotNull(facesContext, "tobago", "sheetTipSorting");
 
-      markup.add(Markup.SORTABLE);
+      markup = markup.add(Markup.SORTABLE);
 
       SheetState sheetState = sheet.getSheetState(facesContext);
       if (column.getId().equals(sheetState.getSortedColumnId())) {
@@ -750,11 +750,11 @@ public class SheetRenderer extends Layou
         if (sheetState.isAscending()) {
           sorterImage = contextPath + resourceManager.getImage(facesContext, "image/ascending.gif");
           sortTitle = ResourceManagerUtils.getPropertyNotNull(facesContext, "tobago", "sheetAscending");
-          markup.add(Markup.ASCENDING);
+          markup = markup.add(Markup.ASCENDING);
         } else {
           sorterImage = contextPath + resourceManager.getImage(facesContext, "image/descending.gif");
           sortTitle = ResourceManagerUtils.getPropertyNotNull(facesContext, "tobago", "sheetDescending");
-          markup.add(Markup.DESCENDING);
+          markup = markup.add(Markup.DESCENDING);
         }
         if (sortTitle != null) {
           tip += " - " + sortTitle;