preserveDataModel=true always throws ClassCastException
-------------------------------------------------------

         Key: TOMAHAWK-241
         URL: http://issues.apache.org/jira/browse/TOMAHAWK-241
     Project: MyFaces Tomahawk
        Type: Bug

  Components: Extended Datatable  
    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

Reply via email to