I'd have to look around to see where you could get an off-the-shelf
BigDecimal Converter, but one option you always have is writing
a small adapter layer.  You can't change the underlying business
object, but you *can* write a bean that wraps up the business
object and presents a long instead of a bigdecimal.  A proper
converter is a better option, though, since you won't run a
risk of exceeding legal values.

I'm not sure where you got converter="BigDecimalConverter"
from... you do have to pick something that really is the ID
of a converter.

-- Adam



On 1/3/07, Anshuman Abhishek Roy <[EMAIL PROTECTED]> wrote:

I tried to add converter="BigDecimalConverter" but now I am getting a null
pointer exception. Is there anything I m missing in this...

regards,
Anshuman
----- Original Message -----
From: "Anshuman Abhishek Roy" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, January 04, 2007 11:32 AM
Subject: Converting BigDecimal to Long in <TR:Table>


>
> Hi,
>
> I have a trinidad table component that iterates over a business object.
> Now I am trying to display a value which is of type Big decimal. which
if
> finely displayed. But when I try to save it gives an exception as cannot
> convert long to big decimal. I do not have rights to change the business
> object. So is there any way of converting the BigDecimal to Long while
> saving in the backing bean??
>
> regards,
> Anshuman
>
>
> Disclaimer
>
> This email and any files transmitted with it are confidential and
intended
> solely for the use of the individual or entity to whom it is addressed.
> If you have received this communication in error, please immediately
> notify the [EMAIL PROTECTED] and destroy the original message. The
> recipient should check this email and any attachments for the presence
of
> viruses.  Ness has taken every reasonable precaution to minimize this
> risk, and accepts no liability for any damage caused by any virus
> transmitted in this email.  Ness reserves the rights to monitor and
review
> the content of all messages sent to or from this E-mail address, and
store
> them on the Ness E-mail system.
>



Reply via email to