Package org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation

Examples of org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.WindowContextIdHolderComponent


            //return null to force a new window id - e.g. in case of #{currentWindow.useNewId}
            return null;
        }

        //try to restore id from component
        WindowContextIdHolderComponent windowContextIdHolder = getWindowContextIdHolderComponent(facesContext);

        if (windowContextIdHolder != null)
        {
            //TODO cache for request
            id = windowContextIdHolder.getWindowContextId();

            if(id != null && !cacheWindowId(externalContext, id, allowUnknownWindowIds))
            {
                id = null;
            }

            if(id != null)
            {
                requestMap.put(WindowContextManager.WINDOW_CONTEXT_ID_PARAMETER_KEY,
                               windowContextIdHolder.getWindowContextId());
            }
        }

        return id;
    }
View Full Code Here


    private static WindowContextIdHolderComponent createComponentWithCurrentWindowContextId()
    {
        WindowContextManager conversationManager = CodiUtils.getContextualReferenceByClass(WindowContextManager.class);

        return new WindowContextIdHolderComponent(conversationManager.getCurrentWindowContext().getId());
    }
View Full Code Here

            //return null to force a new window id - e.g. in case of #{currentWindow.useNewId}
            return null;
        }

        //try to restore id from component
        WindowContextIdHolderComponent windowContextIdHolder = getWindowContextIdHolderComponent(facesContext);

        if (windowContextIdHolder != null)
        {
            //TODO cache for request
            id = windowContextIdHolder.getWindowContextId();

            if(id != null && !cacheWindowId(externalContext, id, allowUnknownWindowIds))
            {
                id = null;
            }

            if(id != null)
            {
                requestMap.put(WindowContextManager.WINDOW_CONTEXT_ID_PARAMETER_KEY,
                               windowContextIdHolder.getWindowContextId());
            }
        }

        return id;
    }
View Full Code Here

    private static WindowContextIdHolderComponent createComponentWithCurrentWindowContextId()
    {
        WindowContextManager conversationManager = CodiUtils.getContextualReferenceByClass(WindowContextManager.class);

        return new WindowContextIdHolderComponent(conversationManager.getCurrentWindowContext().getId());
    }
View Full Code Here

            //return null to force a new window id - e.g. in case of #{currentWindow.useNewId}
            return null;
        }

        //try to restore id from component
        WindowContextIdHolderComponent windowContextIdHolder = getWindowContextIdHolderComponent(facesContext);

        if (windowContextIdHolder != null)
        {
            //TODO cache for request
            id = windowContextIdHolder.getWindowContextId();

            if(id != null && !cacheWindowId(externalContext, id, allowUnknownWindowIds))
            {
                id = null;
            }

            if(id != null)
            {
                requestMap.put(WindowContextManager.WINDOW_CONTEXT_ID_PARAMETER_KEY,
                               windowContextIdHolder.getWindowContextId());
            }
        }

        return id;
    }
View Full Code Here

    private static WindowContextIdHolderComponent createComponentWithCurrentWindowContextId()
    {
        WindowContextManager conversationManager = CodiUtils.getContextualReferenceByClass(WindowContextManager.class);

        return new WindowContextIdHolderComponent(conversationManager.getCurrentWindowContext().getId());
    }
View Full Code Here

            //return null to force a new window id - e.g. in case of #{currentWindow.useNewId}
            return null;
        }

        //try to restore id from component
        WindowContextIdHolderComponent windowContextIdHolder = getWindowContextIdHolderComponent(facesContext);

        if (windowContextIdHolder != null)
        {
            //TODO cache for request
            id = windowContextIdHolder.getWindowContextId();

            if(id != null && !cacheWindowId(externalContext, id, allowUnknownWindowIds))
            {
                id = null;
            }

            if(id != null)
            {
                requestMap.put(WindowContextManager.WINDOW_CONTEXT_ID_PARAMETER_KEY,
                               windowContextIdHolder.getWindowContextId());
            }
        }

        return id;
    }
View Full Code Here

    private static WindowContextIdHolderComponent createComponentWithCurrentWindowContextId()
    {
        WindowContextManager conversationManager = CodiUtils.getContextualReferenceByClass(WindowContextManager.class);

        return new WindowContextIdHolderComponent(conversationManager.getCurrentWindowContext().getId());
    }
View Full Code Here

            //return null to force a new window id - e.g. in case of #{currentWindow.useNewId}
            return null;
        }

        //try to restore id from component
        WindowContextIdHolderComponent windowContextIdHolder = getWindowContextIdHolderComponent(facesContext);

        if (windowContextIdHolder != null)
        {
            //TODO cache for request
            id = windowContextIdHolder.getWindowContextId();

            if(id != null && !cacheWindowId(externalContext, id, allowUnknownWindowIds))
            {
                id = null;
            }

            if(id != null)
            {
                requestMap.put(WindowContextManager.WINDOW_CONTEXT_ID_PARAMETER_KEY,
                               windowContextIdHolder.getWindowContextId());
            }
        }

        return id;
    }
View Full Code Here

    private static WindowContextIdHolderComponent createComponentWithCurrentWindowContextId()
    {
        WindowContextManager conversationManager = CodiUtils.getContextualReferenceByClass(WindowContextManager.class);

        return new WindowContextIdHolderComponent(conversationManager.getCurrentWindowContext().getId());
    }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.WindowContextIdHolderComponent

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.