finishLoad(IPageLoader ...) finishLoad() initialize() These are all roughly equivalent.
finishLoad(...) invokes finishLoad() (as a convienience). finishLoad() invokes initialize() (again, as a convienience ... thus do APIs grow unwieldy). initialize() is also invoked from detach(). I would say, do page initializations (and re- initializations) in initialize(). I believe WOF simply tosses component instances after using them ... Tapestry pools them, so it is important to clean things up inside detach(). Since detach() is supposed to return the page to its newly instantiated state, having detach() invoke initialize() is a Good Thing. -- [EMAIL PROTECTED] http://tapestry.sf.net > Hi, > > This is kind of a general best practice question. Where is the best place > to initialize Page variables (pages that extend BasePage)? For the most > part in WO, you could init stuff in the page's constructor or > appendToResponse(). Besides some slight differences, both places pretty > much did the job. > > I remember from a few days back, someone mentioning the render() method > being similar to WO's appendToResponse(). > > Just curious how others are doing this. > > Thanks in advance. > Eric > > > ********************************************************************** > This message, including any attachments, contains confidential information > intended for a specific individual and purpose, and is protected by law. If you > are not the intended recipient, please contact sender immediately by reply > e-mail and destroy all copies. You are hereby notified that any disclosure, > copying, or distribution of this message, or the taking of any action based on > it, is strictly prohibited. > TIAA-CREF > ********************************************************************** > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
