[ http://issues.apache.org/jira/browse/TAPESTRY-718?page=all ]
     
Howard M. Lewis Ship closed TAPESTRY-718:
-----------------------------------------

    Resolution: Fixed

> Asset injection makes assets appear as null inside finishLoad()
> ---------------------------------------------------------------
>
>          Key: TAPESTRY-718
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-718
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Howard M. Lewis Ship
>     Assignee: Howard M. Lewis Ship
>      Fix For: 4.0

>
> The enhanced code for each asset is to extend the public finishLoad() method 
> to get the asset and store it in an instance variable.
> The problem is that user-written finishLoad() gets invoked first.
> So if you try to access an asset via its abstract accessor method, it will 
> return null then (but a real value, later).
> A better solution is to NOT store the asset in an instance variable, but just 
> have the accessor method turn around and invoke getAsset().

-- 
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]

Reply via email to