You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2010/05/01 05:28:54 UTC

[jira] Resolved: (TOMAHAWK-1457) [myfaces-example-simple-1.1.9] datascroller example fails with ClassCastException

     [ https://issues.apache.org/jira/browse/TOMAHAWK-1457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved TOMAHAWK-1457.
--------------------------------------

      Assignee: Leonardo Uribe
    Resolution: Duplicate

Duplicate of TOMAHAWK-1064, which was fixed. Yes, it is an error on the demo

> [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
>            Assignee: Leonardo Uribe
>
> 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.