Manorrock logo
Almanacs     Products     Open SourceSign In

BigDecimal conversion error
Introduction

If you are scratching your head trying to figure out why BigDecimals are not working in JSF. Well then read on!

Issue

If you are using injection in JSF that requires you to convert from a String to a BigDecimal you might see the following message:

org.apache.jasper.JasperException: javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value 1 of type class java.lang.String to type class java.math.BigDecimal for managed bean ....

Solution

The solution is easy, update your JSF libraries to the latest version, see http://javaserverfaces.dev.java.net/download.html

Please send comments, suggestions and any feedback to feedback@manorrock.com.

Up


Documents     Press releasesAbout us     Privacy    
Copyright notice