Package org.exoplatform.webui.exception

Examples of org.exoplatform.webui.exception.MessageException


         UIFormInputContainer uiInputContainer = (UIFormInputContainer)uiInput;
         String value = (String)uiInputContainer.getValue();
         if (value == null || value.trim().length() < 1)
         {
            String[] args = {uiInputContainer.getBindingField()};
            throw new MessageException(new ApplicationMessage("MandatoryValidatorIterator.msg.empty", args,
               ApplicationMessage.INFO));
         }
      }
View Full Code Here


         }
         UIFormPageIterator uiInputIterator = uiInputContainer.findFirstComponentOfType(UIFormPageIterator.class);
         if (uiInputIterator.getAvailable() < 1)
         {
            String[] args = {uiInputContainer.getBindingField()};
            throw new MessageException(new ApplicationMessage("EmptyIteratorValidator.msg.empty", args,
               ApplicationMessage.INFO));
         }
      }
View Full Code Here

            CompoundApplicationMessage messages = new CompoundApplicationMessage();

            validate((String) uiInput.getValue(), label, messages, uiInput);

            if (!messages.isEmpty()) {
                throw new MessageException(messages);
            }

        }
    }
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.exception.MessageException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.