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:
>
> > 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 environment.
> > Although the RuntimeException your suggestion caused, helped me a lot! It
> > shows all ids of defined services. Amongst them is ComponentSource, which
> > serves my needs. So YOU helped me man, maybe not in the intended way, but
> > you did ;-)
> >
> >
> Fine. Don't know what's the difference. I also use 5.0.11.
>
> Do you know http://<HOST>:<PORT>/ServiceStatus? It's very helpful in
> looking for the service you might need. It's part of the core services like
> ExceptionReport, PropertyDisplayBlocks and PropertyEditBlocks.
>
> > I myself (as well as obviously the ioc-container) have problems
> > considering Messages a service. To me it only gets a meaning as part of a
> > particular page/component. Thinking about that I was looking for methods to
> > get a hand on that part. As it turned out in Tapestry the right term to look
> > for is "resource". And this is how i have rewritten my build method:
> >
> > public static KursConfirmationSender
> > builConfirmationMailSender(ComponentSource cs ) {
> >  return new
> > ConfirmationMaiilSenderImpl(cs.getPage("bookings/Summary").getComponentResources().getMessages());
> > }
> >
> > "bookings/Summary" is the logical name of the page that holds the
> > messages needed 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.
> >
> >
> Maybe you really want to look at
>
>
> http://87.193.218.134:8080/t5components/t5c-contrib/howto_freemarkerservice.html
>
> This could also help you. I personally prefer Velocity and implemented a
> little Service to send mails via Springs JavaMailSenderImpl using Velocity
> templates.
>
>  So thanks to Thiago, Michael and Sven for your efforts,
> > nillehammer
> >
> >
> >
> You're welcomed.
>
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com

Reply via email to