Hi Gill,

this is indeed an oversight and I'll fix it in the coming days.

I've never has the case that an arbitrary amount of money had to be entered through a web form. You might want to use double in the meantime and change that over as soon as BigDecimal support is in there.

Best regards,

Geert

On 04 Aug 2006, at 08:12, Gill, Huibert wrote:

Hallo all,


My first Rife application is comming around nicely.
The authentication works, and yesterday I found out that I can "stack"
authorisation elements,
to get a sort of "inner sactum" in a webapp.
I like the rife framework more every day.


For my next application I need to handle monetary/money values.
I know floats are _not_ a good way to represent monetary values in Java (or
any other languages).
Therefore there existst the Decimal type in most databases.
The information I got of the web, claimed I should user BigDecimal in Java.
(link: http://www.ddj.com/184405721 )

I constructed a simple bean instance with an id,name,and myMoney as
properties.
The myMoney type is BigDecimal.

Then I configured Rife/Crud to handle the bean.
(Stored in Oracel 9i)

Crud works mostly for this bean, everything _but_ the value of myMoney can
be saved/retrieved from the DB.

Is it possible to use BigDecimal in rife?
If not, what is the alternative?

Thanks in advance for your time and patience.


Mit freundlichen Grüßen / With kind regards

Huibert Gill
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to