Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.5.12
-
None
Description
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