Package javax.faces.event

Examples of javax.faces.event.FacesEvent


        boolean abort = false;

        int phaseIdOrdinal = phaseId.getOrdinal();
        for (ListIterator listiterator = _events.listIterator(); listiterator.hasNext();)
        {
            FacesEvent event = (FacesEvent) listiterator.next();
            int ordinal = event.getPhaseId().getOrdinal();
            if (ordinal == ANY_PHASE_ORDINAL ||
                ordinal == phaseIdOrdinal)
            {
                UIComponent source = event.getComponent();
                try
                {
                    source.broadcast(event);
                }
                catch (AbortProcessingException e)
View Full Code Here


     */
    public void broadcast(FacesEvent event) throws AbortProcessingException
    {
        if (event instanceof FacesEventWrapper)
        {
            FacesEvent originalEvent = ((FacesEventWrapper) event)
                    .getWrappedFacesEvent();
            int eventRowIndex = ((FacesEventWrapper) event).getRowIndex();
            int currentRowIndex = getRowIndex();
            setRowIndex(eventRowIndex);
            try
            {
              originalEvent.getComponent().broadcast(originalEvent);
            }
            finally
            {
              setRowIndex(currentRowIndex);
            }
View Full Code Here

    {
        makeAlias();

        if (event instanceof FacesEventWrapper)
        {
            FacesEvent originalEvent = ((FacesEventWrapper) event).getWrappedFacesEvent();
            originalEvent.getComponent().broadcast(originalEvent);
        }
        else
        {
            super.broadcast(event);
        }
View Full Code Here

    {
        makeAliases();

        if (event instanceof FacesEventWrapper)
        {
            FacesEvent originalEvent = ((FacesEventWrapper) event).getWrappedFacesEvent();
            originalEvent.getComponent().broadcast(originalEvent);
        }
        else
        {
            super.broadcast(event);
        }
View Full Code Here

        if (event instanceof FacesEventWrapper)
        {
            FacesEventWrapper childEvent = (FacesEventWrapper) event;
            String currNodeId = getNodeId();
            setNodeId(childEvent.getNodeId());
            FacesEvent nodeEvent = childEvent.getFacesEvent();
            nodeEvent.getComponent().broadcast(nodeEvent);
            setNodeId(currNodeId);
            return;
        }
        else if(event instanceof ToggleExpandedEvent)
        {
View Full Code Here

    @Override
    public void broadcast(FacesEvent event) throws AbortProcessingException
    {
        if (event instanceof FacesEventWrapper)
        {
            FacesEvent originalEvent = ((FacesEventWrapper) event).getWrappedFacesEvent();
            int eventRowIndex = ((FacesEventWrapper) event).getRowIndex();
            int currentRowIndex = getRowIndex();
            setRowIndex(eventRowIndex);
            try
            {
                originalEvent.getComponent().broadcast(originalEvent);
            }
            finally
            {
                setRowIndex(currentRowIndex);
            }
View Full Code Here

    @Override
    public void broadcast(FacesEvent event) throws AbortProcessingException
    {
        if (event instanceof FacesEventWrapper)
        {
            FacesEvent originalEvent = ((FacesEventWrapper) event).getWrappedFacesEvent();
            int eventRowIndex = ((FacesEventWrapper) event).getRowIndex();
            final int currentRowIndex = getRowIndex();
            UIComponent source = originalEvent.getComponent();
            UIComponent compositeParent = UIComponent.getCompositeComponentParent(source);

            setRowIndex(eventRowIndex);
            if (compositeParent != null)
            {
View Full Code Here

    Object oldRowKey = getRowKey();
    FacesContext faces = FacesContext.getCurrentInstance();
    captureOrigValue(faces);
    Object eventRowKey = revent.getKey();
    setRowKey(faces, eventRowKey);
    FacesEvent rowEvent = revent.getTarget();
    rowEvent.getComponent().broadcast(rowEvent);
    // For Ajax events, keep row value.
    if (!(rowEvent.getPhaseId() == PhaseId.RENDER_RESPONSE)) {
      this._ajaxRowKey = eventRowKey;
      // this._ajaxRowKeysMap.put(getBaseClientId(faces), eventRowKey);
    }
    setRowKey(faces, oldRowKey);
    restoreOrigValue(faces);
View Full Code Here

   */
  public FacesEvent remove() throws NoSuchElementException {
    if(isEmpty()){
      throw new NoSuchElementException("Events queue is empty");
    }
    FacesEvent element = first.getElement();
    first = first.getPrevisious();
    if(null == first){
      last = null;
    }
    return element;
View Full Code Here

                if (log.isDebugEnabled())
                {
                    log.debug("Queue AjaxRenderEvent for self-render of  AjaxContainer with Id "
                            + component.getId());
                }
                FacesEvent renderEvent = new AjaxRenderEvent(component);
                renderEvent.setPhaseId(event.getPhaseId());
                component.queueEvent(renderEvent);
              }
          }
          if (event instanceof AjaxRenderEvent) {
              FacesContext context = FacesContext.getCurrentInstance();
View Full Code Here

TOP

Related Classes of javax.faces.event.FacesEvent

Copyright © 2018 www.massapicom. 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.