Package javax.faces.component

Examples of javax.faces.component.UIForm.visitTree()


        if (command instanceof HtmlCommandButton)
        {
            final FacesContext facesContext = testCase.getFacesContext();
            UIForm form = getParentForm(command);
            VisitContext visitContext = VisitContext.createVisitContext(facesContext);
            form.visitTree(visitContext, new VisitCallback(){

                public VisitResult visit(VisitContext context,
                        UIComponent target)
                {
                    if (target instanceof UIInput)
View Full Code Here


    {
        if (command instanceof HtmlCommandButton)
        {
            UIForm form = getParentForm(command);
            VisitContext visitContext = VisitContext.createVisitContext(facesContext);
            form.visitTree(visitContext, new VisitCallback(){

                public VisitResult visit(VisitContext context,
                        UIComponent target)
                {
                    if (target instanceof UIInput)
View Full Code Here

    if (context.isPostback() && context.isValidationFailed()) {
      UIForm form = getCurrentForm();

      if (form != null) {
        final StringBuilder clientIdsAsJSON = new StringBuilder();
        form.visitTree(VisitContext.createVisitContext(context, null, VISIT_HINTS), new VisitCallback() {

          @Override
          public VisitResult visit(VisitContext context, UIComponent component) {
            if (component instanceof UIInput && !((UIInput) component).isValid()) {
              if (clientIdsAsJSON.length() > 0) {
View Full Code Here

    {
        if (command instanceof HtmlCommandButton)
        {
            UIForm form = getParentForm(command);
            VisitContext visitContext = VisitContext.createVisitContext(facesContext);
            form.visitTree(visitContext, new VisitCallback(){

                public VisitResult visit(VisitContext context,
                        UIComponent target)
                {
                    if (target instanceof UIInput)
View Full Code Here

    {
        if (command instanceof HtmlCommandButton)
        {
            UIForm form = getParentForm(command);
            VisitContext visitContext = VisitContext.createVisitContext(facesContext);
            form.visitTree(visitContext, new VisitCallback(){

                public VisitResult visit(VisitContext context,
                        UIComponent target)
                {
                    if (target instanceof UIInput)
View Full Code Here

    {
        if (command instanceof HtmlCommandButton)
        {
            UIForm form = getParentForm(command);
            VisitContext visitContext = VisitContext.createVisitContext(facesContext);
            form.visitTree(visitContext, new VisitCallback(){

                public VisitResult visit(VisitContext context,
                        UIComponent target)
                {
                    if (target instanceof UIInput)
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.