*/
public void overrideContributions(Validator validator, FormComponentContributorContext context,
IMarkupWriter writer, IRequestCycle cycle)
{
// we know this has to be a Required validator
Required required = (Required)validator;
JSONObject profile = context.getProfile();
if (!profile.has(ValidationConstants.CONSTRAINTS)) {
profile.put(ValidationConstants.CONSTRAINTS, new JSONObject());
}
JSONObject cons = profile.getJSONObject(ValidationConstants.CONSTRAINTS);
required.accumulateProperty(cons, getClientId(),
new JSONLiteral("[tapestry.form.validation.isPalleteSelected]"));
required.accumulateProfileProperty(this, profile,
ValidationConstants.CONSTRAINTS, required.buildMessage(context, this));
}