Package com.sun.faces.util

Examples of com.sun.faces.util.OnOffResponseWrapper


            try {
                //
                // We re-enable response writing.
                //
                OnOffResponseWrapper onOffResponse = new OnOffResponseWrapper(ctx);
                onOffResponse.setEnabled(true);
                PartialResponseWriter writer = pvc.getPartialResponseWriter();
                ResponseWriter orig = ctx.getResponseWriter();
                ctx.getAttributes().put(ORIGINAL_WRITER, orig);
                ctx.setResponseWriter(writer);
View Full Code Here


        }
        // For requests intended to produce a partial response, we need prohibit
        // writing any content outside of the view itself (f:view).
        PartialViewContext partialViewContext = facesContext.getPartialViewContext();
        if (partialViewContext.isPartialRequest()) {
            OnOffResponseWrapper onOffResponse = new OnOffResponseWrapper(facesContext);
            onOffResponse.setEnabled(false);
        }
       
        try {

            ViewHandler vh = facesContext.getApplication().getViewHandler();
View Full Code Here

            try {
                //
                // We re-enable response writing.
                //
                OnOffResponseWrapper onOffResponse = new OnOffResponseWrapper(ctx);
                onOffResponse.setEnabled(true);
                PartialResponseWriter writer = getPartialResponseWriter();
                ResponseWriter orig = ctx.getResponseWriter();
                ctx.getAttributes().put(ORIGINAL_WRITER, orig);
                ctx.setResponseWriter(writer);
View Full Code Here

        }
        // For requests intended to produce a partial response, we need prohibit
        // writing any content outside of the view itself (f:view).
        PartialViewContext partialViewContext = facesContext.getPartialViewContext();
        if (partialViewContext.isAjaxRequest()) {
            OnOffResponseWrapper onOffResponse = new OnOffResponseWrapper(facesContext);
            onOffResponse.setEnabled(false);
        }
       
        try {

            ViewHandler vh = facesContext.getApplication().getViewHandler();
View Full Code Here

TOP

Related Classes of com.sun.faces.util.OnOffResponseWrapper

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.