0 Replies Latest reply on Feb 14, 2008 7:22 AM by Thiagu Mariappan

    How to bind the rich:datascroller component

    Thiagu Mariappan Novice

      Hai everyone
      I need to bind the rich:datascroller component with my backing bean
      I try that, but I can’t, I need some help

      This is my xhtml code

      <rich:datascroller binding="#{productsearch. dataScroller }" ajaxSingle="false" for="prodList" maxPages="10" >

      This is my session bean code
      @Name("productsearch")
      public class ProductsAction implements ProductsLocal,Serializable
      {
       Private org.richfaces.component.UIDatascroller dataScroller;
      
       public UIDatascroller getDataScroller() {
       return dataScroller;
       }
      
      
       public void setDataScroller(UIDatascroller dataScroller) {
       this.dataScroller = dataScroller;
       }
      }
      
      

      But I got this Exception
      Caused by: javax.el.ELException: /ProductTableList.xhtml @568,153 binding="#{productsearch.dataScroller}": java.lang.IllegalArgumentException: argument type mismatch
       at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:101)
       at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:237)
       ... 79 more
      Caused by: java.lang.IllegalArgumentException: argument type mismatch
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at javax.el.BeanELResolver.setValue(BeanELResolver.java:108)
       at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68)
       at com.sun.faces.el.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:93)
       at org.jboss.el.parser.AstPropertySuffix.setValue(AstPropertySuffix.java:73)
       at org.jboss.el.parser.AstValue.setValue(AstValue.java:84)
       at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
       at com.sun.facelets.el.TagValueExpression.setVal
      13:55:36,351 ERROR [STDERR] ue(TagValueExpression.java:93)
       ... 80 more
      

      I try with org.richfaces.component.html.HtmlDatascroller also
      But I got same problem
      Please any one help me
      i am using richface 3.1.4 GA
      i put all the 3 richface jar files into /WEB-INF/lib folder


      By
      Thiagu.m