Refine search
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#isAjaxRequest()} * on the wrapped {@link PartialViewContext} object.</p> * * @see javax.faces.context.PartialViewContext#isAjaxRequest() */ @Override public boolean isAjaxRequest() { return getWrapped().isAjaxRequest(); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#getRenderIds()} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#getRenderIds() */ @Override public Collection<String> getRenderIds() { return getWrapped().getRenderIds(); }
@Override public Collection<String> getExecuteIds() { return getWrapped().getExecuteIds(); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#getPartialResponseWriter()} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#getPartialResponseWriter() */ @Override public PartialResponseWriter getPartialResponseWriter() { return getWrapped().getPartialResponseWriter(); }
@Override public boolean isPartialRequest() { return getWrapped().isPartialRequest(); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#isRenderAll()} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#isRenderAll() */ @Override public boolean isRenderAll() { return getWrapped().isRenderAll(); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#processPartial(PhaseId)} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#processPartial(PhaseId) */ @Override public void processPartial(PhaseId phaseId) { getWrapped().processPartial(phaseId); }
@Override public void setPartialRequest(boolean isPartialRequest) { getWrapped().setPartialRequest(isPartialRequest); }
@Override public void setRenderAll(boolean renderAll) { getWrapped().setRenderAll(renderAll); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#isExecuteAll()} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#isExecuteAll() */ @Override public boolean isExecuteAll() { return getWrapped().isExecuteAll(); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#release()} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#release() */ @Override public void release() { getWrapped().release(); }
@Override public void processPartial(PhaseId phaseId) { // If processing a partial request during the "Apply Request Values" phase of the JSF lifecycle, then register // a callback that will save-off the values of the components that are visited in the tree-walk. if (phaseId == PhaseId.APPLY_REQUEST_VALUES) { VisitContextFactory visitContextFactory = (VisitContextFactory) FactoryFinder.getFactory( FactoryFinder.VISIT_CONTEXT_FACTORY); Collection<String> renderIds = wrappedPartialViewContext.getExecuteIds(); EnumSet<VisitHint> visitHints = EnumSet.of(VisitHint.EXECUTE_LIFECYCLE); VisitContext visitContext = visitContextFactory.getVisitContext(facesContext, renderIds, visitHints); VisitCallback visitCallback = new VisitCallbackApplyRequestValuesImpl(valueMap, validMap); facesContext.getViewRoot().visitTree(visitContext, visitCallback); } // Otherwise, if processing a partial request during the "Render Response" phase of the JSF lifecycle, then // register a callback that will remove extraneous FacesMessages for components that are visited in the // tree-walk. else if (phaseId == PhaseId.RENDER_RESPONSE) { VisitContextFactory visitContextFactory = (VisitContextFactory) FactoryFinder.getFactory( FactoryFinder.VISIT_CONTEXT_FACTORY); Collection<String> renderIds = wrappedPartialViewContext.getExecuteIds(); EnumSet<VisitHint> visitHints = EnumSet.of(VisitHint.EXECUTE_LIFECYCLE); VisitContext visitContext = visitContextFactory.getVisitContext(facesContext, renderIds, visitHints); VisitCallback visitCallback = new VisitCallbackRenderResponseImpl(facesContext, valueMap, validMap); facesContext.getViewRoot().visitTree(visitContext, visitCallback); } // Ask the delegation chain to continue partial request processing. super.processPartial(phaseId); }
@Override public void processPartial(PhaseId phaseId) { if (!EnvUtils.isICEfacesView(facesContext)) { wrapped.processPartial(phaseId); return; wrapped.processPartial(phaseId); return; wrapped.processPartial(phaseId); return; super.processPartial(phaseId);
@Override public boolean isResetValues() { return getWrapped().isResetValues(); }
public java.util.List<java.lang.String> getEvalScripts() { return getWrapped().getEvalScripts(); } }
@Override public void release() { assertNotReleased(); super.release(); if (facesContext != null && !facesContext.isReleased()) { setInstance(facesContext, null); } facesContext = null; released = true; wrappedViewContext.release(); wrappedViewContext = null; renderAll = null; executeIds = null; renderIds = null; limitRender = false; activatorComponentId = null; behaviorEvent = null; contextMode = null; }
private static OmniPartialViewContext unwrap(PartialViewContext context) { PartialViewContext unwrappedContext = context; while (!(unwrappedContext instanceof OmniPartialViewContext) && unwrappedContext instanceof PartialViewContextWrapper) { unwrappedContext = ((PartialViewContextWrapper) unwrappedContext).getWrapped(); } if (unwrappedContext instanceof OmniPartialViewContext) { return (OmniPartialViewContext) unwrappedContext; } else { return null; } }
@Override public PartialResponseWriter getPartialResponseWriter() { if (writer == null) { writer = new OmniPartialResponseWriter(this, super.getPartialResponseWriter()); } return writer; }
/** * An override which checks if the web.xml security constraint has been triggered during this ajax request * (which can happen when the session has been timed out) and if so, then perform a redirect to the originally * requested page. Otherwise the enduser ends up with an ajax response containing only the new view state * without any form of visual feedback. */ @Override public void processPartial(PhaseId phaseId) { if (phaseId == PhaseId.RENDER_RESPONSE && redirectToFormLoginPageIfNecessary()) { return; } super.processPartial(phaseId); }
/** * <p>The default behavior of this method is to * call {@link PartialViewContext#getRenderIds()} * on the wrapped {@link PartialViewContext} object.</p> * * @see PartialViewContext#getRenderIds() */ @Override public Collection<String> getRenderIds() { return getWrapped().getRenderIds(); }