myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r906189 - /myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java
Date Wed, 03 Feb 2010 19:19:31 GMT
Author: lu4242
Date: Wed Feb  3 19:19:30 2010
New Revision: 906189

URL: http://svn.apache.org/viewvc?rev=906189&view=rev
Log:
TOMAHAWK-1487 ClassCastException when rendering HtmlDataScroller with core 2.0

Modified:
    myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java

Modified: myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java?rev=906189&r1=906188&r2=906189&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java
(original)
+++ myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java
Wed Feb  3 19:19:30 2010
@@ -18,9 +18,10 @@
  */
 package org.apache.myfaces.custom.datascroller;
 
+import javax.el.MethodExpression;
 import javax.el.ValueExpression;
 import javax.faces.FacesException;
-import javax.faces.component.ActionSource;
+import javax.faces.component.ActionSource2;
 import javax.faces.component.PartialStateHolder;
 import javax.faces.component.StateHolder;
 import javax.faces.component.UIComponent;
@@ -73,7 +74,7 @@
     clazz = "org.apache.myfaces.custom.datascroller.HtmlDataScroller",
     tagClass = "org.apache.myfaces.custom.datascroller.HtmlDataScrollerTag")
 public abstract class AbstractHtmlDataScroller extends UIPanel
-    implements ActionSource, ClientBehaviorHolder, UserRoleAware, DisplayValueOnlyCapable,
+    implements ActionSource2, ClientBehaviorHolder, UserRoleAware, DisplayValueOnlyCapable,
     DisplayValueOnlyAware, ForceIdAware, UniversalProperties, StyleAware
 {
 
@@ -622,6 +623,19 @@
         throw new UnsupportedOperationException(
                         "defining an action is not supported. use an actionlistener");
     }
+    
+    public MethodExpression getActionExpression()
+    {
+        // not used
+        return null;
+    }
+
+    public void setActionExpression(MethodExpression action)
+    {
+        throw new UnsupportedOperationException(
+                        "defining an action is not supported. use an actionlistener");
+    }
+
 
     /**
      * @see javax.faces.component.ActionSource#setActionListener(javax.faces.el.MethodBinding)



Mime
View raw message