Hi all Maybe someone has the same problem. Here the solution:
The name of the service has changed from PageTemplateLocator to ComponentTemplateLocator and this means also decorate method has a new name: decorateComponentTemplateLocator This method is called in 5.2. Furthermore ClientInfrastructure is deprecated now and this is possibly the reason why the decoration method is not called anymore. br chris On 24.06.2010, at 14:22, Christian Koller wrote: > Hi > > 14:20:08.279 [main] INFO o.a.tapestry5.ioc.RegistryBuilder - Adding module > definition for class > net.netm.portals.tapestry.example.services.TapestryExampleModule > 14:20:08.821 [main] INFO n.n.p.t.e.s.TapestryExampleModule - adding coercion > > thats what I see in the stack on startup. No errors or something. > > > On 24.06.2010, at 14:06, Christophe Cordenier wrote: > >> Hi >> >> Are your services loaded ? Is your module class correctly loaded (see stack >> on startup) >> >> 2010/6/24 Christian Koller <christian.kol...@net-m.ch> >> >>> Hi >>> >>> I tried to decorate ClientInfrastructure. With the old tapestry version it >>> was called, then i changed only the tapestry version to 5.2.0-SNAPSHOT >>> afterwards the method wasn't called anymore. >>> >>> Also i tried with the PageTemplateLocator >>> public PageTemplateLocator decoratePageTemplateLocator(final >>> PageTemplateLocator original) { >>> System.out.println("decoratePageTemplateLocator"); >>> return null; >>> } >>> >>> The message "decoratePageTemplateLocator" was never printed out. >>> >>> br >>> chris >>> >>> >>> >>> On 24.06.2010, at 13:38, Christophe Cordenier wrote: >>> >>>> Hi >>>> >>>> Which service are you trying to decorate ? >>>> >>>> 2010/6/24 Christian Koller <christian.kol...@net-m.ch> >>>> >>>>> Hi kris >>>>> >>>>> Thank you for your response. >>>>> I'll try out Advisors now. Still decoration isn't working for me. >>>>> Has someone faced the same problem? >>>>> >>>>> thx >>>>> chris >>>>> >>>>> >>>>> On 24.06.2010, at 12:24, Kristian Marinkovic wrote: >>>>> >>>>>> Hi Christian, >>>>>> >>>>>> Advices have been introduced in 5.1 to replace decorators. >>>>>> please see: >>>>>> http://tapestry.apache.org/tapestry5.1/tapestry-ioc/advice.html >>>>>> >>>>>> the 5.2-SNAPSHOT documentation does not state that decorators are >>>>>> not supported anymore. the last time i was playing with 5.2 (some weeks >>>>>> ago) >>>>>> my decorators worked. >>>>>> >>>>>> g, >>>>>> kris >>>>>> >>>>>> >>>>>> >>>>>> Von: Christian Koller <christian.kol...@net-m.ch> >>>>>> An: users@tapestry.apache.org >>>>>> Datum: 23.06.2010 16:38 >>>>>> Betreff: decorateClientInfrastructure not called anymore >>>>>> >>>>>> >>>>>> >>>>>> Hello everyone >>>>>> >>>>>> Since we updated the version of tapestry from 5.1.0.5 to 5.2.0-SNAPSHOT >>>>>> the decorate methods in the module class are not called anymore. >>>>>> Is there a new concept to decorate a service or is it a bug? >>>>>> >>>>>> Please let me know if you know something. >>>>>> Thanks >>>>>> chris >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>>>> For additional commands, e-mail: users-h...@tapestry.apache.org >>>>> >>>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Christophe Cordenier. >>>> >>>> Developer of wooki @wookicentral.com >>> >>> Christian Koller >>> Sofwareentwickler >>> >>> net mobile Schweiz AG >>> Seestrasse 45 >>> CH ñ 8702 Zollikon >>> >>> Tel: + 41 (0) 44 918 99 99 >>> Fax: + 41 (0) 44 918 99 98 >>> Direkt: + 41 (0) 44 918 99 72 >>> >>> Mail: christian.kol...@net-m.ch >>> Web: www.net-m.ch >>> >>> >> >> >> -- >> Regards, >> Christophe Cordenier. >> >> Developer of wooki @wookicentral.com > > Christian Koller > Sofwareentwickler > > net mobile Schweiz AG > Seestrasse 45 > CH ñ 8702 Zollikon > > Tel: + 41 (0) 44 918 99 99 > Fax: + 41 (0) 44 918 99 98 > Direkt: + 41 (0) 44 918 99 72 > > Mail: christian.kol...@net-m.ch > Web: www.net-m.ch > Christian Koller Sofwareentwickler net mobile Schweiz AG Seestrasse 45 CH ñ 8702 Zollikon Tel: + 41 (0) 44 918 99 99 Fax: + 41 (0) 44 918 99 98 Direkt: + 41 (0) 44 918 99 72 Mail: christian.kol...@net-m.ch Web: www.net-m.ch