Hi there,
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(',','.')) );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
}
}
more configureable if we can update the intake.xml
with a new attribute "decimalseperator" where we can
set the wanted decimal-seperator.
--
Best regards
homburg Softwaretechnik
Sven Homburg
21220 Seevetal
http://www.hsofttec.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>