You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2017/08/23 06:30:00 UTC
[jira] [Comment Edited] (WW-4838) expose Freemarker
incompatible_improvements into FreemarkerManager and StrutsBeansWrapper
[ https://issues.apache.org/jira/browse/WW-4838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16114627#comment-16114627 ]
Lukasz Lenart edited comment on WW-4838 at 8/23/17 6:29 AM:
------------------------------------------------------------
You should be able to pass that via {{freemarker.properties}}
https://struts.apache.org/docs/freemarker.html#FreeMarker-IncompatibleImprovements
was (Author: lukaszlenart):
You should be able to pass that via {[freemarker.properties}}
https://struts.apache.org/docs/freemarker.html#FreeMarker-IncompatibleImprovements
> 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
> Fix For: 2.5.13
>
>
> 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)