On Fri, 06 Aug 2010 17:38:53 -0300, Paul Stanton <p...@mapshed.com.au> wrote:

Thiago,

Hi!

By "declare your class as a service" do you mean bind it? ie:

    public static void bind(ServiceBinder binder) {
binder.bind(TapestryExtension.class, TapestryExtensionImpl.class);
    }

Yes.

or do i need to 'contribute' it somewhere? Because it isn't working.:

ComponentResources ins't a service. There's class transformation applied to component and pages classes that inject it. You should get it from the Environment service by using the peek() or peekRequired() methods.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to