Re: FreeMarker 2.4 Preview 1 (unstable) is out
Mauro Talevi <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.devel,gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Daniel Dekany wrote: > This is a preview release of the a yet unfinished FreeMarker 2.4, so > it's for advanced users and experts who would like to give feedback. > Don't use it in production environment! > > Download: http://prdownloads.sourceforge.net/freemarker/freemarker-2.4pre1.tar.gz > > What's new: http://freemarker.org/docs-24pre1/versions_2_4_pre1.html > > All feedback is welcome! > Well - quite an impressive new features set! A few comments: - [A general comment on version] Given the amount and scope of new features - not least the introduction of null and the JDK 1.5 requirements - and the backward incompatibility perhaps a version 3.x would be appropriate as a signal to the user. Most people would expect a change from 2.3 to 2.4 to introduce new features that are backward compatible or perhaps just introduce some deprecation, but not be wholly backward incompatible. - [Migration issue] As I use quite frequently Map key iteration (eg via Map.keySet()) I've hit upon this change: "Warning, backward incompatible change! The default of simpleMapWrapper property of BeansWrapper is true now. This means that the methods and fields of Map-s will not be exposed by default, only the pure key-set will define the subvariables of the templates. Note that the default object wrapper of FreeMarker always had simpleMapWrapper set to true, so if you have used only the default object wrapper, then there is no change for you." What is the rationale behind this? And is the proposed solution - setting the object wrapper to simpleMapWrapper - compatible with the 2.3.x beanWrapper? If not, it would be real show-stopper! Hence trying to understand the need for the change. To be specific, would this behaviour be configured via the "object_wrapper" param in the freemarker servlet by setting it "simple_map" or "map"? Thanks and cheers! ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/