On 13/07/2008, at 12:27 AM, Chuck Hill wrote:
> On Jul 12, 2008, at 4:28 AM, Lachlan Deck wrote:
>
>> Any reason why these don't work?
>>
>> ${entity.primaryKeyAttributes.count}
>> ${entity.primaryKeyAttributes.size}
>> $lists.size(${entity.primaryKeyAttributes})
>>
>> #foreach($obj in $sorter.sort(${entity.primaryKeyAttributes},
>> "name"))
>> ...
>> #end
>
>
> I think it might have to do with how Velocity resolves the key
> path. I have had to add parens for things like:
> ${entity.name.toUpperCase()}
>
> Maybe try
> ${entity.primaryKeyAttributes.count()}
Tried that already. Didn't work either. But this does:
${entity.primaryKeyAttributes.size()}
Thanks.
with regards,
--Lachlan Deck
This archive was generated by hypermail 2.0.0 : Sat Jul 12 2008 - 19:46:22 EDT