myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ali Abdel-Aziz Ali" <>
Subject How to Sync the SaveState variables?
Date Sun, 06 Apr 2008 09:23:43 GMT
Hello All,

I have some variables(properties) saved in savestate as follows

                <t:saveState value="#{procedureListBean.selectedVersionId}"
value="#{procedureListBean..selectedProcedureId}" id="selectedProcedureId"/>
                <t:saveState value="#{procedureListBean.procedureVersions}"
                <t:saveState value="#{procedureListBean.procedures}"

the problem is I have master detail page which contains two tables

   - the Master Table (procedures) list all procedures then by selecting
   specific record in this table it will display the details (
   procedureVersions) table associated with this record.
   - The Details Table (procedureVersions) list all procedureVersions
   with the selected (procedure) record.

Now after selecting record from the master table (procedures) and trying to
scroll to another page in the Master (procedures) table it keep displaying
the details of the old selected (procedures) record.

I tried to set the details table variable (procedureVersions) to null once
it start scrolling to another (procedures) page but it keeps ignoring the
value I set and restore the old saved value of the detail table (
procedureVersions) .

So my question is How to sync the values saved in the savestate with the
latest values I feeded this variables with from my managed bean.

By the way this was working in a good way with me in the past (when I was
loading all table data in memory) but after I turned my implementation to
just fetch the required page records this problem arises, I implemented the
solution mentioned here (

Can any body helps?

Thanks in advance.

Ali Abdel-Aziz

View raw message