Jahia Dev Forum > Error: org.jahia.services.rend...

0 (0 Good)
0 (0 Bad)

Error: org.jahia.services.render.RenderException

by  akharii »  2014/05/14 13:51

hi,

i upgrade my jahia6 to DF7.0, (not easily ^^) but now i have just one last bug.

In fact before DF7.0 i have a modul (for menu tab like following pict)

 

 

I think this part of code bug :

 
<c:set var="decide" value="${jcr:getMeAndParentsOfType(renderContext.mainResource.node, 'jnt:page')[0]}" />
 
 
<c:if test="${jcr:getParentOfType(decide,'jnt:page') != currentNode.resolveSite.home}">
 
<c:if test="${jcr:getParentOfType(jcr:getParentOfType(decide,'jnt:page'),'jnt:page') eq currentNode.resolveSite.home}">
 
<c:set var="current" value="${jcr:getMeAndParentsOfType(renderContext.mainResource.node, 'jnt:page')[0]}" />
</c:if>
<c:if test="${jcr:getParentOfType(jcr:getParentOfType(jcr:getParentOfType(decide,'jnt:page'),'jnt:page'),'jnt:page') eq currentNode.resolveSite.home}">
>
<c:set var="current" value="${jcr:getParentsOfType(renderContext.mainResource.node, 'jnt:page')[0]}" />
</c:if>        
 
</c:if>
 
<c:if test="${jcr:getParentOfType(decide,'jnt:page') eq currentNode.resolveSite.home}">
<c:if test="${empty currentResource.moduleParams.base}">
<c:set var="current" value="${jcr:getMeAndParentsOfType(renderContext.mainResource.node, 'jnt:page')[0]}" />
</c:if>
</c:if>

 

for this time i replace all of this block by 1 line :

<c:set var="current" value="${jcr:getMeAndParentsOfType(renderContext.mainResource.node, 'jnt:page')[0]}" />

but this is not anyway i want.

 

this is an extract of my error:

Error: org.jahia.services.render.RenderException: javax.el.ELException: Problems calling function 'jcr:getParentOfType'org.jahia.services.render.filter.RenderFilterException: org.jahia.services.render.RenderException: javax.el.ELException: Problems calling function 'jcr:getParentOfType'

 

Sincerely, Anthony.

 

  (akharii)

Number of messages  9
Registration date
1 (1 Good)
0 (0 Bad)

Re : Error: org.jahia.services.render.RenderException

by  shuber »  2014/05/14 14:56

Could you please try by replacing all occurences of currentNode.resolveSite with renderContext.site ?

Best regards,

  Serge Huber.

Serge Huber (shuber)

Number of messages  271
Registration date
0 (0 Good)
0 (0 Bad)

Re : Re : Error: org.jahia.services.render.RenderException

by  akharii »  2014/05/14 15:05

Haha u are the best.

Thanks u so much !

  (akharii)

Number of messages  9
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page