profile.put(ValidationConstants.CONSTRAINTS, new JSONObject());
}
JSONObject cons = profile.getJSONObject(ValidationConstants.CONSTRAINTS);
accumulateProperty(cons, field.getClientId(),
new JSONLiteral("[dojo.validate.isText,{"
+ "maxlength:" + _maxLength + "}]"));
accumulateProfileProperty(field, profile,
ValidationConstants.CONSTRAINTS, buildMessage(context, field));
}