JSONObject cons = profile.getJSONObject(ValidationConstants.CONSTRAINTS);
DecimalFormat format = getDecimalFormat(context.getLocale());
cons.accumulate(field.getClientId(),
new JSONLiteral("[dojo.validate.isRealNumber,{"
+ "places:" + format.getMaximumFractionDigits() + ","
+ "decimal:"
+ JSONObject.quote(format.getDecimalFormatSymbols().getDecimalSeparator())
+ ",separator:" + JSONObject.quote(format.getDecimalFormatSymbols().getGroupingSeparator())