Raised https://issues.apache.org/jira/browse/TAP5-1196 as a possible improvement.
Regards, Jim. -----Original Message----- From: Howard Lewis Ship [mailto:hls...@gmail.com] Sent: 30 June 2010 21:05 To: Tapestry users Subject: Re: decorateClientInfrastructure not called anymore Yes, it's an issue. Probably, if there is no @Match annotation, then the implicit service id (from the method name) should be required to exist. On Wed, Jun 30, 2010 at 4:53 AM, Jim O'Callaghan <jc1000...@yahoo.co.uk> wrote: > Shouldn't decorator methods fail with a message that 'decorated xyz service > doesn't exist'? It would make it a lot easier to find things like this ... > > Regards, > Jim. > > -----Original Message----- > From: Christian Koller [mailto:christian.kol...@net-m.ch] > Sent: 30 June 2010 12:38 > To: Tapestry users > Subject: decorateClientInfrastructure not called anymore > > 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 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org