Examples of FieldError


Examples of com.agiletec.aps.system.common.entity.model.FieldError

        List<ApiError> errors = new ArrayList<ApiError>();
        try {
            List<FieldError> fieldErrors = userMessage.validate(this.getGroupManager());
            if (null != fieldErrors) {
                for (int i = 0; i < fieldErrors.size(); i++) {
                    FieldError fieldError = fieldErrors.get(i);
                    if (fieldError instanceof AttributeFieldError) {
                        AttributeFieldError attributeError = (AttributeFieldError) fieldError;
                        errors.add(new ApiError(IApiErrorCodes.API_VALIDATION_ERROR,
                attributeError.getFullMessage(), Response.Status.CONFLICT));
                    } else {
                        errors.add(new ApiError(IApiErrorCodes.API_VALIDATION_ERROR,
                fieldError.getMessage(), Response.Status.CONFLICT));
                    }
                }
            }
        } catch (Throwable t) {
            ApsSystemUtils.logThrowable(t, this, "validate");
View Full Code Here

Examples of org.apache.struts2.components.FieldError

    public String getBeanName() {
        return "fielderror";
    }

    protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new FieldError(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.FieldError

    public FieldErrorModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        super(stack, req, res);
    }

    protected Component getBean() {
        return new FieldError(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.FieldError

    protected String fieldName;
    protected boolean escape = true;


    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new FieldError(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.FieldError

    }

    protected void populateParams() {
        super.populateParams();

        FieldError fieldError = ((FieldError) component);
        fieldError.setFieldName(this.fieldName);
        fieldError.setEscape(escape);
    }
View Full Code Here

Examples of org.apache.struts2.components.FieldError

        this.fieldNames.add("field1");
        this.fieldNames.add("field2");

        //errors are needed to setup stack
        super.setUp();
        this.tag = new FieldError(stack, request, response);
    }
View Full Code Here

Examples of org.apache.struts2.components.FieldError

    public FieldErrorModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        super(stack, req, res);
    }

    protected Component getBean() {
        return new FieldError(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.FieldError

    public String getBeanName() {
        return "fielderror";
    }

    protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new FieldError(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.FieldError

public class FieldErrorTag extends AbstractUITag {

  private static final long serialVersionUID = -182532967507726323L;

  public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
    return new FieldError(stack, req, res);
  }
View Full Code Here

Examples of org.apache.struts2.components.FieldError

public class FieldErrorTag extends AbstractUITag {

    private static final long serialVersionUID = -182532967507726323L;

    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new FieldError(stack, req, res);
    }
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.