// TODO: Tung.Pham added
public static class MandatoryValidator implements Validator {
public void validate(UIFormInput uiInput) throws Exception {
UIFormInputContainer uiInputContainer = (UIFormInputContainer) uiInput;
String value = (String) uiInputContainer.getValue();
if (value == null || value.trim().length() < 1) {
String[] args = { "UITabPane.title.UIPermissionSelector" };
throw new MessageException(new ApplicationMessage("MandatoryValidatorIterator.msg.empty", args,
ApplicationMessage.INFO));
}