myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r543490 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/submitOnEvent/SubmitOnEventRenderer.java
Date Fri, 01 Jun 2007 14:02:13 GMT
Author: imario
Date: Fri Jun  1 07:02:12 2007
New Revision: 543490

URL: http://svn.apache.org/viewvc?view=rev&rev=543490
Log:
check for EditableValueHolder and ActionSource too. Thanks to matzew for the tip.

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/submitOnEvent/SubmitOnEventRenderer.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/submitOnEvent/SubmitOnEventRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/submitOnEvent/SubmitOnEventRenderer.java?view=diff&rev=543490&r1=543489&r2=543490
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/submitOnEvent/SubmitOnEventRenderer.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/submitOnEvent/SubmitOnEventRenderer.java
Fri Jun  1 07:02:12 2007
@@ -18,12 +18,14 @@
  */
 package org.apache.myfaces.custom.submitOnEvent;
 
+import org.apache.myfaces.custom.dialog.ModalDialog;
 import org.apache.myfaces.renderkit.html.util.AddResource;
 import org.apache.myfaces.renderkit.html.util.AddResourceFactory;
 import org.apache.myfaces.shared_tomahawk.renderkit.html.HTML;
 import org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer;
-import org.apache.myfaces.custom.dialog.ModalDialog;
 
+import javax.faces.component.ActionSource;
+import javax.faces.component.EditableValueHolder;
 import javax.faces.component.UICommand;
 import javax.faces.component.UIComponent;
 import javax.faces.component.UIInput;
@@ -64,11 +66,14 @@
         {
             if (UIInput.COMPONENT_FAMILY.equals(parent.getFamily())
 				|| parent instanceof UIInput
-				|| parent instanceof ModalDialog)
+				|| parent instanceof ModalDialog
+				|| parent instanceof EditableValueHolder)
             {
                 triggerComponent = parent;
             }
-            else if (UICommand.COMPONENT_FAMILY.equals(parent.getFamily()) || parent instanceof
UICommand)
+            else if (UICommand.COMPONENT_FAMILY.equals(parent.getFamily())
+				|| parent instanceof UICommand
+				|| parent instanceof ActionSource)
             {
                 forComponent = parent;
             }



Mime
View raw message