public interface IPageRecorder extends ChangeObserver
Concrete implementations of this can store the changes in memory, as client-side cookies, in a flat file, or in a database.
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Persists all changes that have been accumulated.
|
void |
rollback(IPage page)
Rolls back the page to the currently persisted state.
|
observeChangevoid commit()
After commiting, a page recorder automatically locks itself.
void rollback(IPage page)
A page recorder can only rollback changes to properties which have changed at some point.
This can cause some minor problems, addressed by
PageDetachListener.pageDetached(org.apache.tapestry.event.PageEvent).