pageDetached implementation

Christian Sell <[email protected]> Fri, 10 Jan 2003 16:40:51 +0100
Newsgroups gmane.comp.java.tapestry.devel
Message-ID <[email protected]>
Hello,

I am just looking into tapestrys component state management technique. 
In doing that, I implemented the PageDetachedListener interface, 
resetting all component variables to default values, as the 
documentation describes.

However, the method did not get called. It seems the docs fail to 
mention that I also have to implement the method finishLoad() and call

getPage().addPageDetachListener(this);

therein to have my method called. In addition to the omission in the 
docs, I wonder why the page does not automatically register all 
components that implement the PageDetachListener interface. IMO that 
would simplify the state management without apparent drawbacks.

regards,
Christian



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com