cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniele Madama (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COCOON-905) JXTemplate evaluates expressions in comments, need jx:comment?
Date Mon, 02 Oct 2006 13:34:22 GMT
    [ http://issues.apache.org/jira/browse/COCOON-905?page=comments#action_12439140 ] 
            
Daniele Madama commented on COCOON-905:
---------------------------------------

I think this was related with bug #1866, so this can be closed or reported as duplicate.

> 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
>
> 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

        

Mime
View raw message