cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: JXTG and size() method
Date Wed, 30 Jun 2004 07:25:38 GMT
Antonio Gallardo wrote:
> Leszek Gawron dijo:
> 
>>Antonio Gallardo wrote:
>>
>>
>>>Leszek Gawron dijo:
>>>
>>>
>>>>Stephan Coboos wrote:
>>>>
>>>>
>>>>>Why not using ${mySet.size()} ? Doesn't it work?
>>>>
>>>>It does not .. it looks like some kind of reserved keyword.
>>>
>>>
>>>AFAIK it must work. Why do you think this is a reserved word?
>>
>>at least it is treated specially.
>>Try to invoke a size method on a java.util.Set (HashSet for example). In
>>JXTG of course.
> 
> 
> why this method ca be special. I don't saw any "special case" for Set or
> HashSet inside the code.
> 
> I already use this:
> 
> <jx:set var="sizeOfList" value="${bean.myList.size()}"/>
because the list IS handled by ASTSizeFunction class. See JEXL sources.
	lg

-- 
Leszek Gawron                                      lgawron@mobilebox.pl

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


Mime
View raw message