So always remember the last versionnumber for a page that was a normal request And all normal and ajax request to that version number will always give the latest.
What we also could do is have special ajax versioning that doesn't up the version number but can be used in an ajax request to rollback. some thing like: Component[] alteredComponents = page.getVersionManager ().rollbackToAjaxVersion(version) AjaxRequestTarget.add(alteredComponents) johan On 2/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
On 2/8/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > Eelco Hillenius wrote: > > Can't we come up with something smart like recording the last non-ajax > > request so that when a request for exactly that url comes in after a > > couple version changing ajax request we now that we have to discard > > version info but just serve the latest? > And what if user really pressed the back button and really returned to > the page with "old" verion number? Then you would recognize it is not the same url as before the ajax request(s) and you would just roll back the whole thing to that version. Eelco
