{
IForm form = component.getForm();
if (component.isRequired())
{
form.registerForFocus(component, ValidationConstants.REQUIRED_FIELD);
if (form.isClientValidationEnabled())
{
String function = "require(event, document." + form.getName() + "."
+ component.getName() + ",'" + buildRequiredMessage(component) + "')";