[ http://issues.apache.org/jira/browse/TAPESTRY-619?page=all ]
Howard M. Lewis Ship resolved TAPESTRY-619:
-------------------------------------------
Resolution: Won't Fix
Assign To: Howard M. Lewis Ship
Alas, a change such as you suggest would break many other things. No can do in
this release, but you may be satisfied in 4.1, where we get rid of subclassing
for pages and components.
> Call AbstractComponent.finishLoad() after generated code in
> ConcretePage.finishLoad(cycle, loader, spec) executed
> -----------------------------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-619
> URL: http://issues.apache.org/jira/browse/TAPESTRY-619
> Project: Tapestry
> Type: Improvement
> Components: Framework
> Versions: 4.0
> Reporter: Alexander Kundirenko
> Assignee: Howard M. Lewis Ship
>
> I want to initialize persistent property using value of another property.
> f.e. I have:
> <property name="itemClass" initial-value="literal:research.model.SomeObject"/>
> @Persist
> public abstract IPersistable getItem();
> public abstract void setItem(IPersistable item);
> I want to initialize my "item" property using initial-value of "itemClass"
> property
> But if I override finishLoad() method I can't do it, because "itemClass" is
> still not initialized.
> It is initialized in generated method, in my case it was:
> $FormPage_118.finishLoad(IRequestCycle, IPageLoader,
> IComponentSpecification)
> Can you make AbstractComponent.finishLoad() called after this generated
> method executes?
> package org.apache.tapestry;
> class AbstractComponent {
> ...
> public void finishLoad(IRequestCycle cycle, IPageLoader loader,
> IComponentSpecification specification)
> {
> //MOVE GENERATED CODE HERE
> finishLoad();
> //IT IS HERE NOW
> }
> ...
> }
> Thank you
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]