@Override public void onComponentPopulated(FaceletContext faceletContext, UIComponent uiComponent, UIComponent parent) { super.onComponentPopulated(faceletContext, uiComponent, parent); Map<String, Object> attributes = parent.getAttributes(); Object value = attributes.get("value"); Object var = attributes.get("var"); // If not iterating over a DataModel, then if ((value == null) || (var == null)) { // If an implicit panel group doesn't yet exist, then create one. FacesContext facesContext = faceletContext.getFacesContext(); UIComponent implicitPanelGroup = uiComponent.getFacet(IMPLICIT_FACET_NAME); if (implicitPanelGroup == null) { implicitPanelGroup = createImplicitPanelGroup(facesContext, uiComponent.getId()); uiComponent.getFacets().put(IMPLICIT_FACET_NAME, implicitPanelGroup); } // Re-parent each child of the tab by adding it as a child of the implicit panel group. List<UIComponent> implicitPanelGroupChildren = implicitPanelGroup.getChildren(); Iterator<UIComponent> childIterator = uiComponent.getChildren().iterator(); while (childIterator.hasNext()) { UIComponent child = childIterator.next(); childIterator.remove(); implicitPanelGroupChildren.add(child); } } }
@Override public void onComponentPopulated(FaceletContext faceletContext, UIComponent uiComponent, UIComponent parent) { super.onComponentPopulated(faceletContext, uiComponent, parent); Map<String, Object> attributes = parent.getAttributes(); Object value = attributes.get("value"); Object var = attributes.get("var"); // If not iterating over a DataModel, then if ((value == null) || (var == null)) { // If an implicit panel group doesn't yet exist, then create one. FacesContext facesContext = faceletContext.getFacesContext(); UIComponent implicitPanelGroup = uiComponent.getFacet(IMPLICIT_FACET_NAME); if (implicitPanelGroup == null) { implicitPanelGroup = createImplicitPanelGroup(facesContext, uiComponent.getId()); uiComponent.getFacets().put(IMPLICIT_FACET_NAME, implicitPanelGroup); } // Re-parent each child of the tab by adding it as a child of the implicit panel group. List<UIComponent> implicitPanelGroupChildren = implicitPanelGroup.getChildren(); Iterator<UIComponent> childIterator = uiComponent.getChildren().iterator(); while (childIterator.hasNext()) { UIComponent child = childIterator.next(); childIterator.remove(); implicitPanelGroupChildren.add(child); } } }
@Override public void onComponentPopulated(FaceletContext faceletContext, UIComponent uiComponent, UIComponent parent) { super.onComponentPopulated(faceletContext, uiComponent, parent); Map<String, Object> attributes = parent.getAttributes(); Object value = attributes.get("value"); Object var = attributes.get("var"); // If not iterating over a DataModel, then if ((value == null) || (var == null)) { // If an implicit panel group doesn't yet exist, then create one. FacesContext facesContext = faceletContext.getFacesContext(); UIComponent implicitPanelGroup = uiComponent.getFacet(IMPLICIT_FACET_NAME); if (implicitPanelGroup == null) { implicitPanelGroup = createImplicitPanelGroup(facesContext, uiComponent.getId()); uiComponent.getFacets().put(IMPLICIT_FACET_NAME, implicitPanelGroup); } // Re-parent each child of the tab by adding it as a child of the implicit panel group. List<UIComponent> implicitPanelGroupChildren = implicitPanelGroup.getChildren(); Iterator<UIComponent> childIterator = uiComponent.getChildren().iterator(); while (childIterator.hasNext()) { UIComponent child = childIterator.next(); childIterator.remove(); implicitPanelGroupChildren.add(child); } } }
public void onComponentPopulated(FaceletContext ctx, UIComponent c, UIComponent parent) { FacesContext facesContext = ctx.getFacesContext(); BehaviorStack behaviorStack = BehaviorStack.getBehaviorStack(facesContext, false); if (behaviorStack != null && !behaviorStack.isEmpty()) { if (c instanceof ClientBehaviorHolder) { ClientBehaviorHolder behaviorHolder = (ClientBehaviorHolder) c; behaviorStack.addBehaviors(facesContext, behaviorHolder); } } componentHandler.onComponentPopulated(ctx, c, parent); }
@Override public void onComponentPopulated(FaceletContext faceletContext, UIComponent uiComponent, UIComponent parent) { super.onComponentPopulated(faceletContext, uiComponent, parent); Map<String, Object> attributes = parent.getAttributes(); Object value = attributes.get("value"); Object var = attributes.get("var"); // If not iterating over a DataModel, then if ((value == null) || (var == null)) { // If an implicit panel group doesn't yet exist, then create one. FacesContext facesContext = faceletContext.getFacesContext(); UIComponent implicitPanelGroup = uiComponent.getFacet(IMPLICIT_FACET_NAME); if (implicitPanelGroup == null) { implicitPanelGroup = createImplicitPanelGroup(facesContext, uiComponent.getId()); uiComponent.getFacets().put(IMPLICIT_FACET_NAME, implicitPanelGroup); } // Re-parent each child of the tab by adding it as a child of the implicit panel group. List<UIComponent> implicitPanelGroupChildren = implicitPanelGroup.getChildren(); Iterator<UIComponent> childIterator = uiComponent.getChildren().iterator(); while (childIterator.hasNext()) { UIComponent child = childIterator.next(); childIterator.remove(); implicitPanelGroupChildren.add(child); } } }
public void onComponentPopulated(FaceletContext ctx, UIComponent c, UIComponent parent) { FacesContext facesContext = ctx.getFacesContext(); BehaviorStack behaviorStack = BehaviorStack.getBehaviorStack(facesContext, false); if (behaviorStack != null && !behaviorStack.isEmpty()) { if (c instanceof ClientBehaviorHolder) { ClientBehaviorHolder behaviorHolder = (ClientBehaviorHolder) c; behaviorStack.addBehaviors(facesContext, behaviorHolder); } } componentHandler.onComponentPopulated(ctx, c, parent); }
public void onComponentPopulated(FaceletContext ctx, UIComponent c, UIComponent parent) { FacesContext facesContext = ctx.getFacesContext(); BehaviorStack behaviorStack = BehaviorStack.getBehaviorStack(facesContext, false); if (behaviorStack != null && !behaviorStack.isEmpty()) { if (c instanceof ClientBehaviorHolder) { ClientBehaviorHolder behaviorHolder = (ClientBehaviorHolder) c; behaviorStack.addBehaviors(facesContext, behaviorHolder); } } componentHandler.onComponentPopulated(ctx, c, parent); }
@Override public void onComponentPopulated(FaceletContext ctx, UIComponent c, UIComponent parent) { super.onComponentPopulated(ctx, c, parent); UIComponent defaultTreeNode = c.getFacet(DEFAULT_TREE_NODE_FACET_NAME); if (defaultTreeNode == null) { String var = ((AbstractTree) c).getVar(); if (Strings.isNullOrEmpty(var)) { return; } FacesContext facesContext = ctx.getFacesContext(); Application application = facesContext.getApplication(); AbstractTreeNode treeNode = (AbstractTreeNode) application.createComponent(AbstractTreeNode.COMPONENT_TYPE); treeNode.setId(DEFAULT_TREE_NODE_ID); c.getFacets().put(DEFAULT_TREE_NODE_FACET_NAME, treeNode); UIComponent text = application.createComponent(HtmlOutputText.COMPONENT_TYPE); text.setValueExpression( "value", application.getExpressionFactory().createValueExpression(facesContext.getELContext(), "#{" + var + "}", String.class)); treeNode.getChildren().add(text); } } }
@Override public void onComponentPopulated(FaceletContext ctx, UIComponent c, UIComponent parent) { super.onComponentPopulated(ctx, c, parent); UIComponent defaultTreeNode = c.getFacet(DEFAULT_TREE_NODE_FACET_NAME); if (defaultTreeNode == null) { String var = ((AbstractTree) c).getVar(); if (Strings.isNullOrEmpty(var)) { return; } FacesContext facesContext = ctx.getFacesContext(); Application application = facesContext.getApplication(); AbstractTreeNode treeNode = (AbstractTreeNode) application.createComponent(AbstractTreeNode.COMPONENT_TYPE); treeNode.setId(DEFAULT_TREE_NODE_ID); c.getFacets().put(DEFAULT_TREE_NODE_FACET_NAME, treeNode); UIComponent text = application.createComponent(HtmlOutputText.COMPONENT_TYPE); text.setValueExpression( "value", application.getExpressionFactory().createValueExpression(facesContext.getELContext(), "#{" + var + "}", String.class)); treeNode.getChildren().add(text); } } }
@Override public void onComponentPopulated(FaceletContext ctx, UIComponent c, UIComponent parent) { super.onComponentPopulated(ctx, c, parent);
_delegate.onComponentPopulated(ctx, c, parent);
_delegate.onComponentPopulated(ctx, c, parent);
_delegate.onComponentPopulated(ctx, c, oldParent);
owner.onComponentPopulated(ctx, c, parent);
owner.onComponentPopulated(ctx, c, parent);
owner.onComponentPopulated(ctx, c, parent);
owner.onComponentPopulated(ctx, c, parent);