@Override public void decode(FacesContext context, UIComponent component) { getWrapped().decode(context, component); }
@Override public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException { Map<Object, Object> attributes = facesContext.getAttributes(); attributes.put(RENDERING_HEAD_SECTION_KEY, true); super.encodeBegin(facesContext, component); }
@Override public void encodeEnd(FacesContext facesContext, UIComponent component) throws IOException { super.encodeEnd(facesContext, component); Map<Object, Object> attributes = facesContext.getAttributes(); attributes.remove(RENDERING_HEAD_SECTION_KEY); }
@Override public void encodeChildren(FacesContext facesContext, UIComponent uiComponent) throws IOException { ExternalContext externalContext = facesContext.getExternalContext(); ResourceVerifier resourceVerifier = ResourceVerifierFactory.getResourceVerifierInstance(externalContext); if (resourceVerifier.isDependencySatisfied(facesContext, uiComponent)) { if (logger.isDebugEnabled()) { Map<String, Object> componentResourceAttributes = uiComponent.getAttributes(); logger.debug( "Resource dependency already satisfied: name=[{0}] library=[{1}] rendererType=[{2}] value=[{3}] className=[{4}]", componentResourceAttributes.get("name"), componentResourceAttributes.get("library"), uiComponent.getRendererType(), getComponentValue(uiComponent), uiComponent.getClass().getName()); } } else { super.encodeChildren(facesContext, uiComponent); } }
@Override public void encodeEnd(FacesContext context, UIComponent component) throws IOException { getWrapped().encodeEnd(context, component); }
@Override public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException { ExternalContext externalContext = facesContext.getExternalContext(); ResourceVerifier resourceVerifier = ResourceVerifierFactory.getResourceVerifierInstance(externalContext); if (resourceVerifier.isDependencySatisfied(facesContext, uiComponent)) { if (logger.isDebugEnabled()) { Map<String, Object> componentResourceAttributes = uiComponent.getAttributes(); logger.debug( "Resource dependency already satisfied: name=[{0}] library=[{1}] rendererType=[{2}] value=[{3}] className=[{4}]", componentResourceAttributes.get("name"), componentResourceAttributes.get("library"), uiComponent.getRendererType(), getComponentValue(uiComponent), uiComponent.getClass().getName()); } } else { super.encodeEnd(facesContext, uiComponent); } }
@Override public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException { ExternalContext externalContext = facesContext.getExternalContext(); ResourceVerifier resourceVerifier = ResourceVerifierFactory.getResourceVerifierInstance(externalContext); if (resourceVerifier.isDependencySatisfied(facesContext, uiComponent)) { if (logger.isDebugEnabled()) { Map<String, Object> componentResourceAttributes = uiComponent.getAttributes(); logger.debug( "Resource dependency already satisfied: name=[{0}] library=[{1}] rendererType=[{2}] value=[{3}] className=[{4}]", componentResourceAttributes.get("name"), componentResourceAttributes.get("library"), uiComponent.getRendererType(), getComponentValue(uiComponent), uiComponent.getClass().getName()); } } else { super.encodeBegin(facesContext, uiComponent); } }
@Override public void decode(FacesContext context, UIComponent component) { getWrapped().decode(context, component); }
@Override public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException { boolean ajaxRequest = facesContext.getPartialViewContext().isAjaxRequest(); ResponseWriter responseWriter = facesContext.getResponseWriter(); if (!ajaxRequest) { BodyScriptEncodingResponseWriter bodyScriptEncodingResponseWriter = new BodyScriptEncodingResponseWriter( responseWriter, facesContext); facesContext.setResponseWriter(bodyScriptEncodingResponseWriter); } super.encodeEnd(facesContext, uiComponent); if (!ajaxRequest) { facesContext.setResponseWriter(responseWriter); } }
super.encodeBegin(facesContext, uiComponent); nonAjaxPartialActionURL); facesContext.setResponseWriter(primeFacesResponseWriter); super.encodeBegin(facesContext, uiComponent); facesContext.setResponseWriter(responseWriter); super.encodeBegin(facesContext, uiComponent);
public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException { return getWrapped().getConvertedValue(context, component, submittedValue); }
super.encodeBegin(facesContext, uiComponent); nonAjaxPartialActionURL); facesContext.setResponseWriter(primeFacesResponseWriter); super.encodeBegin(facesContext, uiComponent); facesContext.setResponseWriter(responseWriter); super.encodeBegin(facesContext, uiComponent);
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { getWrapped().encodeBegin(context, component); }
@Override public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException { return getWrapped().getConvertedValue(context, component, submittedValue); }
super.encodeEnd(facesContext, uiComponentResource);
@Override public void encodeChildren(FacesContext context, UIComponent component) throws IOException { getWrapped().encodeChildren(context, component); }
@Override public boolean getRendersChildren() { return getWrapped().getRendersChildren(); }
@Override public String convertClientId(FacesContext context, String clientId) { return getWrapped().convertClientId(context, clientId); }