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
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(
for assembly of the email. I am thinking about implementing a page
ConfirmationMail that serves the only purpose to hold the messages. May be I
will do that later.
So thanks to Thiago, Michael and Sven for your efforts,
nillehammer
- original Nachricht
Betreff: Re: [T5] Sending Email
implementing a page
ConfirmationMail that serves the only purpose to hold the messages. May be I
will do that later.
So thanks to Thiago, Michael and Sven for your efforts,
nillehammer
- original Nachricht
Betreff: Re: [T5] Sending Email from Tapestry
Gesendet: Sa, 19. Apr 2008
Von
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
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:
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!
On 4/18/08, nille hammer [EMAIL PROTECTED] wrote:
And secondly as far as I understand only services can be parameters to build
methods. Am I wrong or do I have to make my Booking class a service?
I suggest you a slightly different approach: create a
ConfirmationMailSender service. It will
the localized messages into
BookingSummary.properties?
Thanks and regards, nillehammer
- original Nachricht
Betreff: Re: [T5] Sending Email from Tapestry
Gesendet: Fr, 18. Apr 2008
Von: Thiago HP[EMAIL PROTECTED]
On 4/18/08, nille hammer [EMAIL PROTECTED] wrote:
And secondly
On 4/18/08, nille hammer [EMAIL PROTECTED] wrote:
Hi Thiago,
Hi, Nille!
thanks for the advice that makes perfect sense! What is left is my first
question, where does Tapestry how to choose the right message catalogue? If I
injected the ConfirmationMailSender in my BookingSummary Page
perhaps this helps you
http://87.193.218.134:8080/t5components/t5c-contrib/howto_freemarkerservice.html
2008/4/18, nille hammer [EMAIL PROTECTED]:
Dear List,
I am currently buidling an ordinary booking application. When a customer
books something I collect everything in a Booking object. I
to provide a message catalogue to a service builder
method, please do not hesitate to enlight me.
Thanks and good night,
nillehammer
- original Nachricht
Betreff: Re: Re: [T5] Sending Email from Tapestry
Gesendet: Fr, 18. Apr 2008
Von: Thiago HP[EMAIL PROTECTED]
On 4/18/08, nille
Me again,
That is an interface (Messages is not)
Huuh!! Bad, faux pas! I have to correct myself in fact Messages IS an
interface. But no matter it does not work.
Bye
- original Nachricht
Betreff: Re: Re: Re: [T5] Sending Email from Tapestry
Gesendet: Sa, 19. Apr 2008
Von: nille
13 matches
Mail list logo