Package org.apache.myfaces.spi

Examples of org.apache.myfaces.spi.ViewScopeProvider


        }
        if (viewScopeProxyMap != null)
        {
            ViewScopeProviderFactory factory = ViewScopeProviderFactory.getViewScopeHandlerFactory(
                context.getExternalContext());
            ViewScopeProvider handler = factory.getViewScopeHandler(context.getExternalContext());
            viewCollection.put(context, serializeView(context, serializedView), nextKey, key,
                    handler, viewScopeProxyMap.getViewScopeId());
        }
        else
        {
View Full Code Here


            initContainerIntegration(servletContext, externalContext);
           
            ViewScopeProviderFactory factory = ViewScopeProviderFactory.getViewScopeHandlerFactory(
                externalContext);
           
            ViewScopeProvider viewScopeHandler = factory.getViewScopeHandler(
                externalContext);
           
            ManagedBeanDestroyerListener listener = (ManagedBeanDestroyerListener)
                externalContext.getApplicationMap().get(
                    ManagedBeanDestroyerListener.APPLICATION_MAP_KEY);
View Full Code Here

            initContainerIntegration(servletContext, externalContext);
           
            ViewScopeProviderFactory factory = ViewScopeProviderFactory.getViewScopeHandlerFactory(
                externalContext);
           
            ViewScopeProvider viewScopeHandler = factory.getViewScopeHandler(
                externalContext);
           
            ManagedBeanDestroyerListener listener = (ManagedBeanDestroyerListener)
                externalContext.getApplicationMap().get(
                    ManagedBeanDestroyerListener.APPLICATION_MAP_KEY);
View Full Code Here

            FacesContext facesContext = FacesContext.getCurrentInstance();
           
            ViewScopeProviderFactory factory = ViewScopeProviderFactory.getViewScopeHandlerFactory(
                facesContext.getExternalContext());
           
            ViewScopeProvider handler = factory.getViewScopeHandler(facesContext.getExternalContext());
           
            if (_viewScopeId == null)
            {
                _viewScopeId = handler.generateViewScopeId(facesContext);
                _delegate = handler.createViewScopeMap(facesContext, _viewScopeId);
            }
            else
            {
                _delegate = handler.restoreViewScopeMap(facesContext, _viewScopeId);
            }
        }
        return _delegate;
    }
View Full Code Here

    @Override
    public ViewScopeProvider getViewScopeHandler(ExternalContext externalContext)
    {
        // check for cached instance
        ViewScopeProvider returnValue = (ViewScopeProvider)
                externalContext.getApplicationMap().get(VIEW_SCOPE_HANDLER_INSTANCE_KEY);

        if (returnValue == null)
        {
            if (ExternalSpecifications.isCDIAvailable(externalContext))
View Full Code Here

TOP

Related Classes of org.apache.myfaces.spi.ViewScopeProvider

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.