[stringtemplate-interest] The length of things
Tom Bentley
tom at egressive.com
Mon May 9 21:12:46 PDT 2005
Hi All,
I have a getFoo() method in my model which returns an array. I was sort
of expecting that I could access the length of this array in
StringTemplate using something along the lines of:
$obj.foo.length$
However, this doesn't work: I get a NoSuchField exception because length
is supposedly not a field of the thing returned by getFoo().
Is this behaviour intentional, and if so, is there any mechanism for
getting the length of my array, or must I add some sort of hasSomeFoo()
method to my model?
Cheers,
Tom
More information about the stringtemplate-interest
mailing list