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 2016/08/05 12:40:38 UTC

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

Author: lofwyr
Date: Fri Aug  5 12:40:37 2016
New Revision: 1755311

URL: http://svn.apache.org/viewvc?rev=1755311&view=rev
Log:
TOBAGO-1524: Use standard AJAX mechanism
* fixes sorting
[developed by hnoeth]

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

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java?rev=1755311&r1=1755310&r2=1755311&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java Fri Aug  5 12:40:37 2016
@@ -795,7 +795,7 @@ public class SheetRenderer extends Rende
               }
               final CommandMap map = new CommandMap();
               final Command click = new Command(
-                  sortCommand.getClientId(facesContext), null, null, null, clientIds, null, null, null, null, null,
+                  sortCommand.getClientId(facesContext), null, null, null, clientIds, clientIds, null, null, null, null,
                   null);
               map.setClick(click);
               writer.writeAttribute(DataAttributes.COMMANDS, JsonUtils.encode(map), true);
@@ -1012,7 +1012,7 @@ public class SheetRenderer extends Rende
     if (target != null) {
       ComponentUtils.setAttribute(command, Attributes.pagingTarget, target);
     }
-    command.setRenderedPartially(new String[]{data.getId()});
+    command.setRenderPartially(new String[]{data.getId()});
 
     final Locale locale = facesContext.getViewRoot().getLocale();
     final String message = ResourceManagerUtils.getPropertyNotNull(facesContext, "tobago", "sheet" + action.getToken());