Examples of addActionError()


Examples of com.opensymphony.xwork2.ValidationAware.addActionError()

          Throwable cause = e.getCause();
          if (cause != null) {
            while (cause.getCause() != null) {
              cause = cause.getCause();
            }
            va.addActionError(cause.getMessage());
          } else {
            va.addActionError(e.getMessage());
          }
        }
        this.log.warn(e.getMessage(), e);
View Full Code Here

Examples of com.opensymphony.xwork2.ValidationAware.addActionError()

            while (cause.getCause() != null) {
              cause = cause.getCause();
            }
            va.addActionError(cause.getMessage());
          } else {
            va.addActionError(e.getMessage());
          }
        }
        this.log.warn(e.getMessage(), e);
        return Struts2Constants.ERROR;
      }
View Full Code Here

Examples of com.opensymphony.xwork2.validator.DelegatingValidatorContext.addActionError()

                if (isActionError(violation)) {
                    if (LOG.isDebugEnabled()) {
                  LOG.debug("Adding action error '#0'", message);
                    }
                    validatorContext.addActionError(message);
                } else {
                    ValidationError validationError = buildValidationError(violation, message);

                    // build field name
                    String fieldName = validationError.getFieldName();
View Full Code Here

Examples of com.opensymphony.xwork2.validator.DelegatingValidatorContext.addActionError()

                if (isActionError(violation)) {
                    if (LOG.isDebugEnabled()) {
                  LOG.debug("Adding action error '#0'", message);
                    }
                    validatorContext.addActionError(message);
                } else {
                    ValidationError validationError = buildValidationError(violation, message);

                    // build field name
                    String fieldName = validationError.getFieldName();
View Full Code Here

Examples of com.opensymphony.xwork2.validator.ValidatorContext.addActionError()

                if (isActionError(violation)) {
                    if (LOG.isDebugEnabled()) {
                  LOG.debug("Adding action error '#0'", message);
                    }
                    validatorContext.addActionError(message);
                } else {
                    ValidationError validationError = buildValidationError(violation, message);

                    // build field name
                    String fieldName = validationError.getFieldName();
View Full Code Here

Examples of com.opensymphony.xwork2.validator.ValidatorContext.addActionError()

        if ( method.equals( "rsync" ) )
        {
            String rsyncHost = (String) getFieldValue( "rsyncHost", obj );
            if ( rsyncHost == null || rsyncHost.equals( "" ) )
            {
                ctxt.addActionError( "Rsync host is required." );
            }

            String rsyncDirectory = (String) getFieldValue( "rsyncDirectory", obj );
            if ( rsyncDirectory == null || rsyncDirectory.equals( "" ) )
            {
View Full Code Here

Examples of com.opensymphony.xwork2.validator.ValidatorContext.addActionError()

            }

            String rsyncDirectory = (String) getFieldValue( "rsyncDirectory", obj );
            if ( rsyncDirectory == null || rsyncDirectory.equals( "" ) )
            {
                ctxt.addActionError( "Rsync directory is required." );
            }

            String rsyncMethod = (String) getFieldValue( "rsyncMethod", obj );
            if ( rsyncMethod == null || rsyncMethod.equals( "" ) )
            {
View Full Code Here

Examples of com.opensymphony.xwork2.validator.ValidatorContext.addActionError()

            }

            String rsyncMethod = (String) getFieldValue( "rsyncMethod", obj );
            if ( rsyncMethod == null || rsyncMethod.equals( "" ) )
            {
                ctxt.addActionError( "Rsync method is required." );
            }
            else
            {
                if ( !rsyncMethod.equals( "anonymous" ) && !rsyncMethod.equals( "ssh" ) )
                {
View Full Code Here

Examples of com.opensymphony.xwork2.validator.ValidatorContext.addActionError()

            }
            else
            {
                if ( !rsyncMethod.equals( "anonymous" ) && !rsyncMethod.equals( "ssh" ) )
                {
                    ctxt.addActionError( "Invalid rsync method" );
                }
            }

            String username = (String) getFieldValue( "username", obj );
            if ( username == null || username.equals( "" ) )
View Full Code Here

Examples of com.opensymphony.xwork2.validator.ValidatorContext.addActionError()

            }

            String username = (String) getFieldValue( "username", obj );
            if ( username == null || username.equals( "" ) )
            {
                ctxt.addActionError( "Username is required." );
            }

        }
        else if ( method.equals( "svn" ) )
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.