[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Danilo Ghirardelli updated MAGNOLIA-3850:
-----------------------------------------
Component/s: taglibs
> @cms.setNode wraps calendars as strings.
> -----------------------------------------
>
> Key: MAGNOLIA-3850
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3850
> Project: Magnolia
> Issue Type: Bug
> Security Level: Public
> Components: freemarker, taglibs
> Affects Versions: 4.4.5
> Reporter: Danilo Ghirardelli
> Priority: Major
> Attachments: example.ftl
>
>
> Using the setNode tag in a freemarker page, nodeDatas of type (jackrabbit)
> Date are incorrectly exposed as strings and not as freemarker date.
> Steps to reproduce:
> - create a simple paragraph rendered with freemarker, and a dialog for that
> paragraph with a control of type date (let's call il "myDate"), and save some
> date (null-handling is not the point here).
> - create a simple freemarker file (or use the one attached), to render
> myDate, once just from the implicit object and the other from the same
> content wrapped by @cms.setNode
> - try to render the paragraph
> Freemarker will say that a date element was expect in the second case, but a
> string was provided. On further inspection you will find that the calendar is
> stored in the map as an iso string. As a workaround you can re-parse that
> string and get back a calendar, but having the original calendar would be
> much better.
> You may avoid using the setNode, but in some cases is really helpful,
> expecially in the contentNodeIterator tag, even in freemarker.
> The problem seems connected to the excessive wrapping (freemarker ones and
> the other provided by the setNode tag), but I wasn't able to find where
> exactly the problem arises.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------