NumberFormat formater = new DecimalFormat("#,##0.00");
>
> BigDecimal value = (BigDecimal) objectValue;
> return formater.format(value);
> }
> else{
>
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
: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
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
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
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
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
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
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
9 matches
Mail list logo