javaScriptListener = new JavaScriptListener("onchange", "numberFormatter(this)");
javaScriptListener = new JavaScriptListener("onchange", "numberFormatter(" + numberFormat.getMinimumIntegerDigits() + "," + numberFormat.getMaximumIntegerDigits() + "," + numberFormat.getMinimumFractionDigits() + "," + numberFormat.getMaximumFractionDigits() + "," + minVal + "," + maxVal + "," + numberFormat.isGroupingUsed() + "," + numberFormat.isParseIntegerOnly() + ",'"+this.getDecimalSeparator()+"','"+this.getGroupingSeparator()+"',this)");
    public JavaScriptListener generateJavaScript(SFormattedTextField field, boolean b){                field.addScriptListener( SCRIPT_NUMBERFORMATTER );                field.removeScriptListener( SCRIPT_SAVEOLD );        field.addScriptListener( SCRIPT_SAVEOLD );                if(b){            String funct = "if (numberFormatter(" + numberFormat.getMinimumIntegerDigits() + "," + numberFormat.getMaximumIntegerDigits() + "," + numberFormat.getMinimumFractionDigits() + "," + numberFormat.getMaximumFractionDigits() + "," + minVal + "," + maxVal + "," + numberFormat.isGroupingUsed() + "," + numberFormat.isParseIntegerOnly() + ",'"+this.getDecimalSeparator()+"','"+this.getGroupingSeparator()+"',this)) submit();";            javaScriptListener = new JavaScriptListener("onchange", funct );        }        else{            javaScriptListener = new JavaScriptListener("onchange", "numberFormatter(this)");        }        return javaScriptListener;    }