Re: Programmatical page/component rendering

2012-03-08 Thread Thiago H. de Paula Figueiredo
I guess you could solve the problem another way: process the macros before the content is sent for Tapestry to render. Once I had a similar problem to solve (macros) and that's how I solved it. Tapestry templates were never meant to be used by users, just by developers. So, if you need temp

Re: Programmatical page/component rendering

2012-03-08 Thread Charles Roth
Could someone expand (expound?) more on rendering a Tapestry 5 component *inside* a java class? For example, I have an application I'm rewriting (from an ancient-god-help-me-C-program) in Tapestry. It's a venerable forum tool that lets users put "macros" in their posts. Each macro is rather like

Re: Programmatical page/component rendering

2012-01-20 Thread Thiago H. de Paula Figueiredo
On Fri, 20 Jan 2012 08:47:00 -0200, Lance Java wrote: Otherwise, I would use freemarker, a tempting engine with localisation support. Another option is velocity but I find freemarker to be much better than velocity. Having experience with both, I can tell you to use Freemarker. Way better

Re: Programmatical page/component rendering

2012-01-20 Thread Lance Java
Since you are generating plain text, not HTML, I would probably not use tapestry templating to generate the text. Depending on how simple your email is, you may find that using the message catalog and a find-and-replace is easy enough. Otherwise, I would use freemarker, a tempting engine with loc

Re: Programmatical page/component rendering

2012-01-20 Thread Markus Grell
Great idea! Which approach do you recommend if I want to sent out a mail that does not need to look like a web page but just contains plain text? I somehow feel uncomfortable to put a complete mail text into a message catalog file. Markus > http://tapestry.1045711.n5.nabble.com/Generating-HTML-e

Re: Programmatical page/component rendering

2012-01-20 Thread Lenny Primak
http://tapestry.1045711.n5.nabble.com/Generating-HTML-email-content-with-Tapestry-td5075717.html On Jan 20, 2012, at 3:27 AM, Guillaume Bodet wrote: > Hi all, > > I need to send mails from my application, and I would like to use Tapestry's > templating to create the body of the mail. > Is there