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" >
@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; } }
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