I'm working on a web application (bottle + beaker + jQuery ) where I'd like the user to have a somewhat modifiable list of items which persists across various form submissions and page updates. Clicking on an item in the list queries a database for information about that list item and this information can be updated by the user. I'd like the list to persist across querying/updating different list items. Also, as a convenience to the user, the list allows items to be "checked off" (or unchecked), say as they are processed or viewed.
I've gone over several different ways to accomplish this (e.g. update a hidden element in each form on the page and then use session management to update the working list on the server at every round trip; use Ajax to update the session variable each time an item on the list is checked or becomes the "active" list element), but none of them seem terribly satisfactory or elegant.
My question is is there a standard way of handling this sort of thing? Surely this is a fairly common requirement for similar web applications.