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:28 UTC

svn commit: r1091871 - /myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java

Author: bommel
Date: Wed Apr 13 18:22:28 2011
New Revision: 1091871

URL: http://svn.apache.org/viewvc?rev=1091871&view=rev
Log:
(TOBAGO-986) Sheet can only sort UIOutput - Nothing happend with UILinkCommand and UIButtonCommand
possible solution for 1.5.x

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java?rev=1091871&r1=1091870&r2=1091871&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java Wed Apr 13 18:22:28 2011
@@ -73,7 +73,7 @@ public class Sorter {
         UIComponent child = getFirstSortableChild(column.getChildren());
         if (child != null) {
 
-          String attributeName = child instanceof AbstractUICommand ? "label":"value";
+          String attributeName = child instanceof AbstractUICommand ? Attributes.LABEL:Attributes.VALUE;
           if (FacesUtils.hasValueBindingOrValueExpression(child, attributeName)) {
             String var = data.getVar();
             String expressionString = FacesUtils.getExpressionString(child, attributeName);