RE: [s2] Formatting input textfields

2008-07-24 Thread Milan Milanovic
NumberFormat formater = new DecimalFormat("#,##0.00"); > > BigDecimal value = (BigDecimal) objectValue; > return formater.format(value); > } > else{ >

RE: [s2] Formatting input textfields

2008-07-24 Thread John Koutros
null; } } } -Original Message- From: Milan Milanovic [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 1:02 PM To: user@struts.apache.org Subject: Re: [s2] Formatting input textfields Hi, could you give here your source code for that converter ? -- Thx, Mi

RE: [s2] Formatting input textfields

2008-07-23 Thread Jishnu Viswanath
:14 PM To: user@struts.apache.org Subject: RE: [s2] Formatting input textfields Thank you Jishnu. This looks like complicated solution to me, could I just change locale for that jsp or textfield ? -- Thx, Milan Jishnu Viswanath wrote: > > AJAX validation is done through js, before that we can have

RE: [s2] Formatting input textfields

2008-07-23 Thread Milan Milanovic
t; > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: Milan Milanovic [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2008 3:34 PM > To: user@struts.apache.org > Subject: RE: [s2] Formatting input textfields > &g

RE: [s2] Formatting input textfields

2008-07-23 Thread Jishnu Viswanath
age- From: Milan Milanovic [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 3:34 PM To: user@struts.apache.org Subject: RE: [s2] Formatting input textfields Hi Jishnu, well, I'm not sure what to do with ajax validation on jsp page, because my BigDecimal field in my action class wo

RE: [s2] Formatting input textfields

2008-07-23 Thread Milan Milanovic
Hi Jishnu, well, I'm not sure what to do with ajax validation on jsp page, because my BigDecimal field in my action class wouldn't accept it ? I need one another thing, that my number be rounded on exactly two decimals, like: 198,19833 to 198,20 ? -- Thx, Milan Jishnu Viswanath wrote: > > h

Re: [s2] Formatting input textfields

2008-07-23 Thread Milan Milanovic
Hi, could you give here your source code for that converter ? -- Thx, Milan aretobios wrote: > > I had the same problem. I solved it by creating a custom type conversion > for bigdecimal fields. > > Take a look > http://struts.apache.org/2.0.11.2/docs/type-conversion.html#TypeConversion-App

Re: [s2] Formatting input textfields

2008-07-22 Thread jkoutr
I had the same problem. I solved it by creating a custom type conversion for bigdecimal fields. Take a look http://struts.apache.org/2.0.11.2/docs/type-conversion.html#TypeConversion-ApplyingaTypeConverterforanapplication";>here By creating your own converter you can have fields were the user wri

RE: [s2] Formatting input textfields

2008-07-22 Thread Jishnu Viswanath
http://cwiki.apache.org/WW/ajax-validation.html On the validate part, do put Regular expression to make to accept the pattern you want. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSI