Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1457

[myfaces-example-simple-1.1.9] datascroller example fails with ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.1.9
    • None
    • Data Scroller
    • 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

          Activity

            People

              lu4242 Leonardo Uribe
              ryan.lubke@sun.com Ryan Lubke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: