You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2011/04/13 20:22:03 UTC

svn commit: r1091870 - /myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java

Author: bommel
Date: Wed Apr 13 18:22:02 2011
New Revision: 1091870

URL: http://svn.apache.org/viewvc?rev=1091870&view=rev
Log:
(TOBAGO-986) Sheet can only sort UIOutput - Nothing happend with UILinkCommand and UIButtonCommand
thanks to Sven Bunge

Modified:
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java?rev=1091870&r1=1091869&r2=1091870&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java Wed Apr 13 18:22:02 2011
@@ -82,7 +82,7 @@ public class Sorter extends MethodBindin
 
           UIComponent child = getFirstSortableChild(column.getChildren());
           if (child != null) {
-            String attributeName = child instanceof UICommand ? "label":"value";
+            String attributeName = child instanceof UICommand ? TobagoConstants.ATTR_LABEL:TobagoConstants.ATTR_VALUE;
             ValueBinding valueBinding = child.getValueBinding(attributeName);