Thanks guys for your reponses, but I think I may have been unclear in
my question. I have a class called MyCurrencyConverter that converts
a string to a BigDecimal by stripping the $, commas, etc. - this
works fine. The problem arises when struts does not call
MyCurrencyConverter for the nested
Did you try to user annotation @TypeConversion ?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia http://javarsovia.pl
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional
You need to determine why contact.contactLead.income is being evaluated
as $123. This is forcing the search for setIncome(String). Is the user
entering this value? If so, you need to strip it of the String so it can
be considered a BigDecimal.
On Sat, Dec 11, 2010 at 6:51 PM, Burton Rhodes
2010/12/12 Burton Rhodes burtonrho...@gmail.com:
I know. I don't have a setIncome(String) method. But I do have
setIncome(BigDecimal) method , hence the type conversion. Normally the
class MyCurrencyCoverter will covert the String to BigDecimal, but
it's never called. I am wondering what I am
Look at the bottom of your message and also the top.
'contact.contactLead.income' evaluated
to '$123' and you do not have a method
com.afs.entity.ContactLead.setIncome([Ljava.lang.String;)]
Scott
On Fri, Dec 10, 2010 at 2:53 PM, Burton Rhodes burtonrho...@gmail.comwrote:
I am having issues
I know. I don't have a setIncome(String) method. But I do have
setIncome(BigDecimal) method , hence the type conversion. Normally the
class MyCurrencyCoverter will covert the String to BigDecimal, but
it's never called. I am wondering what I am doing wrong that the
conversion class is not called.
I am having issues trying to get a Type Converter to run when
converting a field that is a sub-object of the main model. For
example, I have a Contact class that contains a ContactLead class. I
have an Action class that saves a new Contact and ContactLead at the
same time. Originally, I set up
7 matches
Mail list logo