Templating functions that use AbstractSTKTemplateModel should also work with 
RenderingModelImpl
-----------------------------------------------------------------------------------------------

                 Key: MGNLSTK-987
                 URL: http://jira.magnolia-cms.com/browse/MGNLSTK-987
             Project: Magnolia Standard Templating Kit
          Issue Type: Bug
    Affects Versions: 2.0.4
            Reporter: Robert Šiška
             Fix For: 2.0.5


Method resolveImageVariationName() from STKTemplatingFunctions causes Template 
error when called on info.magnolia.rendering.model.RenderingModelImpl instead 
of expected 
info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel. 

Overload or rewrite the method to support both classes.

Error:
{noformat}
Caused by: freemarker.template.TemplateModelException: Can not unwrap argument
info.magnolia.rendering.model.RenderingModelImpl@583c72d7 to 
info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel
        at 
freemarker.ext.beans.SimpleMemberModel.unwrapArgument(SimpleMemberModel.java:132)
        at 
freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:120)
        at 
freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:98)
        at 
freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:106)
        ... 161 more
{noformat}

-- 
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
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to