Hi Thiago,

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 would Tapestry 
use it´s message catalogue? So would I have to put 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 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 have a send(Booking booking)
> method that will send the confirmation message for a given booking.
> 
> public static ConfirmationMailSender
> buildConfirmationMailSender(Messages messages) {
>   return new ConfirmationMailSender(messages);
> }
> 
> -- 
> Thiago
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--- original Nachricht Ende ----


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to