[
https://issues.apache.org/jira/browse/TOMAHAWK-1327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630526#action_12630526
]
Werner Punz commented on TOMAHAWK-1327:
---------------------------------------
Well the performance results are exactly what I expected from a parsed template
solution on component level :-(
But there is hope, the jboss guys have done their own compiler for component
templates (the richfaces component builder) maybe we can integrate it
into our own build process.
Just my 2 c....
> A proposed solution to separate javascript code from java code in Renderers
> ---------------------------------------------------------------------------
>
> Key: TOMAHAWK-1327
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1327
> Project: MyFaces Tomahawk
> Issue Type: New Feature
> Reporter: Paul Rivera
> Priority: Minor
> Attachments: freemarker_impl.rar
>
>
> In our current implementation of component renderers, javascript code is
> generated using ResponseWriter methods inside the renderer. Although, when
> the embedded javascript code gets too lengthy, the renderer code can become
> hard to read and debug.
> The proposition is to provide developers with a tool that separates
> javascript code from the renderer code and move it into template files. This
> solution is similar to how TemplateRenderer handles HTML content.
> Attached above is the JavascriptTemplateEncoder implementation that uses
> FreeMarker. More information about JavascriptTemplateEncoder and its
> performance in the PDF files inside the zip.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.