I am trying to pass services into my components via parameters, i.e. I want
something like:

<div t:type="doofer" t:controller="service:dooferController"/>

Where service is some custom binding type and dooferController is a service
I've defined in my application module.

The problem is that the only way I know of getting hold of a service is via
the Registry, which requires a type (as opposed to a spring application
context) and in my BindingFactory, I don't have access to the type of the
parameter, so exactly how to retrieve the service is unclear. 

At the moment, I've implemented something that works, but via accessing the
RegistryWrapper's underlying Registries allServiceDefs collection, which
seems a bit fragile and not ideal for non-singleton services. 

Anybody got any ideas?

Cheers

David
-- 
View this message in context: 
http://www.nabble.com/passing-a-service-into-a-component-as-a-parameter-tp25505462p25505462.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to