Пример #1
0
  /**
   * Process specified JSF life-cycle phase.
   *
   * @param context faces context.
   * @param phase current JSF life-cycle phase identifier.
   */
  private void process(FacesContext context, PhaseId phase) {
    if (!this.isRendered()) return;
    this.setIndex(null);

    if (this.getChildCount() > 0) {
      while (this.hasNext()) {
        this.next();
        if (PhaseId.APPLY_REQUEST_VALUES.equals(phase)) {
          super.processDecodes(context);
        } else if (PhaseId.PROCESS_VALIDATIONS.equals(phase)) {
          super.processValidators(context);
        } else if (PhaseId.UPDATE_MODEL_VALUES.equals(phase)) {
          super.processUpdates(context);
        }
      }
    }
    this.setIndex(null);
  }