velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Stevens <...@latchkey.com>
Subject Re: calling setProperty(float) not possible ?
Date Wed, 11 Jul 2001 16:55:06 GMT
on 7/11/01 8:02 AM, "Thomas Fahrmeyer" <thomas.fahrmeyer@einsurance.de>
wrote:

> Hi,
> 
> I have an object called "person" with method "setIncome(float income)"
> accessible within the template:
> ...
> $person.setIncome(5000)
> ...
> 
> while merging the template Vel don't calls setIncome, because the 5000 is
> interpreted as an int and a method with that signature doesnt exist. Okay,
> but if I try
> $person.setIncome(5000f)

Correct, floats are not supported.

-jon


Mime
View raw message