You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ron Piterman (JIRA)" <de...@tapestry.apache.org> on 2007/03/28 19:14:25 UTC

[jira] Commented: (TAPESTRY-856) lazy initialization of abstract properties

    [ https://issues.apache.org/jira/browse/TAPESTRY-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484933 ] 

Ron Piterman commented on TAPESTRY-856:
---------------------------------------

this has nothing with HOW the expresion is evaluated, but WHEN it is evaluated and when the property is being reset (to null) - therefore has also nothing with ognl.


> lazy initialization of abstract properties
> ------------------------------------------
>
>                 Key: TAPESTRY-856
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-856
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.1
>            Reporter: Ron Piterman
>         Assigned To: Jesse Kuhnert
>             Fix For: 4.1.2
>
>
> when using parametr bindings, one can use ognl, (which is slowmotion), to navigate through an object graph.
> A (fast) alterntive is use an abstract property with an initializer method:
> component A : {
> @InitialValue("getXFromDatabase()")
> public abstract X getX();
> }
> now if X is dependant on the bindings of component A, this will not work, since X property will often be initialized before the bindings are available - or sometimes, also when not posssible to get, because, say, component A is inside an If which does not allow it to render, if unable to... (say x ID is not given...)
> please add a lazy initialization option for abstract properties to allow this be treated more smoothly...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org