protected void doEncodeChildren(FacesContext context) throws IOException { super.encodeChildren(context); }
public void encodeChildren(FacesContext context) throws IOException { StringTokenizer tokenizer = new StringTokenizer(getFor(), ","); while(tokenizer.hasMoreTokens()) { if(isMessageForId(tokenizer.nextToken().trim())) { super.encodeChildren(context); break; } } }
@Override public void encodeChildren(final FacesContext context) throws IOException { if (logger.isDebugEnabled()) { logger.debug("Entered encodeChildren for class: " + this.getClass() ); } for (Object o : getChildren()) { UIComponentBase c = (UIComponentBase) o; c.encodeBegin(context); c.encodeChildren(context); c.encodeEnd(context); } if (logger.isDebugEnabled()) { logger.debug("Exited encodeChildren for class: " + this.getClass()); } }
@Override public void encodeChildren(final FacesContext context) throws IOException { if (logger.isDebugEnabled()) { logger.debug("Entered encodeChildren for class: " + this.getClass() ); } for (Object o : getChildren()) { UIComponentBase c = (UIComponentBase) o; c.encodeBegin(context); c.encodeChildren(context); c.encodeEnd(context); } if (logger.isDebugEnabled()) { logger.debug("Exited encodeChildren for class: " + this.getClass()); } }
/** * <p class="changed_added_2_0">If {@link * javax.faces.context.PartialViewContext#isAjaxRequest} returns * <code>true</code>, perform partial rendering by calling * {@link javax.faces.context.PartialViewContext#processPartial} with * {@link PhaseId#RENDER_RESPONSE}. If {@link * javax.faces.context.PartialViewContext#isAjaxRequest} returns * <code>false</code>, delegate to the parent {@link * javax.faces.component.UIComponentBase#encodeChildren} method.</p> * * @since 2.0 */ @Override public void encodeChildren(FacesContext context) throws IOException { if (context.getPartialViewContext().isAjaxRequest()) { context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context); } }
/** * <p class="changed_added_2_0">If {@link * javax.faces.context.PartialViewContext#isAjaxRequest} returns * <code>true</code>, perform partial rendering by calling * {@link javax.faces.context.PartialViewContext#processPartial} with * {@link PhaseId#RENDER_RESPONSE}. If {@link * javax.faces.context.PartialViewContext#isAjaxRequest} returns * <code>false</code>, delegate to the parent {@link * javax.faces.component.UIComponentBase#encodeChildren} method.</p> * * @since 2.0 */ @Override public void encodeChildren(FacesContext context) throws IOException { if (context.getPartialViewContext().isAjaxRequest()) { context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context); } }
/** * <p class="changed_added_2_0">If {@link * javax.faces.context.PartialViewContext#isAjaxRequest} returns * <code>true</code>, perform partial rendering by calling * {@link javax.faces.context.PartialViewContext#processPartial} with * {@link PhaseId#RENDER_RESPONSE}. If {@link * javax.faces.context.PartialViewContext#isAjaxRequest} returns * <code>false</code>, delegate to the parent {@link * javax.faces.component.UIComponentBase#encodeChildren} method.</p> * * @since 2.0 */ @Override public void encodeChildren(FacesContext context) throws IOException { if (context.getPartialViewContext().isAjaxRequest()) { context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context); } }
/** * @since 2.0 */ @Override public void encodeChildren(FacesContext context) throws IOException { if (context.getResponseComplete()) { return; } PartialViewContext pContext = context.getPartialViewContext(); // If PartialViewContext.isAjaxRequest() returns true if (pContext.isAjaxRequest()) { // Perform partial rendering by calling PartialViewContext.processPartial() with PhaseId.RENDER_RESPONSE. //sectin 13.4.3 of the jsf2 specification pContext.processPartial(PhaseId.RENDER_RESPONSE); } else { // If PartialViewContext.isAjaxRequest() returns false // delegate to super.encodeChildren(javax.faces.context.FacesContext) method. super.encodeChildren(context); } }
/** * Helper method to delegate the processing further to the {@link UIComponentBase} superclass which will handle * all children. * @param context The faces context to work with. * @param phaseId The current phase ID. */ protected void processSuper(FacesContext context, PhaseId phaseId) { if (phaseId == PhaseId.APPLY_REQUEST_VALUES) { super.processDecodes(context); } else if (phaseId == PhaseId.PROCESS_VALIDATIONS) { super.processValidators(context); } else if (phaseId == PhaseId.UPDATE_MODEL_VALUES) { super.processUpdates(context); } else if (phaseId == PhaseId.RENDER_RESPONSE) { try { super.encodeChildren(context); } catch (IOException e) { throw new FacesException(e); } } }
context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context);
/** * Helper method to delegate the processing further to the {@link UIComponentBase} superclass which will handle * all children. * @param context The faces context to work with. * @param phaseId The current phase ID. */ protected void processSuper(FacesContext context, PhaseId phaseId) { if (phaseId == PhaseId.APPLY_REQUEST_VALUES) { super.processDecodes(context); } else if (phaseId == PhaseId.PROCESS_VALIDATIONS) { super.processValidators(context); } else if (phaseId == PhaseId.UPDATE_MODEL_VALUES) { super.processUpdates(context); } else if (phaseId == PhaseId.RENDER_RESPONSE) { try { super.encodeChildren(context); } catch (IOException e) { throw new FacesException(e); } } }
context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context);
context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context);
context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context);
context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context);
context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context);
context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE); } else { super.encodeChildren(context);
this.encodeChildren(context);