This patchset includes:
* changes to the ViewState models (fix the session keys filtering, add UUIDs)
* suggestions from jprovazn's response to the previous patch
* viewstate API mostly working
What's missing:
* API access to the non-current saved viewstates via:
GET /controller/action/viewstate/UUID
and similar for PUT and DELETE
Right now, only this works:
GET|PUT|POST|DELETE /controller/action/viewstate
(this manipulates the session viewstate for the given controller & action).
However, this way of accessing the saved viewstates does work:
GET /controller/action?viewstate=UUID
This returns the /controller/action page. If the specified UUID differs from
the session viewstate, the session will be replaced with the saved viewstate
with the given UUID (if it exists in the database).
Please take a look at it and let me know if it makes sense.
Thanks,
Thomas