cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Johnston <coc...@lojjic.net>
Subject Re: jx:forEach returns JXTExpression where com.xxxx.Group is Expected
Date Tue, 31 Oct 2006 13:47:26 GMT
Robby Pelssers, AGP wrote:
> <jx:set var="subGroupIterator" 
> value="${planboard.analyzer.rootGroup.subGroupIterator(planboard.projectGroupRule)}"/>

> 
> 
> <jx:forEach var="projectGroup" items="{subGroupIterator}">
> 
>   <jx:set value="${java.lang.System.err.println(projectGroup)}"/>
> 
> </jx:forEach>
> 
>  
> 
> A print of SubGroupIterator results in java.util.AbstractList$Itr@35135a 
> 
> A print of projectGroup results in 
> org.apache.cocoon.generation.JXTemplateGenerator$JXTExpression@ 
> 
>  
> Anybody who has an explanation??  And solution for my problem :-) 
>  
> PS.  Even when I don't use the <jx:set var = .../>  construction, but 
> directly 
>  
> <jx:forEach var="projectGroup" 
> items="{planboard.analyzer.rootGroup.subGroupIterator(planboard.projectGroupRule)}">
> </jx:forEach>
>  
> the problem remains the same.


Not sure what's happening, but I have a couple questions:

1) Which version of JXTemplateGenerator are you using?  The main one in 
the core distribution or the new-jx version from the 'template' block?

2) I assume it's a typo, but are you omitting the '$' from the start of 
your items="" expression?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message