Re: Generating link/url without RequestGlobals

2012-09-29 Thread Alex Kotchnev
Yeah, I was aware of tapx-templating, but I seem a little confused about its purpose. The GitHub readme states that it's for generating offline content, which an email kinda is, but not quite as I need the html email to point to all of the resources of the running app (e.g. logos, etc). One of the

Re: Generating link/url without RequestGlobals

2012-09-29 Thread Thiago H de Paula Figueiredo
On Sat, 29 Sep 2012 12:01:40 -0300, Alex Kotchnev wrote: It would have been cool if there was something that allowed generating links and/or rendering tapestry templates in a non-web context (e.g. Grails has a GSP page renderer http://mrhaki.blogspot.com/2012/03/grails-goodness-render-gsp

Re: cannot output table tags in outputraw compnnent

2012-09-29 Thread Thiago H de Paula Figueiredo
On Sat, 29 Sep 2012 02:00:17 -0300, Ken in Nashua wrote: Folks, If the output and outputraw components cannot contain a left angel bracket < or other angle brackets ex. Then I am left with doing this... But if yeilds the following exception java.lang.RuntimeExceptionError pars

Re: is there a way to refer to a Class type in a tml ?

2012-09-29 Thread Thiago H de Paula Figueiredo
On Sat, 29 Sep 2012 00:16:57 -0300, Ken in Nashua wrote: Thanks Thiago... that worked for my one class.But...@java.lang.Math@min(collection.size,itemsPerPage)the above statement... I am sure you know what it is T4Don't be so sure. The first usable versions of Tapestry 5 were released 4 years ago.

Re: Generating link/url without RequestGlobals

2012-09-29 Thread Alex Kotchnev
Thiago - thanks for the pointer, I ended up pre-rendering the content of the emails in the web app and storing it, and then performing the actual sending using the pre-rendered content in the queue. It would have been cool if there was something that allowed generating links and/or rendering tape

RE: cannot output table tags in outputraw compnnent

2012-09-29 Thread Ken in Nashua
Thanks Guys for the help... both your solutions I know will work as I woke up this morning thinking of same. Yeah you cant just do straight markup in the tml... it destabilises the IF component org.xml.sax.SAXParseExceptionThe element type "t:If" must be terminated by the matching end-tag "".

Re: calling java native functions in T5

2012-09-29 Thread Muhammad Gelbana
I highly doubt it but T5 is always updating so you might have to read the docs thoroughly to make sure. Yet it's not hard at all to call java functions from templates. http://tapestry.apache.org/property-expressions.html On Sat, Sep 29, 2012 at 12:10 AM, Ken in Nashua wrote: > > Folks, > > Norm

Re: is there a way to refer to a Class type in a tml ?

2012-09-29 Thread Bryan Lewis
This might help: http://chenillekit.codehaus.org/chenillekit-tapestry/ognlbinding.html On Friday, September 28, 2012, Ken in Nashua wrote: > > Thanks Thiago... that worked for my one class. > > But... > > @java.lang.Math@min(collection.size,itemsPerPage) > > the above statement... I am sure you

Re: cannot output table tags in outputraw compnnent

2012-09-29 Thread mailingl...@j-b-s.de
I do not understand what you are trying to achieve > in a template is identically to right? There is no need to wrap html elements inside outputraw within a template. Use output raw to stream html from your page class, for example assume you have a preformated product description Incl bold, un

Re: cannot output table tags in outputraw compnnent

2012-09-29 Thread Shing Hing Man
The following works. In .tml:     ${myTag} In .java : public String getMyTag(){         return "";     } Alternatively, you could put your tag in the .properties file : ${message:myTag} .properties: myTag= Shing - Original Message - From: Ken in Nashua To: users@tapestry.a