You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Hazem Saleh (JIRA)" <de...@myfaces.apache.org> on 2009/03/14 04:08:50 UTC

[jira] Resolved: (TOMAHAWK-241) preserveDataModel=true always throws ClassCastException

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

Hazem Saleh resolved TOMAHAWK-241.
----------------------------------

    Resolution: Invalid

Not a bug, This scenario works fine.

> preserveDataModel=true always throws ClassCastException
> -------------------------------------------------------
>
>                 Key: TOMAHAWK-241
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-241
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Extended Datatable
>    Affects Versions: 1.1.1
>            Reporter: Robert Thaler
>            Assignee: Hazem Saleh
>
> I have created a simple DataTable with scrolling ability using DataScroller. I have set preserveDataModel to true.
> The first call of the page works fine. If I would like to show the next page of data rows I always receive the following exception:
> java.lang.ClassCastException: javax.faces.model.ListDataModel
> 	at org.apache.myfaces.component.html.ext.HtmlDataTable.updateModelFromPreservedDataModel(HtmlDataTable.java:256)
> 	at org.apache.myfaces.component.html.ext.HtmlDataTable.processUpdates(HtmlDataTable.java:242)
> 	at javax.faces.component.UIForm.processUpdates(UIForm.java:85)
> I take a look in the source and it seems to me that the call of getDataModel() is the problem. It never returns a _SerializabelDataModel. Souldn't it call getPreservedDataModel()?
> regards
> Robert

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.