Title: RE: [Tapestry-developer] Persistant properties for components

Thanks for your help..

 

 My problem was that I wanted to store the page history data in the component that displays it… not the visit. I was hoping to be able to have persistent properties to store it..  I took Howard Ship’s advice and decided to just go old skool and throw it into the HttpSession..

 

This way I have managed to make it transparent to the rest of the application.

 

Luke Galea

Software Development

BlueCat Networks

905-762-5225

 

-----Original Message-----
From: Phil Surette [mailto:[EMAIL PROTECTED]]
Sent: September 10, 2002 4:54 PM
To: Luke Galea; [EMAIL PROTECTED]
Subject: RE: [Tapestry-developer] Persistant properties for components

 

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
 

Reply via email to