myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathias Brökelmann <>
Subject Re: preserveDataModel (attribute of dataTable) questions
Date Thu, 22 Dec 2005 10:04:16 GMT
2005/12/22, Matthias Kahlau <>:
> javax.faces.el.EvaluationException: Cannot set value for expression
> '#{FragenBacking.fragenModel}' to a new value of type org.apache.myfaces
> .component.html.ext._SerializableDataModel

you have a setter method for fragenModel which does not accept a
parameter for an instance of javax.faces.model.DataModel.

> Another question related to the dataModel. I don't know if the
> "preserveDataModel" approach can help, but when the user leaves the site
> with the table because the user selected an edit link in the table, and then
> returns to the site with the table, I cannot use the getRowData() method to
> determine the last row selected. If I do that, I get the following error
> message:

That is not possible. You have to remember which row was selected
between the views and call datamodel.setRowIndex(rememberedIndex)
before calling getRowData().


View raw message