You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Gregory D Dennis <gd...@MIT.EDU> on 2006/07/28 22:04:21 UTC

preserveDataModel does not make selected row available

Can anyone explain why setting the preserveDataModel attribute to true in a
dataTable does not make the selected row (via getRowIndex or getRowData)
available on the subsequent request? That seems to be what one would logically
expect. Currently, preserving the selected row requires saving the state of the
data model's wrapped data. It would be nice if using t:saveState on the wrapped
data and setting the preserveDataModel attribute to true had the same effect.

Re: preserveDataModel does not make selected row available

Posted by Thomas Spiegl <th...@gmail.com>.
That's a question for the user list, not dev.

Tip: Use the updateActionListener to set the actual rowData in your backingBean.

Thomas

On 7/28/06, Gregory D Dennis <gd...@mit.edu> wrote:
> Can anyone explain why setting the preserveDataModel attribute to true in a
> dataTable does not make the selected row (via getRowIndex or getRowData)
> available on the subsequent request? That seems to be what one would logically
> expect. Currently, preserving the selected row requires saving the state of the
> data model's wrapped data. It would be nice if using t:saveState on the wrapped
> data and setting the preserveDataModel attribute to true had the same effect.
>


-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces