myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Aranda (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Closed: (MYFACES-538) ClassCastException occurs in HtmlTableRenderer (for <t:datatable>) if rowId does not evaluate to a String
Date Thu, 08 Sep 2005 08:25:34 GMT
     [ http://issues.apache.org/jira/browse/MYFACES-538?page=all ]
     
Bruno Aranda closed MYFACES-538:
--------------------------------

    Fix Version: Nightly Build
     Resolution: Fixed

You are right. This is now fixed. Thanks for reporting!!

> ClassCastException occurs in HtmlTableRenderer (for <t:datatable>) if rowId does
not evaluate to a String
> ---------------------------------------------------------------------------------------------------------
>
>          Key: MYFACES-538
>          URL: http://issues.apache.org/jira/browse/MYFACES-538
>      Project: MyFaces
>         Type: Bug
>   Components: Implementation
>     Versions: Nightly Build
>     Reporter: Erik-Berndt Scheper
>     Assignee: Bruno Aranda
>      Fix For: Nightly Build

>
> If the rowId property of a <t:datatable> tag does not evaluate to a String, an
ugly ClassCastException is thrown by renderRowStart() method of the HtmlTableRendererClass.
> This is caused by :
> String rowId = (String) uiData.getAttributes().get(JSFAttr.ROW_ID);
> Instead of a cast to String, the toString() method should have been used....
> (Then we could put a variable of type Int of Long in the rowId (which sounds natural)...)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message