On Wed, 01 Aug 2012 20:46:44 -0300, George Ludwig <georgelud...@gmail.com> wrote:
My current implementation doesn't work, as it appears that each
previousPage is the same object. What's the best way to do this?

You posted just a snippet from your code that doesn't include one important step: how do you get the previous page object?


Current implementation:

Before the next iteration of the page is loaded, I set it up:

@Persist

private Object previousPage;
void setup(Object previousPage) {
   this.previousPage=previousPage;
}

Then when the user clicks back:

  Object onBack() {

   return previousPage;

}


--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to