myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1032782 - in /myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal: component/AbstractUIToolBar.java lifecycle/ApplyRequestValuesExecutor.java
Date Mon, 08 Nov 2010 23:06:29 GMT
Author: lofwyr
Date: Mon Nov  8 23:06:29 2010
New Revision: 1032782

URL: http://svn.apache.org/viewvc?rev=1032782&view=rev
Log:
TOBAGO-929: Render partially doesn't work inside of ToolBar.

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIToolBar.java
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/lifecycle/ApplyRequestValuesExecutor.java

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIToolBar.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIToolBar.java?rev=1032782&r1=1032781&r2=1032782&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIToolBar.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIToolBar.java
Mon Nov  8 23:06:29 2010
@@ -17,9 +17,16 @@ package org.apache.myfaces.tobago.intern
  * limitations under the License.
  */
 
+import org.apache.myfaces.tobago.compat.FacesUtils;
+import org.apache.myfaces.tobago.compat.InvokeOnComponent;
 import org.apache.myfaces.tobago.layout.LayoutComponent;
 
-public abstract class AbstractUIToolBar extends javax.faces.component.UIPanel implements
LayoutComponent {
+import javax.faces.FacesException;
+import javax.faces.component.ContextCallback;
+import javax.faces.context.FacesContext;
+
+public abstract class AbstractUIToolBar extends javax.faces.component.UIPanel
+    implements InvokeOnComponent, LayoutComponent {
 
   public static final String LABEL_BOTTOM = "bottom";
   public static final String LABEL_RIGHT = "right";
@@ -32,4 +39,9 @@ public abstract class AbstractUIToolBar 
   public static final String ORIENTATION_LEFT = "left";
   public static final String ORIENTATION_RIGHT = "right";
 
+  public boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback
callback)
+     throws FacesException {
+    return FacesUtils.invokeOnComponent(context, this, clientId, callback);
+  }
+
 }

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/lifecycle/ApplyRequestValuesExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/lifecycle/ApplyRequestValuesExecutor.java?rev=1032782&r1=1032781&r2=1032782&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/lifecycle/ApplyRequestValuesExecutor.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/lifecycle/ApplyRequestValuesExecutor.java
Mon Nov  8 23:06:29 2010
@@ -80,8 +80,8 @@ class ApplyRequestValuesExecutor impleme
     return false;
   }
 
-  private void decodeActionComponent(FacesContext facesContext, AbstractUIPage page, Map<String,
-      UIComponent> ajaxComponents) {
+  private void decodeActionComponent(
+      FacesContext facesContext, AbstractUIPage page, Map<String, UIComponent> ajaxComponents)
{
     String actionId = page.getActionId();
     UIComponent actionComponent = null;
     if (actionId != null) {



Mime
View raw message