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 2007/06/30 05:34:20 UTC
[Tapestry Wiki] Update of "Tapestry3HiveMind" by ErikVullings
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by ErikVullings:
http://wiki.apache.org/tapestry/Tapestry3HiveMind
------------------------------------------------------------------------------
In your page specification, you define a new property, using the <property-specification> element:
{{{
- <property-specification name="timeService" type="com.examples.myapp.services.TimeService">
+ <property-specification name="timeService">
global['app.TimeService']
</property-specification>
}}}
The initial value of the property, here defined as the body of the element, is the OGNL expression. We've set up the global object
- as the HiveMind Registry. The !RegistryPropertyAccessor allows us to access services by their fully-qualified service id (you can actually use single
+ as the HiveMind Registry. The PropertyAccessor allows us to access services by their fully-qualified service id.
- or double quotes; for some reason, single quotes just ''look right'').
We can access this property in Java code as well:
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org