Examples of endUpdate()


Examples of javax.faces.context.PartialResponseWriter.endUpdate()

                        if (comp instanceof javax.faces.component.html.HtmlBody)
                        {
                            comp.encodeAll (_facesContext);
                        }
                    }
                    writer.endUpdate();
                }
                else
                {
                    VisitContext visitCtx = VisitContext.createVisitContext(_facesContext, renderIds, hints);
                    viewRoot.visitTree(visitCtx, new PhaseAwareVisitCallback(_facesContext, phaseId));
View Full Code Here

Examples of javax.faces.context.PartialResponseWriter.endUpdate()

            String viewState = _facesContext.getApplication().getStateManager().getViewState(_facesContext);
            if (viewState != null)
            {
                writer.startUpdate(PartialResponseWriter.VIEW_STATE_MARKER);
                writer.write(viewState);
                writer.endUpdate();
            }
        } catch (IOException ex) {
            Logger log = Logger.getLogger(PartialViewContextImpl.class.getName());
            if (log.isLoggable(Level.SEVERE)) {
                log.log(Level.SEVERE, "" , ex);
View Full Code Here

Examples of javax.faces.context.PartialResponseWriter.endUpdate()

                    log.log(Level.SEVERE, "IOException for rendering component", ex);
                }
            } finally {
                if (inUpdate) {
                    try {
                        writer.endUpdate();
                    } catch (IOException ex) {
                        Logger log = Logger.getLogger(PartialViewContextImpl.class.getName());
                        if (log.isLoggable(Level.SEVERE)) {
                            log.log(Level.SEVERE, "IOException for rendering component, stopping update rendering", ex);
                        }
View Full Code Here

Examples of javax.faces.context.PartialResponseWriter.endUpdate()

        if (SELECTION_META_COMPONENT_ID.equals(metaComponentId)) {
            PartialResponseWriter writer = context.getPartialViewContext().getPartialResponseWriter();

            writer.startUpdate(getSelectionStateInputId(context, component));
            encodeSelectionStateInput(context, component);
            writer.endUpdate();

            JSFunction function = new JSFunction("RichFaces.component", component.getClientId(context));

            ExtendedPartialViewContext partialContext = ExtendedPartialViewContext.getInstance(context);
            partialContext.appendOncomplete(function.toScript() + ".__updateSelectionFromInput();");
View Full Code Here

Examples of javax.faces.context.PartialResponseWriter.endUpdate()

            ResponseWriter responseWriter = context.getResponseWriter();
            responseWriter.startElement(HtmlConstants.DIV_ELEM, component);
            responseWriter.writeAttribute(HtmlConstants.ID_ATTRIBUTE, component.getClientId() + "Items", null);
            this.encodeItems(context, component, clientSelectItems);
            responseWriter.endElement(HtmlConstants.DIV_ELEM);
            partialWriter.endUpdate();

            if (!clientSelectItems.isEmpty()) {
                Map<String, Object> dataMap = ExtendedPartialViewContext.getInstance(context).getResponseComponentDataMap();
                dataMap.put(component.getClientId(context), clientSelectItems);
            }
View Full Code Here

Examples of javax.faces.context.PartialResponseWriter.endUpdate()

            PartialResponseWriter partialResponseWriter = context.getPartialViewContext().getPartialResponseWriter();
            partialResponseWriter.startUpdate(state.getStateClientId(context, component));

            state.encodeStateForMetaComponent(context, component, PARTIAL_ENCODER);

            partialResponseWriter.endUpdate();
        } else {
            throw new IllegalArgumentException(metaComponentId);
        }
    }
View Full Code Here

Examples of javax.faces.context.PartialResponseWriter.endUpdate()

                    AbstractTabPanel panel = (AbstractTabPanel) component;
                    PartialResponseWriter w = context.getPartialViewContext().getPartialResponseWriter();
                    String id = component.getClientId() + AbstractTabPanel.HEADER_META_COMPONENT;
                    w.startUpdate(id);
                    writeTabsLine(w, context, panel);
                    w.endUpdate();
                } else {
                    super.encodeMetaComponent(context, component, metaComponentId);
                }
        }
View Full Code Here

Examples of javax.faces.context.PartialResponseWriter.endUpdate()

            for (UIComponent child : tooltip.getChildren()) {
                child.encodeAll(context);
            }
            encodeContentEnd(writer, context, tooltip);

            writer.endUpdate();
        }
    }

    public void decodeMetaComponent(FacesContext context, UIComponent component, String metaComponentId) {
        throw new UnsupportedOperationException();
View Full Code Here

Examples of javax.faces.context.PartialResponseWriter.endUpdate()

    {
      rw.startDocument();

      rw.startUpdate(PartialResponseWriter.RENDER_ALL_MARKER);
      _renderChildren(context, viewRoot);
      rw.endUpdate();

      //write out JSF state
      rw.startUpdate(PartialResponseWriter.VIEW_STATE_MARKER);
      String state = context.getApplication().getStateManager().getViewState(context);
      rw.write(state);
View Full Code Here

Examples of javax.faces.context.PartialResponseWriter.endUpdate()

      //write out JSF state
      rw.startUpdate(PartialResponseWriter.VIEW_STATE_MARKER);
      String state = context.getApplication().getStateManager().getViewState(context);
      rw.write(state);
      rw.endUpdate();

      rw.endDocument();
    }
    catch(IOException e)
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.