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


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.

Reply via email to