Examples of processValidators()


Examples of javax.faces.component.UIComponent.processValidators()

                        for (int j = 0, childCount = getChildCount(); j < childCount; j++) {
                            UIComponent child = getChildren().get(j);
                            if (PhaseId.APPLY_REQUEST_VALUES.equals(phase)) {
                                child.processDecodes(faces);
                            } else if (PhaseId.PROCESS_VALIDATIONS.equals(phase)) {
                                child.processValidators(faces);
                            } else if (PhaseId.UPDATE_MODEL_VALUES.equals(phase)) {
                                child.processUpdates(faces);
                            } else if (PhaseId.RENDER_RESPONSE.equals(phase)) {
                                child.encodeAll(faces);
                            }
View Full Code Here

Examples of javax.faces.component.UIComponent.processValidators()

  public void processValidators(FacesContext context) {
    if (isSubmitted()) {
      for (Iterator it = getFacetsAndChildren(); it.hasNext();) {
        UIComponent childOrFacet = (UIComponent) it.next();
        childOrFacet.processValidators(context);
      }
      //TODO: check if validation has faild and reset rendered if needed
      if (context.getRenderResponse()) {
        setActivated(true);
      }
View Full Code Here

Examples of javax.faces.component.UIComponent.processValidators()

  @Override
  public void processValidators(FacesContext context)
  {
    UIComponent facet = _getFacet();
    if (facet != null)
      facet.processValidators(context);
  }


  /**
   * Only process updates on the currently active facet.
View Full Code Here

Examples of javax.faces.component.UIComponent.processValidators()

  public void processValidators(FacesContext context) {
    if (isSubmitted()) {
      for (Iterator it = getFacetsAndChildren(); it.hasNext();) {
        UIComponent childOrFacet = (UIComponent) it.next();
        childOrFacet.processValidators(context);
      }
      //TODO: check if validation has faild and reset rendered if needed
     if (context.getRenderResponse()) {
        setActivated(true);
      }
View Full Code Here

Examples of javax.faces.component.UIComponent.processValidators()

    } else {
      // Process all facets and children of this component
      Iterator kids = getFacetsAndChildren();
      while (kids.hasNext()) {
        UIComponent kid = (UIComponent) kids.next();
        kid.processValidators(facesContext);
      }
    }
  }

  public void processUpdates(FacesContext facesContext) {
View Full Code Here

Examples of javax.faces.component.UIComponent.processValidators()

    }

        Iterator<UIComponent> kids = getSwitchedFacetsAndChildren();
        while (kids.hasNext()) {
            UIComponent kid = (UIComponent) kids.next();
            kid.processValidators(context);
        }

        try {
            if (!isImmediate()) {
                validate(context);
View Full Code Here

Examples of javax.faces.component.UIInput.processValidators()

               
                UIInput input = (UIInput) target;
                input.setSubmittedValue(submittedValue);
                try
                {
                    input.processValidators(facesContext);
                    Assert.assertTrue(facesContext.isValidationFailed());
                }
                catch(FacesException e)
                {
                    Assert.fail("No exception expected", e);
View Full Code Here

Examples of javax.faces.component.UIInput.processValidators()

               
                UIInput input = (UIInput) target;
                input.setSubmittedValue(submittedValue);
                try
                {
                    input.processValidators(facesContext);
                    Assert.assertTrue(facesContext.isValidationFailed());
                }
                catch(FacesException e)
                {
                    Assert.fail("No exception expected", e);
View Full Code Here

Examples of javax.faces.component.UIInput.processValidators()

               
                UIInput input = (UIInput) target;
                input.setSubmittedValue(submittedValue);
                try
                {
                    input.processValidators(facesContext);
                }
                catch(FacesException e)
                {
                    Assert.fail("No exception expected", e);
                }
View Full Code Here

Examples of javax.faces.component.UIInput.processValidators()

               
                UIInput input = (UIInput) target;
                input.setSubmittedValue(submittedValue);
                try
                {
                    input.processValidators(facesContext);
                }
                catch(FacesException e)
                {
                    Assert.fail("No exception expected", e);
                }
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.