Re: using tapx-templating with T5.4
Thanx for the guidance. I tried out tapestry-offline and it works very nicely for me, I think I will stick with this one. I had one configuration problem with tapestry-offline (maybe a bug?): I was getting exception when GZIP compression was turned on (full stack trace below). When I turned off gzip compression in my AppModule, the exception disappeared: configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED, false); Full stack trace: Caused by: java.lang.NullPointerException: Unable to delegate method invocation to property 'HTTPServletRequest' of Proxy for RequestGlobals(org.apache.tapestry5.services.RequestGlobals), because the property is null. at $HttpServletRequest_5af77769928a.readProperty(Unknown Source) at $HttpServletRequest_5af77769928a.getProtocol(Unknown Source) at $HttpServletRequest_5af777699289.getProtocol(Unknown Source) at org.apache.tapestry5.internal.services.ResponseCompressionAnalyzerImpl.isGZipSupported(ResponseCompressionAnalyzerImpl.java:50) at org.apache.tapestry5.internal.services.ResponseCompressionAnalyzerImpl.isGZipEnabled(ResponseCompressionAnalyzerImpl.java:75) at $ResponseCompressionAnalyzer_5af777699283.isGZipEnabled(Unknown Source) at org.apache.tapestry5.internal.services.AbstractAssetFactory.isCompressable(AbstractAssetFactory.java:58) at org.apache.tapestry5.internal.services.AbstractAssetFactory$1.toClientURL(AbstractAssetFactory.java:89) at org.apache.tapestry5.internal.services.javascript.JavaScriptStackPathConstructorImpl$1.map(JavaScriptStackPathConstructorImpl.java:54) at org.apache.tapestry5.internal.services.javascript.JavaScriptStackPathConstructorImpl$1.map(JavaScriptStackPathConstructorImpl.java:51) at org.apache.tapestry5.func.LazyMappedValue.get(LazyMappedValue.java:31) at org.apache.tapestry5.func.LazyFlow.first(LazyFlow.java:52) at org.apache.tapestry5.func.AbstractFlow$1.next(AbstractFlow.java:62) at org.apache.tapestry5.func.AbstractFlow.toMutableList(AbstractFlow.java:41) at org.apache.tapestry5.func.AbstractFlow.toMutableList(AbstractFlow.java:34) at org.apache.tapestry5.func.AbstractFlow.toList(AbstractFlow.java:199) at org.apache.tapestry5.internal.services.javascript.JavaScriptStackPathConstructorImpl.toPaths(JavaScriptStackPathConstructorImpl.java:98) at org.apache.tapestry5.internal.services.javascript.JavaScriptStackPathConstructorImpl.constructPathsForJavaScriptStack(JavaScriptStackPathConstructorImpl.java:91) at $JavaScriptStackPathConstructor_5af77769930e.constructPathsForJavaScriptStack(Unknown Source) at org.apache.tapestry5.internal.services.ajax.JavaScriptSupportImpl.addAssetsFromStack(JavaScriptSupportImpl.java:361) at org.apache.tapestry5.internal.services.ajax.JavaScriptSupportImpl.importStack(JavaScriptSupportImpl.java:414) at org.apache.tapestry5.modules.TapestryModule$29.renderMarkup(TapestryModule.java:1797) at $MarkupRenderer_5af77769930f.renderMarkup(Unknown Source) at org.apache.tapestry5.modules.TapestryModule$28.renderMarkup(TapestryModule.java:1785) at $MarkupRenderer_5af77769930f.renderMarkup(Unknown Source) at org.apache.tapestry5.modules.TapestryModule$27.renderMarkup(TapestryModule.java:1769) at $MarkupRenderer_5af77769930f.renderMarkup(Unknown Source) at org.apache.tapestry5.modules.TapestryModule$26.renderMarkup(TapestryModule.java:1753) at $MarkupRenderer_5af77769930f.renderMarkup(Unknown Source) at org.apache.tapestry5.modules.JavaScriptModule$1.renderMarkup(JavaScriptModule.java:237) at $MarkupRenderer_5af77769930f.renderMarkup(Unknown Source) at org.apache.tapestry5.modules.TapestryModule$25.renderMarkup(TapestryModule.java:1736) at $MarkupRenderer_5af77769930f.renderMarkup(Unknown Source) at $MarkupRenderer_5af77769930a.renderMarkup(Unknown Source) at org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:47) at $PageMarkupRenderer_5af777699308.renderPageMarkup(Unknown Source) at org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:64) at $PageResponseRenderer_5af7776992c9.renderPageResponse(Unknown Source) at org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:72) at org.apache.tapestry5.modules.TapestryModule$34.handle(TapestryModule.java:1962) at $PageRenderRequestHandler_5af7776992cb.handle(Unknown Source) at $PageRenderRequestHandler_5af7776992c5.handle(Unknown Source) at org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48) at org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47) at $ComponentRequestHandler_5af7776992c6.handlePageRender(Unknown Source) at
Re: using tapx-templating with T5.4
I've raised an issue, can you try the fix attached to the issue? https://github.com/uklance/tapestry-offline/issues/4
using tapx-templating with T5.4
Hi all, I need to generate nice HTML formatted emails from my future tapestry app. It would be cool if I could use tapestry templating capabilities for that. I know there is tapx-templating project, but I found it incompatible with 5.4. Are there any plans to make tapx-templating compatible with Tapestry 5.4? Or is there any alternative approach for generating HTML from my .tml files offline? BTW thanks for the work on 5.4. Finally I can have Bootstrap JQuery in my T5 app by default. Regards Martin Nagl http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/users-tapestry-apache-org-Mailing-List-Archives-f2375125.html
Re: using tapx-templating with T5.4
Try tapestry-offline https://github.com/uklance/tapestry-offline Unlike tapx-templating, tapestry-offline can happily live inside a tapestry web application.
Re: using tapx-templating with T5.4
I just went through this exercise on my client's project. I explored both tapestry-offline and just using HtmlUnit GET a page, then clean it up and send it out as Email. We wound up using Freemarker for this. Template syntax is largely the same, there is no cleanup necessary and it works better for Email purpose than Tapestry templating. On Dec 5, 2013, at 5:34 AM, Martin Nagl wrote: Hi all, I need to generate nice HTML formatted emails from my future tapestry app. It would be cool if I could use tapestry templating capabilities for that. I know there is tapx-templating project, but I found it incompatible with 5.4. Are there any plans to make tapx-templating compatible with Tapestry 5.4? Or is there any alternative approach for generating HTML from my .tml files offline? BTW thanks for the work on 5.4. Finally I can have Bootstrap JQuery in my T5 app by default. Regards Martin Nagl http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/users-tapestry-apache-org-Mailing-List-Archives-f2375125.html - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: using tapx-templating with T5.4
On Thu, 05 Dec 2013 13:16:37 -0200, Lenny Primak lpri...@hope.nyc.ny.us wrote: I just went through this exercise on my client's project. I explored both tapestry-offline and just using HtmlUnit GET a page, then clean it up and send it out as Email. We wound up using Freemarker for this. Template syntax is largely the same, there is no cleanup necessary and it works better for Email purpose than Tapestry templating. Tapestry templates were built to generate (X)HTML markup, same for its components, so it's not a generic template engine. Freemarker is a generic template engine, so it's a better choice then Tapestry templates for non-webapp stuff (at least most scenarios). -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br Help me spend a whole month working on Tapestry bug fixes and improvements: http://igg.me/at/t5month - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org