Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.1.9
-
None
-
None
-
Mojarra 1.2_14-SNAPSHOT
Mojarra 2.0.0-SNAPSHOT
Mac OS 10.5.6
JDK 1.6.0
Description
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?
Attachments
Issue Links
- duplicates
-
TOMAHAWK-1064 The Datascroller causes a class cast exception in MyFaces 1.2
- Closed