Package org.richfaces.component

Examples of org.richfaces.component.AbstractAttachQueue


            attachQueueStack.pop();

            BehaviorInfo behaviorInfo = ajaxBehaviors.popBehavior();
            if (behaviorInfo != null) {
                if (isWrapping()) {
                    AbstractAttachQueue attachQueue = attachQueueInfo.getAttachQueue();
                    if (attachQueue != null) {
                        List<ClientBehavior> behaviors = behaviorInfo.getBehaviors();
                        if (behaviors != null) {
                            for (ClientBehavior processBehavior : behaviors) {
                                if (processBehavior instanceof AjaxBehavior) {
                                    AjaxBehavior createdAjaxBehavior = (AjaxBehavior) processBehavior;
                                    attachQueue.associateWith(createdAjaxBehavior);
                                }
                            }
                        }
                    }
                } else {
                    AbstractAttachQueue attachQueue = attachQueueInfo.getAttachQueue();
                    if (attachQueue != null) {
                        attachQueue.associateWith(ajaxBehavior);
                    }

                    applyNested(ctx, parent, ajaxBehavior);
                }
            } else {
View Full Code Here


    @Override
    public void onComponentCreated(FaceletContext ctx, UIComponent c, UIComponent parent) {
        super.onComponentCreated(ctx, c, parent);

        AbstractAttachQueue attachQueue = ((AbstractAttachQueue) c);
        boolean associateWithParent = true;

        AttachQueueStack attachQueueStack = AttachQueueStack.getStack(ctx.getFacesContext(), false);
        if (attachQueueStack != null) {
            AttachQueueInfo attachQueueInfo = attachQueueStack.peek();
            if (attachQueueInfo != null) {
                UIComponent queueInfoParent = attachQueueInfo.getParentComponent();
                if (queueInfoParent.equals(parent)) {
                    attachQueueInfo.setAttachQueue(attachQueue);
                    associateWithParent = false;
                }
            }
        }

        if (associateWithParent) {
            attachQueue.associateWith(parent);
        }
    }
View Full Code Here

TOP

Related Classes of org.richfaces.component.AbstractAttachQueue

Copyright © 2018 www.massapicom. 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.