{
super.renderContribution(writer, cycle, context, field);
String message = buildMessage(context, field, getMessageKey());
JSONObject profile = context.getProfile();
if (!profile.has(ValidationConstants.CONSTRAINTS)) {
profile.put(ValidationConstants.CONSTRAINTS, new JSONObject());
}
JSONObject cons = profile.getJSONObject(ValidationConstants.CONSTRAINTS);
DecimalFormat format = getDecimalFormat(context.getLocale());
cons.accumulate(field.getClientId(),
new JSONLiteral("[dojo.validate.isRealNumber,{"
+ ((format.getMaximumFractionDigits() > 0)
? "" : "places:" + format.getMaximumFractionDigits() + ",")
+ "decimal:"
+ JSONObject.quote(format.getDecimalFormatSymbols().getDecimalSeparator()) + ","