You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/11/02 13:08:40 UTC
svn commit: r330241 -
/myfaces/share/trunk/src/java/org/apache/myfaces/taglib/UIComponentTagUtils.java
Author: mmarinschek
Date: Wed Nov 2 04:08:29 2005
New Revision: 330241
URL: http://svn.apache.org/viewcvs?rev=330241&view=rev
Log:
fixed MYFACES-774. Thanks to Nico Krijnen.
Modified:
myfaces/share/trunk/src/java/org/apache/myfaces/taglib/UIComponentTagUtils.java
Modified: myfaces/share/trunk/src/java/org/apache/myfaces/taglib/UIComponentTagUtils.java
URL: http://svn.apache.org/viewcvs/myfaces/share/trunk/src/java/org/apache/myfaces/taglib/UIComponentTagUtils.java?rev=330241&r1=330240&r2=330241&view=diff
==============================================================================
--- myfaces/share/trunk/src/java/org/apache/myfaces/taglib/UIComponentTagUtils.java (original)
+++ myfaces/share/trunk/src/java/org/apache/myfaces/taglib/UIComponentTagUtils.java Wed Nov 2 04:08:29 2005
@@ -252,9 +252,9 @@
{
if (action != null)
{
- if (!(component instanceof UICommand))
+ if (!(component instanceof ActionSource))
{
- throw new IllegalArgumentException("Component " + component.getClientId(context) + " is no UICommand");
+ throw new IllegalArgumentException("Component " + component.getClientId(context) + " is no ActionSource");
}
MethodBinding mb;
if (isValueReference(action))
@@ -265,7 +265,7 @@
{
mb = new SimpleActionMethodBinding(action);
}
- ((UICommand)component).setAction(mb);
+ ((ActionSource)component).setAction(mb);
}
}