[myfaces-example-simple-1.1.9] datascroller example fails with
ClassCastException
---------------------------------------------------------------------------------
Key: TOMAHAWK-1457
URL: https://issues.apache.org/jira/browse/TOMAHAWK-1457
Project: MyFaces Tomahawk
Issue Type: Bug
Components: Data Scroller
Affects Versions: 1.1.9
Environment: Mojarra 1.2_14-SNAPSHOT
Mojarra 2.0.0-SNAPSHOT
Mac OS 10.5.6
JDK 1.6.0
Reporter: Ryan Lubke
Exception when executing the demo:
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
at javax.faces.component.UIData.getRows(UIData.java:495)
at
org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.getRows(AbstractHtmlDataTable.java:781)
at
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:234)
at
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:140)
javap of the managed bean used by this example:
public class org.apache.myfaces.examples.listexample.DataScrollerList extends
java.lang.Object{
public java.lang.Long getRowCount();
public void setRowCount(java.lang.Long);
public org.apache.myfaces.examples.listexample.DataScrollerList();
public java.util.List getList();
public void scrollerAction(javax.faces.event.ActionEvent);
}
Shouldn't {get/set}RowCount() be Integer to be inline with the standard API?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.