Re: Non-HTML Views

2012-07-24 Thread Thiago H de Paula Figueiredo
On Mon, 23 Jul 2012 18:44:23 -0300, Richard Frovarp wrote: http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF This idea works for anything you may want to return that isn't an HTML page. This is correct

Re: Non-HTML Views

2012-07-23 Thread netdawg
Thanks, Thiago, Richard. Looking into chaining streamed responses. Probably same approach will work to capture the HTML generated (as String) and feed into flying saucer http://www.avajava.com/tutorials/lessons/how-do-i-convert-a-web-page-to-a-string.html How do I convert a web page to a Strin

Re: Non-HTML Views

2012-07-23 Thread Thiago H de Paula Figueiredo
On Mon, 23 Jul 2012 18:07:12 -0300, netdawg wrote: Is there a way now to render non-HTML views? It depends. The output is XML, just make your template generate the XML format you need. Otherwise, return a StreamResponse in onActivate() or an event handler method. Examples: 1. Have th

Re: Non-HTML Views

2012-07-23 Thread Richard Frovarp
On 07/23/2012 04:07 PM, netdawg wrote: Is there a way now to render non-HTML views? Examples: 1. Have the grid component wrap Apache POI to dynamically generate spreadsheets? 2. Similar PDF engine to generate a pure PDF document (or convert the rendered HTML into PDF a la joomla, drupal CMS