You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Ido Tzang (JIRA)" <de...@myfaces.apache.org> on 2006/09/19 12:57:24 UTC
[jira] Commented: (TOMAHAWK-241) preserveDataModel=true always
throws ClassCastException
[ http://issues.apache.org/jira/browse/TOMAHAWK-241?page=comments#action_12435747 ]
Ido Tzang commented on TOMAHAWK-241:
------------------------------------
Is this a confirmed bug ?
Is it solved in 1.1.3 ? later ?
regards,
Ido
> preserveDataModel=true always throws ClassCastException
> -------------------------------------------------------
>
> Key: TOMAHAWK-241
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-241
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable
> Affects Versions: 1.1.1
> Reporter: Robert Thaler
>
> 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.
-
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