Feature Requests item #603130, was opened at 2002-09-01 08:49
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=354754&aid=603130&group_id=4754

Category: framework
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Mind Bridge (mindbridge)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add an initPage() method to AbstractPage

Initial Comment:
Rationale: In general, a Page object must be in an 
identical state after creation and after detachment. At 
the moment there are different mechanisms for each of 
these actions -- the page constructor for creation of the 
Page, and the detach() method for its detachment. In 
our experience new users of the framework are confused 
by that duality and often make mistakes by writing code 
that causes differences in the two states.

Proposal: Define a protected method initPage() in 
AbstractPage and invoke it in the AbstractPage() 
constructor and its implementation of detach().

This proposal would allow people to initialize the 
properties of the Page in a single place -- the initPage() 
method. This would eliminate a typical cause of hard to 
find errors.

The proposal is fully backward compatible, would allow 
old code to work fine, and would allow the same 
capabilities, since detach() can be overriden and initPage
() can be left empty. 


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=354754&aid=603130&group_id=4754


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to