On 12/29/2009 10:33 AM, Caleb James DeLisle wrote:
> Good luck, remember that velocity converts everything to Strings so something
> like
> #set($x = 1)
> $xwiki.methodRequiringInteger($x)
> will fail because velocity turns 1 the number into "1" the 1 character string
> I think $mathtool has a way to convert it back.
No, that's not true.
{{velocity}}
#set($x = 1)
$x.class
{{/velocity}}
Prints:
class java.lang.Integer
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users