Sorry for missing this, have been a little busy lately and didn't have time
to check the mailing list.

Here is the source-code for the solution I came up with. It is not the most
elegant, but it works for now.
The main classes to look at are HistoryManager and ViewState. I basicaly
called the methods that myfaces uses for storing and restoring state
(TreeStructureManager). The HistoryMarkers class has some dependecies on
other classes so you will have to tweak it a little to get it to work.

Feel free to experiment with it. I'd like to donate it to myfaces, but at
the moment I do not realy have the time to put it in the sandbox.

I am curious to take a look at the savestate stack implementation mentioned
by Werner Punz, but that will have to wait until I have some more time
available.

For explanation of this mechanism see comments in code and previous post:
http://www.mail-archive.com/users@myfaces.apache.org/msg14557.html

Nico Krijnen


Mario wrote:

Martin Marinschek wrote:

>Well, I'd first try to get into contact with Niko, if
he >would be
>willing to open source his stuff.

Thanks, I figured the best place to start was by
addressing the list. I really don't know what the list
policy about directly emailing other members is, but I
guess I'll give it a try, and let you know if I find
out anything interesting :-)

Mario

Attachment: AddViewStateListener.java
Description: Binary data

Attachment: HistoryManager.java
Description: Binary data

Attachment: ViewState.java
Description: Binary data

Attachment: HistoryMarkers.java
Description: Binary data

Reply via email to