2 Replies Latest reply on Jun 2, 2008 3:48 AM by Nasir Imtiaz

    Problem binding rich:datascroller to org.richfaces.component

    Nasir Imtiaz Newbie

      Hi guys, i have this 'rich:datatable' that i've bound with 'javax.faces.component.UIData' property in my bean, and i've a 'rich:datascroller' for the mentioned datatable.
      Now, everything works fine till i try to bind the'rich:datascroller' with a property of type 'org.richfaces.component.UIDatascroller' in my bean. It throws an 'java.lang.IllegalArgumentException' with the given error

      message "argument type mismatch".
      Following is my work enviorment:
      1. JDK 1.6.0_02
      2. JBoss 4.2.2.GA
      3. JBoss Seam 2.0.1.GA
      4. RichFaces 3.2.1.GA

      Following are my code snippets:

      <rich:dataTable id="customersGrid" value="#{userAction.listCustomers}" var="customer" binding="#{userAction.dataTable}" rows="20">
      <rich:datascroller id="customersScroller" for="customersGrid" maxPages="10" action="#{userAction.scrollerAction}" binding="#{userAction.datascroller}"></rich:datascroller>
      import javax.faces.component.UIData;
      import org.richfaces.component.UIDatascroller;
      public class UserActionBean implements UserAction {
       private UIData dataTable;
       private UIDatascroller datascroller;
       private List<Customers> listCustomers;
       public UIData getDataTable() {
       return dataTable;
       public void setDataTable(UIData dataTable) {
       this.dataTable = dataTable;
       public UIDatascroller getDatascroller() {
       return datascroller;
       public void setDatascroller(UIDatascroller datascroller) {
       this.datascroller = datascroller;