Change By: Tobias Mattsson (24/Oct/13 3:11 PM)
Description: If you change the type of an area to single and there are more than one component already present in an area rendering fails with an exception.

Consider the case where the templater is designing his templates and experimenting and changes the type

Or the case where the template is changed on an existing node, then we don't empty the page of things that should not be rendered. Areas that are no longer referenced in the template script won't appear even though they're still there in the content. Conversely we should be more graceful about the fact that there can be more components in there and just not render them.


{noformat}
Caused by: info.magnolia.rendering.engine.RenderException: Can't render area node /home/about/main with name main
at info.magnolia.templating.elements.AreaElement.end(AreaElement.java:345)
at info.magnolia.templating.jsp.cms.AbstractTag.doTag(AbstractTag.java:102)
at org.apache.jsp.templates.blossomSampleModule.pages.main_jsp._jspx_meth_cms_005farea_005f0(main_jsp.java:218)
at org.apache.jsp.templates.blossomSampleModule.pages.main_jsp._jspService(main_jsp.java:124)
... 130 more
Caused by: info.magnolia.rendering.engine.RenderException: Can't render single area [node /home/about/main]: expected one component node but found more.
at info.magnolia.templating.elements.AreaElement.end(AreaElement.java:303)
... 133 more
{noformat}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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: <[email protected]>
----------------------------------------------------------------

Reply via email to