myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <>
Subject [jira] Commented: (TOMAHAWK-1327) A proposed solution to separate javascript code from java code in Renderers
Date Fri, 12 Sep 2008 09:05:44 GMT


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:
>             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.

View raw message