cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <...@apache.org>
Subject Re: hibernate sets + jxtemplate
Date Mon, 20 Sep 2004 13:42:18 GMT
Il giorno 20/set/04, alle 13:42, defe ha scritto:

> hi,
> i'm can't get the size of an Hibernate Set into a jxtemplate.
> "${parent.children.size()}"  does not work: "unknown class : 
> net.sf.hibernate.Set"
>
> does someone know how to do this?

The problem is, "size" is a reserved word in JEXL and it does not work 
with sets. The only workaround I know of is to use XPath syntax:

#{count(parent/children)}

	Ugo

-- 
Ugo Cei - http://beblogging.com/

Mime
View raw message