tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Kundirenko (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Commented: (TAPESTRY-619) Call AbstractComponent.finishLoad() after generated code in ConcretePage.finishLoad(cycle, loader, spec) executed
Date Thu, 01 Sep 2005 16:45:36 GMT
    [ http://issues.apache.org/jira/browse/TAPESTRY-619?page=comments#action_12320815 ] 

Alexander Kundirenko commented on TAPESTRY-619:
-----------------------------------------------

But attach() and pageBeginReder() are called on each page request.
I need to page fill property with initial value once., when page instance is creating.

The problem is to do it using another property initial-value.

BTW why changes which are made within enterActiveState() are not  saved when page returns
to pool?
Is it normal behaviour?     


> 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

>
> 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: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message