[ http://issues.apache.org/jira/browse/COCOON-905?page=all ]

Jörg Heinicke closed COCOON-905.
--------------------------------

    Fix Version/s: 2.2-dev (Current SVN)
                   2.1.10-dev (current SVN)
       Resolution: Fixed

Close this bug as the actual bug introduced with jx:comment can be found at 
COCOON-1866.

> JXTemplate evaluates expressions in comments, need jx:comment?
> --------------------------------------------------------------
>
>                 Key: COCOON-905
>                 URL: http://issues.apache.org/jira/browse/COCOON-905
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Components: Sitemap
>    Affects Versions: 2.1.8
>         Environment: Operating System: All
> Platform: PC
>            Reporter: Mariusz Sieraczkiewicz
>         Assigned To: Cocoon Developers Team
>             Fix For: 2.2-dev (Current SVN), 2.1.10-dev (current SVN)
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to