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/10/21 15:14:59 UTC

svn commit: r1766042 - in /myfaces/tobago/trunk: tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/ tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/

Author: lofwyr
Date: Fri Oct 21 15:14:59 2016
New Revision: 1766042

URL: http://svn.apache.org/viewvc?rev=1766042&view=rev
Log:
TOBAGO-1602: Sheet: use of <tc:columnEvent> not possible with <f:ajax>
- cleanup class structure

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIColumnEvent.java
    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-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIColumnEvent.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIColumnEvent.java?rev=1766042&r1=1766041&r2=1766042&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIColumnEvent.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIColumnEvent.java Fri Oct 21 15:14:59 2016
@@ -19,5 +19,7 @@
 
 package org.apache.myfaces.tobago.internal.component;
 
-public class AbstractUIColumnEvent extends AbstractUIColumnBase {
+public abstract class AbstractUIColumnEvent extends AbstractUIColumnBase {
+
+  public abstract String getEvent();
 }

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=1766042&r1=1766041&r2=1766042&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 Oct 21 15:14:59 2016
@@ -23,7 +23,6 @@ import org.apache.myfaces.tobago.compone
 import org.apache.myfaces.tobago.component.Facets;
 import org.apache.myfaces.tobago.component.LabelLayout;
 import org.apache.myfaces.tobago.component.RendererTypes;
-import org.apache.myfaces.tobago.component.UIColumnEvent;
 import org.apache.myfaces.tobago.component.UIColumnSelector;
 import org.apache.myfaces.tobago.component.UICommand;
 import org.apache.myfaces.tobago.component.UIOut;
@@ -1159,8 +1158,8 @@ public class SheetRenderer extends Rende
     final CommandMap commandMap = new CommandMap();
     String rowActionId = null;
     for (final UIComponent child : sheet.getChildren()) {
-      if (child instanceof UIColumnEvent && child.isRendered()) {
-        final UIColumnEvent columnEvent = (UIColumnEvent) child;
+      if (child instanceof AbstractUIColumnEvent && child.isRendered()) {
+        final AbstractUIColumnEvent columnEvent = (AbstractUIColumnEvent) child;
         for (UIComponent uiCommand : columnEvent.getChildren()) {
           if (uiCommand.isRendered()) {
             if (uiCommand instanceof ClientBehaviorHolder) {