Martin Marinschek wrote:
well, why don't we do it ourselves? Let's ask Craig, Adam and Manfred
what they think of this - I am including their addresses here...
As I wrote in some post earlier, I already found a solution to save
beans over the redirect if they are marked with an interface.
It should be possible to change this if we maintain a list in saveState
- a collection of all "saveStated"-beans.
It should also be easy to extend the "survivor" session bean to hold
other informations (locale, ...) too.
The point is, I cant think of a solution where the browser-back button
will ALWAYS work, for me this is not a problem, but maybe for JSF as a
standard it wont be acceptable to allow only e.g. 20 (configureable)
browser-backs.
To make at least the 20 browser-back buttons possible it is needed to
append an survivorId to the redirect url. This id will be incremented
for every redirect and will be unique for the whole application life.
With this id the survivorBean will be looked up from a list and its
state will be restored. This list can be a LRUMap with (e.g.) max 20
entries.
---
Mario