Package javax.faces.component

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


      int ordinal = event.getPhaseId().getOrdinal();
      if (ordinal == PhaseId.ANY_PHASE.getOrdinal() || ordinal == phaseIdOrdinal) {
        UIComponent source = event.getComponent();
        try {
          processedEvents.add(event);
          source.broadcast(event);
        } catch (AbortProcessingException e) {
          abort = true;
          break;
        }
      }
View Full Code Here


      int ordinal = event.getPhaseId().getOrdinal();
      if (ordinal == ANY_PHASE_ORDINAL
          || ordinal == phaseIdOrdinal) {
        UIComponent source = event.getComponent();
        try {
          source.broadcast(event);
        } catch (AbortProcessingException e) {
          // abort event processing
          // Page 3-30 of JSF 1.1 spec: "Throw an AbortProcessingException, to tell the JSF implementation
          //  that no further broadcast of this event, or any further events, should take place."
          abort = true;
View Full Code Here

      FacesEvent event = listiterator.next();
      int ordinal = event.getPhaseId().getOrdinal();
      if (ordinal == PhaseId.ANY_PHASE.getOrdinal() || ordinal == phaseIdOrdinal) {
        UIComponent source = event.getComponent();
        try {
          source.broadcast(event);
        } catch (FacesException e) {
          Throwable fe = e;
          while (fe != null) {
            if (fe instanceof AbortProcessingException) {
              if (LOG.isTraceEnabled()) {
View Full Code Here

        WrapperEvent wrapperEvent = (WrapperEvent) event;
        FacesEvent originalEvent = wrapperEvent.getFacesEvent();
        UIComponent originalSource = (UIComponent) originalEvent.getSource();
        setRowKey(wrapperEvent.getRowKey());
       
        originalSource.broadcast(originalEvent);
    }
   
    @Override
    public void processDecodes(FacesContext context) {
        pushComponentToEL(context, this);
View Full Code Here

      int ordinal = event.getPhaseId().getOrdinal();
      if (ordinal == ANY_PHASE_ORDINAL
          || ordinal == phaseIdOrdinal) {
        UIComponent source = event.getComponent();
        try {
          source.broadcast(event);
        } catch (FacesException e) {
          Throwable fe = e;
          while (fe != null) {
            if (fe instanceof AbortProcessingException) {
              if (LOG.isTraceEnabled()) {
View Full Code Here

      final FacesEvent event = listiterator.next();
      final int ordinal = event.getPhaseId().getOrdinal();
      if (ordinal == PhaseId.ANY_PHASE.getOrdinal() || ordinal == phaseIdOrdinal) {
        final UIComponent source = event.getComponent();
        try {
          source.broadcast(event);
        } catch (final FacesException e) {
          Throwable fe = e;
          while (fe != null) {
            if (fe instanceof AbortProcessingException) {
              if (LOG.isTraceEnabled()) {
View Full Code Here

  while (havePhaseEvents) {
      try {
    event = (FacesEvent) phaseEventsQueue.remove();
    UIComponent source = event.getComponent();
    try {
        source.broadcast(event);
    } catch (AbortProcessingException e) {
        // abort event processing
        // Page 3-30 of JSF 1.1 spec: "Throw an
        // AbortProcessingException, to tell the JSF
        // implementation
View Full Code Here

      final FacesEvent event = listiterator.next();
      final int ordinal = event.getPhaseId().getOrdinal();
      if (ordinal == PhaseId.ANY_PHASE.getOrdinal() || ordinal == phaseIdOrdinal) {
        final UIComponent source = event.getComponent();
        try {
          source.broadcast(event);
        } catch (final FacesException e) {
          Throwable fe = e;
          while (fe != null) {
            if (fe instanceof AbortProcessingException) {
              if (LOG.isTraceEnabled()) {
View Full Code Here

    while (havePhaseEvents) {
      try {
        event = (FacesEvent) phaseEventsQueue.remove();
        UIComponent source = event.getComponent();
        try {
          source.broadcast(event);
        } catch (AbortProcessingException e) {
          if (_log.isErrorEnabled()) {
            UIComponent component = event.getComponent();
            String id = null != component ? component
                .getClientId(context) : "";
View Full Code Here

            if (eventPhaseId.compareTo(PhaseId.ANY_PHASE) != 0 && eventPhaseId.compareTo(phaseId) != 0)
                continue;
            events.remove(event);
            UIComponent source = event.getComponent();
            try {
                source.broadcast(event);
            } catch (AbortProcessingException e) {
                break;
            }
        }
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.