{
if (uiInput == null || ((String)uiInput.getValue()).trim().length() == 0)
return;
// modified by Pham Dinh Tan
UIComponent uiComponent = (UIComponent)uiInput;
UIForm uiForm = uiComponent.getAncestorOfType(UIForm.class);
String label;
try
{
label = uiForm.getLabel(uiInput.getName());
}
catch (Exception e)
{
label = uiInput.getName();
}