Package org.openfaces.renderkit

Examples of org.openfaces.renderkit.AjaxPortionRenderer


    ) throws IOException {
        RenderKitFactory factory = (RenderKitFactory) FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
        RenderKit renderKit = factory.getRenderKit(context, context.getViewRoot().getRenderKitId());
        Renderer renderer = renderKit.getRenderer(component.getFamily(), component.getRendererType());
        JSONObject customJSONParam = AjaxUtil.getCustomJSONParam(context, request);
        AjaxPortionRenderer ajaxComponentRenderer = (AjaxPortionRenderer) renderer;
        for (String nextId : updatePortions) {
            StringBuilder portionOutput;
            JSONObject responseData;
            StringWriter stringWriter = new StringWriter();
            ResponseWriter originalWriter = substituteResponseWriter(context, request, stringWriter);
            try {
                responseData = ajaxComponentRenderer.encodeAjaxPortion(context, component, nextId, customJSONParam);
                portionOutput = new StringBuilder(stringWriter.toString());
            } catch (JSONException e) {
                throw new RuntimeException(e);
            } finally {
                restoreWriter(context, originalWriter);
View Full Code Here

TOP

Related Classes of org.openfaces.renderkit.AjaxPortionRenderer

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.