Putting something like this in your .java file should do:
@InjectObject("service:tapestry.services.Direct")
public abstract IEngineService getDirectService();
That's the annotation-based approach, anyways. You can also do it in
your .jwc file:
<inject property="directService" object="service:tapestry.services.Direct"/>
And then of course still have the abstract getter in your .java file.
@see http://jakarta.apache.org/tapestry/UsersGuide/hivemind.html
@see http://jakarta.apache.org/tapestry/UsersGuide/injection.html
-Filip
P.S. Good to see a fellow Scandinavian on the list, by the way. : )
Erik Johansson skrev:
Hi,
I'm writing an AbstractComponent which should output a varying number
of DirectLinks with different URL:s but I am totally lost of how to
initialize these in the component class file using T4.0.
I guess I need to inject the DirectService into the component class but
how do I do this?
regards
Erik Johansson
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]