Package javax.faces.component

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


                                }
                            }
                            if (visitDetailStampRow)
                            {
                                UIComponent detailStampRowFacet = getFacet(DETAIL_STAMP_ROW_FACET_NAME);
                                if (detailStampRowFacet.visitTree(context, callback))
                                {
                                    return true;
                                }
                            }
                            if (visitDetailStamp)
View Full Code Here


                                }
                            }
                            if (visitDetailStamp)
                            {
                                UIComponent detailStampFacet = getFacet(DETAIL_STAMP_FACET_NAME);
                                if (detailStampFacet.visitTree(context, callback))
                                {
                                    return true;
                                }
                            }
                            if (visitTableRow)
View Full Code Here

                                }
                            }
                            if (visitTableRow)
                            {
                                UIComponent tableRowFacet = getFacet(TABLE_ROW_FACET_NAME);
                                if (tableRowFacet.visitTree(context, callback))
                                {
                                    return true;
                                }
                            }
                        }
View Full Code Here

                                log.warn("Unable to locate facet with the name: " + node.getType());
                                continue;
                                //throw new IllegalArgumentException("Unable to locate facet with the name: " + node.getType());
                            }
   
                            if (facet.visitTree(context, callback))
                            {
                                return true;
                            }
                        }
                    }
View Full Code Here

  private ComponentInfo getComponentInfo(FacesContext context) {
    UIComponent sourceComponent = getForComponent();
    VisitContext visitContext = VisitContext.createVisitContext(context);
    EditableValueHoldersCollector collector = new EditableValueHoldersCollector();
    sourceComponent.visitTree(visitContext, collector);
    return new DefaultComponentInfo(context, collector.getEditableValueHolders());
  }

  private UIComponent getForComponent() {
    String forValue = getFor();
View Full Code Here

    private boolean visitComponents(Iterator<UIComponent> components, VisitContext context, VisitCallback callback) {

        while (components.hasNext()) {
            UIComponent nextChild = components.next();

            if (nextChild.visitTree(context, callback)) {
                return true;
            }
        }

        return false;
View Full Code Here

                    Iterator<UIComponent> dataChildrenItr = dataChildren();

                    while (dataChildrenItr.hasNext()) {
                        UIComponent dataChild = dataChildrenItr.next();

                        if (dataChild.visitTree(visitContext, callback)) {
                            visitResult = true;

                            return DataVisitResult.STOP;
                        }
                    }
View Full Code Here

        UIComponent root = (UIComponent) event.getSource();
        FacesContext jsf = FacesContext.getCurrentInstance();
        EnumSet<VisitHint> hints = EnumSet.of(VisitHint.SKIP_ITERATION);
        VisitContext visitContext = VisitContext.createVisitContext(jsf, null, hints);

        root.visitTree(visitContext, new ValidateFormNestingCallback());
    }

    static class ValidateFormNestingCallback implements VisitCallback {

        // report missing form problem only once
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.