myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r379833 - /myfaces/commons/trunk/src/main/java/org/apache/myfaces/taglib/UIComponentTagUtils.java
Date Wed, 22 Feb 2006 18:28:11 GMT
Author: imario
Date: Wed Feb 22 10:28:08 2006
New Revision: 379833

URL: http://svn.apache.org/viewcvs?rev=379833&view=rev
Log:
rollback MYFACES-1127
current solution didnt work if you reference the *listener through the
var= attribute (e.g. within an datatable)


Modified:
    myfaces/commons/trunk/src/main/java/org/apache/myfaces/taglib/UIComponentTagUtils.java

Modified: myfaces/commons/trunk/src/main/java/org/apache/myfaces/taglib/UIComponentTagUtils.java
URL: http://svn.apache.org/viewcvs/myfaces/commons/trunk/src/main/java/org/apache/myfaces/taglib/UIComponentTagUtils.java?rev=379833&r1=379832&r2=379833&view=diff
==============================================================================
--- myfaces/commons/trunk/src/main/java/org/apache/myfaces/taglib/UIComponentTagUtils.java
(original)
+++ myfaces/commons/trunk/src/main/java/org/apache/myfaces/taglib/UIComponentTagUtils.java
Wed Feb 22 10:28:08 2006
@@ -284,12 +284,14 @@
                 MethodBinding mb = context.getApplication().createMethodBinding(actionListener,
                                                                                 ACTION_LISTENER_ARGS);
 
+                /**
                 if(! Void.class.equals(mb.getType(context)))
                 {
                     throw new IllegalArgumentException(
                             actionListener +
                             " : Return types for action listeners must be void, see JSF spec.
3.2.1.1");
                 }
+                */
 
                 ((ActionSource)component).setActionListener(mb);
             }
@@ -314,13 +316,14 @@
             {
                 MethodBinding mb = context.getApplication().createMethodBinding(valueChangedListener,
                                                                                 VALUE_LISTENER_ARGS);
-
+                /**
                 if(! Void.class.equals(mb.getType(context)))
                 {
                     throw new IllegalArgumentException(
                             valueChangedListener + 
                             " : Return types for value change listeners must be void, see
JSF spec. 3.2.5.1");
                 }
+                */
 
                 ((EditableValueHolder)component).setValueChangeListener(mb);
             }



Mime
View raw message