You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2011/01/02 03:29:55 UTC

[Tapestry Wiki] Trivial Update of "InjectPropertyIntoASO" by BobHarner

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.

The "InjectPropertyIntoASO" page has been changed by BobHarner.
The comment on this change is: outdated note.
http://wiki.apache.org/tapestry/InjectPropertyIntoASO?action=diff&rev1=2&rev2=3

--------------------------------------------------

+ || NOTE: This is outdated information that applies only to Tapestry 4. ||
+ 
  ''' How to inject a property into an Application State Object (ASO) ? '''
  
  In order to inject properties into an ASO, we implement a custom State``Object``Factory and define the method State``Object``Factory.create to create the ASO with the desired injected properties. We then use the above custom State``Object``Factory to create our ASO. The following example illustrates the above in detail. Suppose we have an ASO My``ASO with property messageHolder. We would like to create an My``ASO with the property messageHolder being injected by Hive``Mind.

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