I've got an implementation of this. I store the current location in the Visit. In each of my listener methods that move you to a different page, I add the current page to the stack (the home page clears the stack). Actually I think I use an ArrayList since I need to be able to walk the stack both ways...
Then I've got a location component that displays the stack at the top of every page. When you click on a link it pops the right number of things off the top of the stack.
This system works fine as long as no-one hits a back button! Unfortunately it crosscuts the whole application. I would have liked to have come up with a more aspect-oriented solution.
I'm not sure why you're talking about persistent page properties, so maybe I'm missing your point completely ;)
-----Original Message-----
From: Luke Galea [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 4:32 PM
To: [EMAIL PROTECTED]
Subject: [Tapestry-developer] Persistant properties for components
I am trying to implement a simple page history component (ie. Shows Main Page > Options > etc.. each as a link ).
I need to have a stack of previous pages but I want to store the history within the persistant state for the component itself, not the page it is included in.
It looks like persistent page properties only work for pages themselves.. not components.
How can I go about achieving the effect I wish?
Thanks in advance..
Luke Galea
Software Development
BlueCat Networks
905-762-5225
