You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "adam brin (JIRA)" <ji...@apache.org> on 2017/08/04 15:54:00 UTC

[jira] [Created] (WW-4838) expose Freemarker incompatible_improvements into FreemarkerManager and StrutsBeansWrapper

adam brin created WW-4838:
-----------------------------

             Summary: expose Freemarker incompatible_improvements into FreemarkerManager and StrutsBeansWrapper
                 Key: WW-4838
                 URL: https://issues.apache.org/jira/browse/WW-4838
             Project: Struts 2
          Issue Type: Improvement
          Components: Plugin - SiteMesh
    Affects Versions: 2.5.12
            Reporter: adam brin
            Priority: Minor


The latest version of Freemarker (2.3.6) supports the use of {{default}} methods in interfaces when communicating between beans and the Freemarker template.  


To enable this, it's required to allow init parameters to be passed from the servlet configuration in through to the {{FreemarkerManager}} and the {{BeansWrapper}}.  The sitemesh plugin prevents the setting of these parameters because it doesn't appear to pass the parameters in through.

* Release notes for 2.3.6 -- http://freemarker.org/docs/versions_2_3_26.html
* Documentation of {{incompatible_improvements}} http://freemarker.org/docs/pgui_config_incompatible_improvements.html#pgui_config_incompatible_improvements_how_to_set
* Documentation of DefaultObejctWrapper and configuration http://freemarker.org/docs/pgui_datamodel_objectWrapper.html#topic.defaultObjectWrapperIcI
* Constructor for DefaultObjectWrapper -- http://freemarker.org/docs/api/freemarker/template/DefaultObjectWrapper.html#DefaultObjectWrapper-freemarker.template.Version- and BeansWrapper -- http://freemarker.org/docs/api/freemarker/ext/beans/BeansWrapper.html


Note: I'm not arguing that we should just "change these parameters, but it'd be nice to be able to pass the <init-param> configuration through to Freemarker



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)