[Magnolia 4.5.2 CE] Hi, I need your help regarding a Template Error I get when I try to render a component.
Here's how the component looks like: [img]http://i12.photobucket.com/albums/a235/mhbgif/component.jpg[/img] Here's the code of my ServiceParagraph.jsp [code]<%@ taglib prefix="cms" uri="http://magnolia-cms.com/taglib/templating-components/cms" %> <%@ taglib prefix="cmsfn" uri="http://magnolia-cms.com/taglib/templating-components/cmsfn" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <c:set value="${content.classes}" var="classes" /> <c:if test="${fn:contains(classes, 'left')}"> <div class="clearfix"> </c:if> <div class="${content.classes}" style="background:url(${cmsfn:linkForWorkspace(content.image,content.imageDmsUUID)}) ${content.imageCssInfos}; "> <c:choose><c:when test="${not empty content.heading}"><h2>${content.heading}</h2></c:when></c:choose> <c:choose><c:when test="${not empty content.abstract}"><h3>${content.abstract}</h3></c:when></c:choose> <c:choose><c:when test="${not empty content.textBlock}">${cmsfn:decode(content).textBlock}</c:when></c:choose> </div> <c:choose> <c:when test="${fn:contains(classes, 'left')}"> </c:when> <c:otherwise> </div> </c:otherwise> </c:choose>[/code] Here's a screenshot of the JCR Browser: [img]http://i12.photobucket.com/albums/a235/mhbgif/servicesJCR.jpg[/img] So as I said, when I want to render the page, I get the error: [b]Template Error! Error while rendering [/Services/main/0] with template [templating:components/ServicesBlock]: RenderException: Can't render template /templates/components/ServicesParagraph.jsp[/b] And this is what catalina.out prints: http://pastebin.com/hi0Fd4av I think most useful is this line: Caused by: java.lang.RuntimeException: org.apache.jasper.JasperException: /templates/components/ServicesParagraph.jsp (line: 14, column: 11) "${not empty content.abstract}" contains invalid expression(s): javax.el.ELException: Failed to parse the expression [${not empty content.abstract}] Why is that? ${not empty content.heading} is working I guess, but why isn't content.abstract? Thanks for any hints. -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=1f80a00e-c6cf-4bb9-a8fa-bdd17aa55c7b ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
