cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Salvetti <m...@notremanou.net>
Subject Re: How to iterate recursivley with JXTemplate
Date Tue, 21 Jun 2005 03:05:47 GMT
Hello, maybe you can use jx:set for your pb. I have this kind of sintax 
in my code and it's fine :
<jx:set var="balance" value="#{$total-invoice - $total-deposit - 
$total-deposit2}"/>

Marc

Johannes Becker a écrit :

> Yep, now I have tried it and it worked!!
>
> And if somebody had an answer on the post "[JXTemplate] problems 
> accessing a value" I'd be the happiest man alive.
>
> Thanks
> Jonny
>
> Sebastien Arbogast wrote:
>
>> 2005/6/20, Johannes Becker <jonnybecker@gmx.net>:
>>  
>>
>>> Hi,
>>>
>>> I've got a function that returns a List. In this List again there is
>>> another Set.
>>>
>>> Question:
>>> - Can I iterate through a Set with <jx:forEach ?
>>> - How would I do that? Another <jx:forEach ?
>>>
>>> My JXTemplate:
>>> ...
>>> <c:forEach select="#{getList}">
>>>   <a>#{price}</b>
>>>   <b>  <!-- here I want the Set iterated   -->    </b>
>>> </c:forEach>
>>>   
>>
>>
>> It seems to me that forEach is able to iterate on any Collection
>> subclass, including List's and Set's. Have you tried ?
>>
>>  
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>

	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

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


Mime
View raw message