Re: Using tapestry tml as a mail template

2014-06-11 Thread Sanket Sharma
I use Velocity. Implemented a 'Template Service' to expose velocity engine to pages and components. Using Velocity's datasource resource loader to load templates from database. Here's an outline: public interface TemplateService { public String getMergedTemplate(String templateName, Map contex

Re: [T 5.3.7] URL rewrite the domain with new LinkTransformer API

2014-06-11 Thread Thiago H de Paula Figueiredo
On Wed, 11 Jun 2014 12:25:43 -0300, Oliver Pelz wrote: Dear group, Hi! p.s.: I have also looked into this link here http://tapestry.machina.com.br/2013/10/1/tapestry-url-rewriter-2-0-0-released but this seem not to work for me. I'm the author of it. Please define what "this seem not to

Re: Using tapestry tml as a mail template

2014-06-11 Thread Thiago H de Paula Figueiredo
On Wed, 11 Jun 2014 13:06:34 -0300, Norman Franke wrote: Compared to using another tempting engine. One more thing to learn. This solution also works back to Tapestry 5.0, and works for any non-tapestry pages you may have just the same. I had just mentioned three different ways of using th

Re: Using tapestry tml as a mail template

2014-06-11 Thread Norman Franke
Compared to using another tempting engine. One more thing to learn. This solution also works back to Tapestry 5.0, and works for any non-tapestry pages you may have just the same. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jun 11, 2014, at 11:17 AM, Thiago H de Paula

[T 5.3.7] URL rewrite the domain with new LinkTransformer API

2014-06-11 Thread Oliver Pelz
Dear group, I am facing the problem that I want to rewrite a URL's domain, e.g.: localhost:8080/Test -> helloworld:8080/Test I am using T5.3.7 and looked into the new LinkTransformer API because URLRewriterRule is deprecated (http://tapestry.apache.org/url-rewriting.html ) Since there is not mu

Re: Using tapestry tml as a mail template

2014-06-11 Thread Thiago H de Paula Figueiredo
On Wed, 11 Jun 2014 11:14:38 -0300, Norman Franke wrote: Or even easer, use a web client library like jsoup to fetch the page from localhost, strip out what you don’t want, create any inline image attachments, and send. I'm not sure how using another library would be easier than using Tape

Re: Using tapestry tml as a mail template

2014-06-11 Thread Boris Horvat
Will start with FreeMarker and work our way down :) Thank you everyone with quick answers On Wed, Jun 11, 2014 at 4:32 PM, Dmitry Gusev wrote: > I agree with Ilya, > it may be easier to use some template engine for this. > > For example, we're using StringTemplate. > > The only issue when usin

Re: Using tapestry tml as a mail template

2014-06-11 Thread Dmitry Gusev
I agree with Ilya, it may be easier to use some template engine for this. For example, we're using StringTemplate. The only issue when using external template engine is creating URLs to the application, because you may be sending emails out of web request scope and LinkSourceImpl won't work with

Re: Using tapestry tml as a mail template

2014-06-11 Thread Norman Franke
Or even easer, use a web client library like jsoup to fetch the page from localhost, strip out what you don’t want, create any inline image attachments, and send. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jun 11, 2014, at 9:48 AM, Thiago H de Paula Figueiredo wrot

Re: Using tapestry tml as a mail template

2014-06-11 Thread Boris Horvat
Will try it like that. Thanks On Wed, Jun 11, 2014 at 3:46 PM, Ilya Obshadko wrote: > I'd better use (and in fact I do use) some other template engine for > emails. Would be much easier for everything (including plain-text emails, > for example). My choice is FreeMarker, but Velocity is equally

Re: Using tapestry tml as a mail template

2014-06-11 Thread Thiago H de Paula Figueiredo
On Wed, 11 Jun 2014 10:20:29 -0300, Boris Horvat wrote: Hi everyone, Hi! I was wondering would it be possible to create a page (i.e. tml and java code) and then sending that data to the database on certain event. basically using tapestry as a template mechanism Yep! See tapestry-offline

Re: Using tapestry tml as a mail template

2014-06-11 Thread Ilya Obshadko
I'd better use (and in fact I do use) some other template engine for emails. Would be much easier for everything (including plain-text emails, for example). My choice is FreeMarker, but Velocity is equally good. You can easily implement a service that encapsulates all template operations. You may

Re: Error Exception Handling

2014-06-11 Thread George Christman
I'm using 5.4 and I believe all you need to do is add the following code to your AppModule and it will handle redirection to an error page when ever you have an exception in production mode. @Match("RequestExceptionHandler") @Order("after:requestExceptionHandler") public RequestExceptionHa

Using tapestry tml as a mail template

2014-06-11 Thread Boris Horvat
Hi everyone, I was wondering would it be possible to create a page (i.e. tml and java code) and then sending that data to the database on certain event. basically using tapestry as a template mechanism Can I serve row output of the page somehow? In other words to force tapestry to compile html fo

Re: AjaxFormLoop losing field data with validation error while nested in form zone.

2014-06-11 Thread George Christman
Does anybody know if this is a framework bug? If so I'll create a jira issue for it. On Tue, Jun 10, 2014 at 11:56 AM, George Christman wrote: > Sorry, forgot to mention my version, 5.4 beta-10 > > > On Tue, Jun 10, 2014 at 11:52 AM, George Christman < > gchrist...@cardaddy.com> wrote: > >> Hi

Error Exception Handling

2014-06-11 Thread Shaikh, Shahid
I am trying to have the Exception page shown in Tapestry when my GridDataSource throws an exception. How do i catch a ComponentEventException and have Tapestry redirect to the Exception page. Your help is much appreciated! Here is the logs.. org.mortbay.thread.QueuedThreadPool$PoolThread.run(Q

RE: [t5.4-beta-10] Broken asset URL in Tapestry's maven archetype

2014-06-11 Thread Thilo Tanner
Hi Muhammad, Here we go: https://issues.apache.org/jira/browse/TAP5-2351 Best, Thilo From: Muhammad Gelbana Sent: Wednesday, June 11, 2014 10:04 To: Tapestry users Subject: Re: [t5.4-beta-10] Broken asset URL in Tapestry's maven archetype Please mentio

Re: [t5.4-beta-10] Broken asset URL in Tapestry's maven archetype

2014-06-11 Thread Muhammad Gelbana
Please mention the URL so I can "watch" it *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Wed, Jun 11, 2014 at 10:09 AM, Thilo Tanner wrote: > Hi Muhammad, > > This is something, I also recognized. The source map for the Bootstrap is > not included in the cor

Re: [T5.4] jQuery-File-Upload integration

2014-06-11 Thread Ilya Obshadko
Thank you! In fact, minified versions of library dependencies were causing problems; I couldn't get it to work. I have finally fixed it by downloading non-minified versions for tmpl, image-load and canvas-to-blob modules, and updated dependencies in JS files so everything is looked up in a single

RE: [t5.4-beta-10] Broken asset URL in Tapestry's maven archetype

2014-06-11 Thread Thilo Tanner
Hi Muhammad, This is something, I also recognized. The source map for the Bootstrap is not included in the core stack (or the reference excluded from Bootstrap CSS shipped with T5.4). I will file a JIRA issue. Best, Thilo From: Muhammad Gelbana Sent: W

[t5.4-beta-10] Broken asset URL in Tapestry's maven archetype

2014-06-11 Thread Muhammad Gelbana
After starting a new project based on Tapestry's maven archetype and running it right away without further modifications, I looked into google chrome's developer tool, the network tab and I saw that the below URL is broken http://localhost:8080/t5stock/assets/meta/z67dafee4/tapestry5/bootstrap/css