You'll need to inject the AssetSource service and work from there.

On 3/18/07, Peter Beshai <[EMAIL PROTECTED]> wrote:
I was wondering how you can inject an asset with the path being a property
of an object.

For instance, if you have an object obj with a path property, something
like:
private MyObject obj;

@Inject("context:${obj.path}")
private Asset path;

Of course this won't work since the ${} will look for contributed symbols.
Is there any way of doing this?

--
Peter Beshai

Pure Mathematics/Computer Science Student
University of Waterloo



--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to