On 7/19/06, Rogerio Pereira <[EMAIL PROTECTED]> wrote:
I´m trying to implement sorting feature in my dataTable like we have in wiki
entry:
http://wiki.apache.org/myfaces/Working_with_auto_sortable_tables
at subtopic "Enable auto sort by columns", but when i fill my from my action
method and the reload the page i get this exception:
java.lang.ClassCastException:
org.apache.myfaces.component.html.ext.SortableModel
at
org.apache.myfaces.component.html.ext.HtmlDataTable.updateModelFromPreservedDataModel(HtmlDataTable.java:401)
Any ideas about how to fix this?
Look up the code above. See what the expected type was. Determine
what your type was. Determine why the types are different :)
Setting a breakpoint at java.lang.ClassCastException should make it pretty easy.