Re: [T5] Sending Email from Tapestry

2008-04-19 Thread Michael Gerzabek
nille, maybe you wanna try adding the InjectService annotation. This at least works for my services. public static ConfirmationMailSender buildConfirmationMailSender( @InjectService(Messages) Messages messages) { return new ConfirmationMailSender(messages); } good morning, Michael

Re: [T5] Sending Email from Tapestry

2008-04-19 Thread Michael Gerzabek
PS: Get more infos on T-IOC here: http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html Michael Gerzabek schrieb: nille, maybe you wanna try adding the InjectService annotation. This at least works for my services. public static ConfirmationMailSender buildConfirmationMailSender(

Re: Re: Grid component and context values - TapestryException

2008-04-19 Thread Petros Petrou
Hi Greetz, You suggestion fixed the problem thank you :) Petros nille hammer wrote: Hi Petros, the problem is caused by the expression context={account?.accountManager?.username}. With ?. you tell Tapestry: The value might be null, please check before calling the Method. As null

RE: T5.0.10 DateField component broken ???

2008-04-19 Thread Petros Petrou
Jonathan, That was the problem, it works fine now thank you Petros Jonathan Barker wrote: Try using value=fromDate rather than the expansion. -Original Message- From: Petros Petrou [mailto:[EMAIL PROTECTED] Sent: Thursday, April 17, 2008 9:59 AM To:

Re: Re: [T5] Sending Email from Tapestry

2008-04-19 Thread nille hammer
Hi Michael, I have tried your suggestion. In my environment (5.0.11) it does not work. Even with explicit id Messages provided, the ioc-container throws a RuntimeException complaining that Messages is not a defined service. You must have done sth. else to make your suggestion work in your

Re: include

2008-04-19 Thread János Jarecsni
Hi Michael, PagePool cannot give out ComponentPageElements, but PageElementFactory can. Still I have the problem :) I can now simply describe what I'd like to achieve: The following is a class of a component: public class ComponentSlot { @Parameter(required = true, defaultPrefix = literal)

Re: Re: [T5] Sending Email from Tapestry

2008-04-19 Thread Peter Beshai
I think you may be better off using a MessagesSource service. Check out ValidationMessagesSource for some ideas. TapestryModule.java (in particular the contribute and build methods got ValidationMessagesSource):

Re: [T5] Sending Email from Tapestry

2008-04-19 Thread Michael Gerzabek
nille hammer schrieb: Hi Michael, I have tried your suggestion. In my environment (5.0.11) it does not work. Even with explicit id Messages provided, the ioc-container throws a RuntimeException complaining that Messages is not a defined service. You must have done sth. else to make your

Re: include

2008-04-19 Thread Michael Gerzabek
Hi Janos, List, Wow, you digged into it ;) At the time there was no need for me to go so deep with T5. So I think I cannot help with your conrete approach. Rather I will share what I did, when I needed to load a Component at runtime. I have a checkout flow that has the opportunity to

Re: [T5] Sending Email from Tapestry

2008-04-19 Thread Sven Homburg
a velocity service is also implemented but not documented but use the same service interface http://87.193.218.134:8080/t5components/t5c-contrib/http://87.193.218.134:8080/t5components/t5c-contrib/howto_freemarkerservice.html 2008/4/19, Michael Gerzabek [EMAIL PROTECTED]: nille hammer schrieb:

Re: [T5] Sending Email from Tapestry

2008-04-19 Thread Michael Gerzabek
Sven Homburg schrieb: a velocity service is also implemented but not documented but use the same service interface http://87.193.218.134:8080/t5components/t5c-contrib/http://87.193.218.134:8080/t5components/t5c-contrib/howto_freemarkerservice.html Oh, I will take a look at that. Thank you!

Re: [T5] way to check if the application is entering or exiting from a page

2008-04-19 Thread Luca Fossato
Hi Jonathan, thank you for your suggestion. Yes, @Persist(flash) works fine for one object of for a set of objects that are always readed and showed into the page during the page rendering. And it's fine for a CRUD page that shows only the entity to manage. To learn T5, I was sperimenting

Page template and class location

2008-04-19 Thread János Jarecsni
Hi, can a page be contributed to the web application by a JAR file (just like component templates)? If so, how an URL can be constructed to such a page? Concretely, is it possible for T5 to have a forum.tml residing in the com.foo.bar package of a forum.jar file and use it in the application?

Re: [T5] way to check if the application is entering or exiting from a page

2008-04-19 Thread Luca Fossato
Hi Geoff, yes, I read those threads and I modeled my CRUD page using the suggestions listed on your Mk VI page. Thank you. As I was trying to explain to Jonathan Barker in my previous mail (ah, my poor english ;^) , my CRUD page already used @Persist(flash) to store the entity to modify.

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-19 Thread Luca Fossato
Hi Chris, thank you ! I will read your article and I will try to use the mixin to implement the confirmation dialog for my delete actionLink. Give me some days to digest all this stuff and to implement it into my test application ;^) Regards, Luca Chris Lewis wrote: Hi Lucca, I'd been

RE: [T5] way to check if the application is entering or exiting from a page

2008-04-19 Thread Jonathan Barker
Luca, I can see that the flash persistence strategy wouldn't quite work for you in that case. Actually, I'm doing something very similar, and I'm using regular session persistence and manually clearing things when necessary. I think that the rewind phase would map closely to the split between