cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25083] New: - JXTemplate evaluates commented out part of code
Date Sat, 29 Nov 2003 13:35:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25083>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25083

JXTemplate evaluates commented out part of code

           Summary: JXTemplate evaluates commented out part of code
           Product: Cocoon 2
           Version: 2.1.3
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: mariusz-sieraczkiewicz@o2.pl


The code like this  
       <jx:forEach select="#{queryWrapper/data}">
            <p>
            <jx:out value="#{.}" />
            <!--
            <jx:out value="#{.[4]}" />
            -->
            </p>
        </jx:forEach>
throws 
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)

what means that commented out part of code is evaluated.

Mime
View raw message