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/

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Reply via email to