예제 #1
0
 /*
  * (non-Javadoc)
  *
  * @see javax.faces.component.UIComponentBase#queueEvent(javax.faces.event.FacesEvent)
  */
 public void queueEvent(FacesEvent event) {
   if (event instanceof ActionEvent) {
     _commandBrige.queueEvent(event);
   } else {
     super.queueEvent(event);
   }
 }
예제 #2
0
  @Override
  public void queueEvent(FacesEvent event) {
    if (event instanceof ActionEvent) {
      if (event.getComponent() == this) {
        if (isImmediate()) {
          event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
        } else if (isBypassUpdates()) {
          event.setPhaseId(PhaseId.PROCESS_VALIDATIONS);
        } else {
          event.setPhaseId(PhaseId.INVOKE_APPLICATION);
        }
      }

      // UICommand set Phase ID for all ActionEvents - bypass it.
      getParent().queueEvent(event);
    } else {
      super.queueEvent(event);
    }
  }