You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/10/22 22:04:03 UTC
[jira] Created: (TAPESTRY-718) Asset injection makes assets appear as null inside finishLoad()
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
Assigned to: 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: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Closed: (TAPESTRY-718) Asset injection makes assets appear as null inside finishLoad()
Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
[ 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: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org