velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wgl...@forio.com>
Subject RE: calling setProperty(float) not possible ?
Date Wed, 11 Jul 2001 19:25:09 GMT
Hi,

I'm a new Velocity user and am in the middle of developing some methods.
Could you please clarify what datatypes are supported?

Thanks, Will

-----Original Message-----
From: Jon Stevens [mailto:jon@latchkey.com]
Sent: Wednesday, July 11, 2001 9:55 AM
To: velocity-user
Subject: Re: calling setProperty(float) not possible ?


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