Package org.apache.deltaspike.jsf.spi.scope.window.ClientWindowConfig

Examples of org.apache.deltaspike.jsf.spi.scope.window.ClientWindowConfig.ClientWindowRenderMode


        if (windowId != null)
        {
            return windowId;
        }
       
        ClientWindowRenderMode clientWindowRenderMode = clientWindowConfig.getClientWindowRenderMode(facesContext);
        if (ClientWindowRenderMode.NONE.equals(clientWindowRenderMode))
        {
            // if this request should not get any window detection then we are done
            windowId = DEFAULT_WINDOW_ID;
        }
View Full Code Here


    }

    @Override
    public void disableClientWindowRenderMode(FacesContext facesContext)
    {
        ClientWindowRenderMode clientWindowRenderMode = clientWindowConfig.getClientWindowRenderMode(facesContext);

        if (ClientWindowRenderMode.DELEGATED.equals(clientWindowRenderMode))
        {
            facesContext.getExternalContext().getClientWindow().disableClientWindowRenderMode(facesContext);
        }
View Full Code Here

    }

    @Override
    public void enableClientWindowRenderMode(FacesContext facesContext)
    {
        ClientWindowRenderMode clientWindowRenderMode = clientWindowConfig.getClientWindowRenderMode(facesContext);

        if (ClientWindowRenderMode.DELEGATED.equals(clientWindowRenderMode))
        {
            facesContext.getExternalContext().getClientWindow().enableClientWindowRenderMode(facesContext);
        }
View Full Code Here

    }

    @Override
    public boolean isClientWindowRenderModeEnabled(FacesContext facesContext)
    {
        ClientWindowRenderMode clientWindowRenderMode = clientWindowConfig.getClientWindowRenderMode(facesContext);

        if (ClientWindowRenderMode.LAZY.equals(clientWindowRenderMode))
        {
            Map<Object, Object> attrMap = facesContext.getAttributes();
            return  !attrMap.containsKey(PER_USE_CLIENT_WINDOW_URL_QUERY_PARAMETER_DISABLED_KEY);
View Full Code Here

    }

    @Override
    public Map<String, String> getQueryURLParameters(FacesContext facesContext)
    {
        ClientWindowRenderMode clientWindowRenderMode = clientWindowConfig.getClientWindowRenderMode(facesContext);

        if (ClientWindowRenderMode.LAZY.equals(clientWindowRenderMode))
        {
            String windowId = getWindowId(facesContext);
            if (windowId != null)
View Full Code Here

        if (windowId != null)
        {
            return windowId;
        }
       
        ClientWindowRenderMode clientWindowRenderMode = clientWindowConfig.getClientWindowRenderMode(facesContext);
        if (ClientWindowRenderMode.NONE.equals(clientWindowRenderMode))
        {
            // if this request should not get any window detection then we are done
            windowId = DEFAULT_WINDOW_ID;
        }
View Full Code Here

    }

    @Override
    public void disableClientWindowRenderMode(FacesContext facesContext)
    {
        ClientWindowRenderMode clientWindowRenderMode = clientWindowConfig.getClientWindowRenderMode(facesContext);

        if (ClientWindowRenderMode.DELEGATED.equals(clientWindowRenderMode))
        {
            facesContext.getExternalContext().getClientWindow().disableClientWindowRenderMode(facesContext);
        }
View Full Code Here

    }

    @Override
    public void enableClientWindowRenderMode(FacesContext facesContext)
    {
        ClientWindowRenderMode clientWindowRenderMode = clientWindowConfig.getClientWindowRenderMode(facesContext);

        if (ClientWindowRenderMode.DELEGATED.equals(clientWindowRenderMode))
        {
            facesContext.getExternalContext().getClientWindow().enableClientWindowRenderMode(facesContext);
        }
View Full Code Here

    }

    @Override
    public boolean isClientWindowRenderModeEnabled(FacesContext facesContext)
    {
        ClientWindowRenderMode clientWindowRenderMode = clientWindowConfig.getClientWindowRenderMode(facesContext);

        if (ClientWindowRenderMode.LAZY.equals(clientWindowRenderMode))
        {
            Map<Object, Object> attrMap = facesContext.getAttributes();
            return  !attrMap.containsKey(PER_USE_CLIENT_WINDOW_URL_QUERY_PARAMETER_DISABLED_KEY);
View Full Code Here

    }

    @Override
    public Map<String, String> getQueryURLParameters(FacesContext facesContext)
    {
        ClientWindowRenderMode clientWindowRenderMode = clientWindowConfig.getClientWindowRenderMode(facesContext);

        if (ClientWindowRenderMode.LAZY.equals(clientWindowRenderMode))
        {
            if (!facesContext.getAttributes().containsKey(CACHE_QUERY_URL_PARAMETERS))
            {
View Full Code Here

TOP

Related Classes of org.apache.deltaspike.jsf.spi.scope.window.ClientWindowConfig.ClientWindowRenderMode

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.