public void renderContribution(IMarkupWriter writer, IRequestCycle cycle,
FormComponentContributorContext context, IFormComponent field)
{
context.addInitializationScript(field, "dojo.require(\"dojo.validate.web\");");
JSONObject profile = context.getProfile();
if (!profile.has(ValidationConstants.CONSTRAINTS)) {
profile.put(ValidationConstants.CONSTRAINTS, new JSONObject());
}
JSONObject cons = profile.getJSONObject(ValidationConstants.CONSTRAINTS);
accumulateProperty(cons, field.getClientId(),
new JSONLiteral("[dojo.validate.isEmailAddress,false,true]"));
accumulateProfileProperty(field, profile,