Package de.odysseus.calyxo.forms.conf

Examples of de.odysseus.calyxo.forms.conf.MessageConfig


  /**
   * Constructor.
   */
  public MessageImpl(ValidateConfig validateConfig, ValidatorBase bean) {
    MessageConfig validateMessageConfig = validateConfig.getMessageConfig();
    MessageConfig fieldMessageConfig =
      validateConfig.getFieldConfig().getMessageConfig();
    MessageConfig validatorMessageConfig =
      validateConfig.getValidatorConfig().getMessageConfig();
    if (validateMessageConfig != null && validateMessageConfig.getKey() != null) {
      init(validateMessageConfig, bean);
    } else if (fieldMessageConfig != null && fieldMessageConfig.getKey() != null) {
      if (validateMessageConfig == null) {
        init(fieldMessageConfig, bean);
      } else {
        init(validateMessageConfig, fieldMessageConfig, bean);
      }
    } else if (validatorMessageConfig != null && validatorMessageConfig.getKey() != null) {
      if (fieldMessageConfig != null && validateMessageConfig != null) {
        init(validateMessageConfig, fieldMessageConfig, validatorMessageConfig, bean);
      } else if (fieldMessageConfig != null) {
        init(fieldMessageConfig, validatorMessageConfig, bean);
      } else if (validateMessageConfig != null) {
View Full Code Here


   */
  protected void _init2() throws ConfigException {
    super._init2();
    // validate message conf if we derive from base message
    if (message != null && message.getKey() == null) {
      MessageConfig baseMessage = validatorConfig.getMessageConfig();
      MessageConfig fieldMessage = getFieldConfig().getMessageConfig();
      if (fieldMessage != null && fieldMessage.getKey() != null) {
        baseMessage = fieldMessage;
      }
      if (baseMessage == null) {
        throw new ConfigException("No base message in validator '" + name + "' in '" + toInlineString() + "'");
      } else if (baseMessage.getKey() == null) {
View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.forms.conf.MessageConfig

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.