Sven Homburg <[EMAIL PROTECTED]> writes:
> in germany we use the comma as decimal-seperator.
> so here we have a little problem the the intake-model
> BigDecimalField.
> i think a little workaround is to change the
> doSetValue-methode like this:
>
> /**
> * converts the parameter to the correct Object.
> */
> protected void doSetValue(ParameterParser pp)
> {
> if ( isMultiValued )
> {
> String[] ss = pp.getStrings(getKey());
> BigDecimal[] ival = new BigDecimal[ss.length];
> for (int i=0; i<ss.length; i++)
> {
> ival[i] = new BigDecimal(ss[i].replace(',','.'));
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> }
> setTestValue(ival);
> }
> else
> {
> setTestValue( new BigDecimal(pp.getString(getKey()).replace(',','.')) );
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> }
> }
Hi Sven. I believe that all of Intake needs to be localized. I'm
currently working on this in the jakarta-turbine-fulcrum repository.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>