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 2014/09/18 15:17:23 UTC

svn commit: r1625968 - /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: Thu Sep 18 13:17:22 2014
New Revision: 1625968

URL: http://svn.apache.org/r1625968
Log:
TOBAGO-939 - RenderedPartially support for sheet and tabGroup

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=1625968&r1=1625967&r2=1625968&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 Thu Sep 18 13:17:22 2014
@@ -826,9 +826,13 @@ public class SheetRenderer extends Layou
                     facesContext, UICommand.COMPONENT_TYPE, RendererTypes.LINK, sorterId);
                 column.getFacets().put(Facets.SORTER, sortCommand);
               }
+              String[] clientIds = ComponentUtils.evaluateClientIds(facesContext, sheet, sheet.getRenderedPartially());
+              if (clientIds.length == 0) {
+                clientIds = new String[]{sheet.getClientId(facesContext)};
+              }
               final CommandMap map = new CommandMap();
-              final Command click = new Command(sortCommand.getClientId(facesContext),
-                  null, null, null, new String[]{sheet.getClientId(facesContext)}, null, null, null, null, null);
+              final Command click = new Command(
+                  sortCommand.getClientId(facesContext), null, null, null, clientIds, null, null, null, null, null);
               map.setClick(click);
               writer.writeAttribute(DataAttributes.COMMANDS, JsonUtils.encode(map), true);