You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Programozás <pr...@hotmail.com> on 2004/01/24 13:29:05 UTC

rewinding support best practise?

My component renders a HTML table based on a database. (I'm not using the contrib table component.)
It is a requirement that each rendering displays the most current state of the database.

I thought that it's OK if I query the database at the beginning of the rendering, and simply display the data, then forget the state information.
The problem is that this state should be saved for rewinding, to ensure that rewinding renders the same page.

Where/how should I store such state?
Should I use a persistent property for this, and clear it after each rewind?

Thanks,
Norbi