Package javax.faces.component

Examples of javax.faces.component.UIComponent.queueEvent()


    if (facesEvent.getComponent() == this
        && (facesEvent instanceof SheetStateChangeEvent
        || facesEvent instanceof PageActionEvent)) {
      facesEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
      parent.queueEvent(facesEvent);
    } else {
      final UIComponent source = facesEvent.getComponent();
      final UIComponent sourceParent = source.getParent();
      if (sourceParent.getParent() == this
          && source.getId() != null && source.getId().endsWith(SORTER_ID)) {
View Full Code Here


    UIComponent parent = getParent();
    if (parent == null)
      throw new IllegalStateException();

    parent.queueEvent(event);
  }

  // ----------------------------------------------- Lifecycle Phase Handlers

  @Override
View Full Code Here

    UIComponent parent = getParent();
    if (parent == null) {
      throw new IllegalStateException(
          "No parent component for queue event");
    } else {
      parent.queueEvent(event);
    }
  }

  public void broadcast(FacesEvent event) throws AbortProcessingException {
View Full Code Here

      UIComponent newComponent = (UIComponent)nc;
      AjaxEvent e = new AjaxEvent(newRoot);
      try {
//        newRoot.queueEvent(e);
        e = new AjaxEvent(newComponent);
        newComponent.queueEvent(e);
      } catch (Exception exc) {
        System.out.println("Cannot queue event: " + newComponent.getClass().getName());
      }
    }
View Full Code Here

      UIComponent newComponent = (UIComponent)nc;
      try {
        AjaxEvent e = new AjaxEvent(newRoot);
        newRoot.queueEvent(e);
        e = new AjaxEvent(newComponent);
        newComponent.queueEvent(e);
      } catch (Exception exc) {
        System.out.println("Cannot queue event: " + newComponent.getClass().getName());
      }
    }
View Full Code Here

    UIComponent parent = getParent();
    if (parent == null)
      throw new IllegalStateException();

    parent.queueEvent(event);
  }

  // ----------------------------------------------- Lifecycle Phase Handlers

  @Override
View Full Code Here

    UIComponent parent = getParent();
    if (parent == null)
      throw new IllegalStateException();

    parent.queueEvent(event);
  }

  // ----------------------------------------------- Lifecycle Phase Handlers

  @Override
View Full Code Here

        || facesEvent instanceof PageActionEvent)) {
      facesEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
      if (LOG.isInfoEnabled()) {
        LOG.info("queueEvent = '" + facesEvent + "'");
      }
      parent.queueEvent(facesEvent);
    } else {
      UIComponent source = facesEvent.getComponent();
      UIComponent sourceParent = source.getParent();
      if (sourceParent.getParent() == this
          && source.getId() != null && source.getId().endsWith(SORTER_ID)) {
View Full Code Here

    if (facesEvent.getComponent() == this
        && (facesEvent instanceof SheetStateChangeEvent
        || facesEvent instanceof PageActionEvent)) {
      facesEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
      parent.queueEvent(facesEvent);
    } else {
      UIComponent source = facesEvent.getComponent();
      UIComponent sourceParent = source.getParent();
      if (sourceParent.getParent() == this
          && source.getId() != null && source.getId().endsWith(SORTER_ID)) {
View Full Code Here

    UIComponent parent = getParent();
    if (parent == null)
      throw new IllegalStateException();

    parent.queueEvent(event);
  }

  // ----------------------------------------------- Lifecycle Phase Handlers

  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.