On Mon, 23 Jul 2012 18:07:12 -0300, netdawg <[email protected]> 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 the grid component wrap Apache POI to dynamically generate spreadsheets?
Aren't you asking to generate spreadsheets from a Grid to Apache POI? Grid wrapping Apache POI doesn't make much sense the way you described it. Just get the date you pass to Grid (either as GridDataSource or Collection) and pass to Apache POI, generate the spreadsheet and return it wrapped in a StreamResponse.
2. Similar PDF engine to generate a pure PDF document (or convert the rendered HTML into PDF a la joomla, drupal CMS etc)?
To generate PDF documents in Java, you can use JasperReports or iText (JasperReports uses iText internally). To convert rendered HTML into PDF, first you have to get the rendered HTML. I don't know how to do that, but I recall this having been discussed in the mailing list already. After that, you can use an HTML renderer like Flying Saucer (http://code.google.com/p/flying-saucer/) to transform it into PDF, wrap the PDF in a StreamResponse and return it.
-- Thiago H. de Paula Figueiredo --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
