cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariusz Sieraczkiewicz <marte...@stud.ics.p.lodz.pl>
Subject Bug in JXTemplate??
Date Fri, 28 Nov 2003 10:28:59 GMT
Having

         <p>
         <jx:forEach select="#{queryWrapper/data}">
             <p>
             <jx:out value="#{.}" />
             <!--
             <jx:out value="#{.[4]}" />
             -->
             </p>
         </jx:forEach>
         </p>

it seems that jxtemplate tries to evaluate commented out part of code, 
cause
i get sth like this

Original Exception: org.apache.commons.jxpath.JXPathException: No value 
for xpath: .[4]
	at 
org.apache.cocoon.generation.JXTemplateGenerator.characters(JXTemplateGenerator.java:2820)
	at 
org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator.java:3495)
	at 
org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator.java:3179)
	at 
org.apache.cocoon.generation.JXTemplateGenerator.generate(JXTemplateGenerator.java:2790)

While when the comment i cut out everything's ok.

Reagards, Mariusz

Mime
View raw message