You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Maurizio Cucchiara (JIRA)" <ji...@apache.org> on 2011/03/13 20:12:59 UTC

[jira] Resolved: (WW-3587) Provide Mechanism to replace FreeMarker with Java Template, enhance Java Template features

     [ https://issues.apache.org/jira/browse/WW-3587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maurizio Cucchiara resolved WW-3587.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.2

> Provide Mechanism to replace FreeMarker with Java Template, enhance Java Template features
> ------------------------------------------------------------------------------------------
>
>                 Key: WW-3587
>                 URL: https://issues.apache.org/jira/browse/WW-3587
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Java Templates
>    Affects Versions: 2.2.1.1
>            Reporter: Dustin Digmann
>            Assignee: Maurizio Cucchiara
>             Fix For: 2.2.2
>
>         Attachments: CheckBoxListHandler.java, FieldErrorHandler.java, RadioHandler.java, SimpleTheme.java, SubmitHandler.java
>
>
> We recently did some profiling and identifying of inefficiencies within our system.  Part of our search found FreeMarker was not as quick as we would like.  We found Java Template as an alternative and began incorporating it.
> Java Template required some changes on our part.
> * Radio and checkboxes were not implemented.
> * We added cssClass and cssStyle to the submit tag.
> * We removed unused imports from the head tag.
> * FieldError required an unordered list of errors which could not be presented in the way we needed. We changed to a break-row-delimited and 'red' block.  Admittedly, this solution is fairly custom to our solution, but I feel you will see our need here. Let me know if you need more info.
> Dropping Java Template into our project still requires us to include FreeMarker.
> Our goals:
> We are currently branching Java Template within our project.  We do not want to do this for very long.  Three of the solutions we created for Java Template seem like global improvements.  The FieldError change might be harder to solve globally, but I think our desires are mentioned.  We are asking for these changes to be applied to the Java Template project, so we no longer have to maintain them internally.  Hopefully the community can benefit from these updates.
> I am not a fan of toting around FreeMarker within our project even though we are no longer using it.  We have not researched how we can solve this, but would appreciate suggestions or a global solution.
> I can provide source for the Java Template changes but this form does not have an attachment feature.  Maybe the next page.  If not, let me know, and we can coordinate.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira