code: @Override
  	protected void onBeforeRender()
  	{
  		if (isRequired())
  		{
  			getFormComponent().add(new AttributeModifier("required", "required"));
  		}
  		getFormComponent().setRequired(isRequired());
  		super.onBeforeRender();
  	}
docs: {@inheritDoc}