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:
my-page.xml
...
<rich:dataTable id="customersGrid" value="#{userAction.listCustomers}" var="customer" binding="#{userAction.dataTable}" rows="20">
...
</rich:dataTable>
<rich:datascroller id="customersScroller" for="customersGrid" maxPages="10" action="#{userAction.scrollerAction}" binding="#{userAction.datascroller}"></rich:datascroller>
...
UserActionBean.java
import javax.faces.component.UIData;
import org.richfaces.component.UIDatascroller;
...
@Stateful
@Name("userAction")
@Scope(ScopeType.SESSION)
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;
}
...
}