Package org.ajax4jsf.event

Examples of org.ajax4jsf.event.AjaxEvent


   * @see org.ajax4jsf.renderkit.AjaxCommandRendererBase#doDecode(javax.faces.context.FacesContext,
   *      javax.faces.component.UIComponent)
   */
  @Override
  protected void doDecode(FacesContext facesContext, UIComponent uiComponent) {
    new AjaxEvent(uiComponent).queue();
    //uiComponent.queueEvent(new ActionEvent(uiComponent));
  }
View Full Code Here


  protected void doDecode(FacesContext facesContext, UIComponent uiComponent) {

    // super.decode must not be called, because value is handled here
    if (isSubmitted(facesContext, uiComponent)) {
      uiComponent.queueEvent(new ValidationEvent(uiComponent));
      uiComponent.queueEvent(new AjaxEvent(uiComponent));
      // Check areas for processing
      if (uiComponent instanceof AjaxComponent) {
        AjaxComponent ajaxComponent = (AjaxComponent) uiComponent;
        Set<String> toProcess = AjaxRendererUtils.asSet(ajaxComponent
            .getProcess());
View Full Code Here

      UITogglePanel panel = control.getPanel();

          new SwitchablePanelSwitchEvent(panel, null, control).queue();
     
        if (UITogglePanel.AJAX_METHOD.equals(panel.getSwitchType())) {
           new AjaxEvent(component).queue();
          
                // add regions specified in the "reRender" attribute of toggle
                // panel to rendered list of components
                AjaxRendererUtils.addRegionsFromComponent(control, context);
               
View Full Code Here

  }
  protected void doDecode(FacesContext context, UIComponent component) {
    if(isSubmitted(context, component)) {
      new ActionEvent(component).queue();
            if ("ajax".equals(getItemMode(component))) {
                new AjaxEvent(component).queue();
            }
    }
  }
View Full Code Here

            if (AjaxRendererUtils.isAjaxRequest(context)) {
                AjaxContext.getCurrentInstance(context)
                    .addAreasToProcessFromComponent(context, component);
            }
           
        new AjaxEvent(component).queue();
      }
    }
View Full Code Here

      ev.setPhaseId(PhaseId.PROCESS_VALIDATIONS);
      ev.queue();

      // TODO nick - nick - queue this event when ValueChangeEvent is
      // queued?
      new AjaxEvent(component).queue();
    }

    String selectedDateString = (String) requestParameterMap.get(clientId
        + "InputDate");
    if ( selectedDateString != null) {
View Full Code Here

      MethodBinding binding = getDragListener();
      if (binding != null) {
        binding.invoke(getFacesContext(), new Object[] {event});
      }

      new AjaxEvent(this).queue();
      new ActionEvent(this).queue();
    }
  }
View Full Code Here

    MethodBinding binding = null;

    if (event instanceof NodeExpandedEvent) {
      binding = eventsProducer.getChangeExpandListener();
      if (event instanceof AjaxExpandedEvent) {
        new AjaxEvent(event.getComponent()).queue();
      }
    } else if (event instanceof AjaxSelectedEvent) {
      if (eventsProducer.hasAjaxSubmitSelection()) {
        binding = eventsProducer.getNodeSelectListener();
        new AjaxEvent(event.getComponent()).queue();
      }
    } else if (event instanceof NodeSelectedEvent) {
      binding = eventsProducer.getNodeSelectListener();
    } else if (event instanceof DropEvent) {
      binding = eventsProducer.getDropListener();
View Full Code Here

  public void queueEvent(FacesEvent event) {
   
    if(event instanceof AjaxEvent){
      event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
    }else if(event instanceof SortEvent){
      new AjaxEvent(this).queue();
      event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
    }else if(event instanceof ScrollableGridViewEvent){
      event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
      new AjaxEvent(this).queue();
    }
    super.queueEvent(event);
  }
View Full Code Here

      MethodBinding binding = getDropListener();
      if (binding != null) {
        binding.invoke(getFacesContext(), new Object[] {event});
      }

      new AjaxEvent(this).queue();
      new ActionEvent(this).queue();
     
    }
  }
View Full Code Here

TOP

Related Classes of org.ajax4jsf.event.AjaxEvent

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.