Examples of AjaxEvent


Examples of org.ajax4jsf.event.AjaxEvent

   */
  @Override
  @SuppressWarnings("unchecked")
  protected void doDecode(FacesContext context, UIComponent component) {
   
    new AjaxEvent(component).queue();
   
    ExternalContext externalContext = context.getExternalContext();
    Map<String, String> requestParameterMap = externalContext.getRequestParameterMap();
    String fileUploadIndicator = requestParameterMap.get(Filter.FILE_UPLOAD_INDICATOR);

View Full Code Here

Examples of org.ajax4jsf.event.AjaxEvent

    }
    Object ajaxParameter = paramMap.get(AJAX_PARAMETER_NAME);
    AjaxContainer ajaxContainer = (AjaxContainer) component;
    if (null != ajaxParameter && ajaxParameter.equals(clientId)) {
        ajaxContainer.setSubmitted(true);
        AjaxEvent event = new AjaxEvent(component);
        component.queueEvent(event);
    } else {
      ajaxContainer.setSubmitted(false);
    }
View Full Code Here

Examples of org.ajax4jsf.event.AjaxEvent

  }
  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

Examples of org.ajax4jsf.event.AjaxEvent

    }
   
    if(isSubmitted(context, component)){
            new ActionEvent(component).queue();
            if (UIPanelMenuGroup.EXPAND_MODE_AJAX.equals(getItemMode(component))) {
                new AjaxEvent(component).queue();
            }
    }
  }
View Full Code Here

Examples of org.ajax4jsf.event.AjaxEvent

    }

    if (requestParameterMap.get(clientId + CURRENT_DATE_PRELOAD) != null) {
      // TODO nick - nick - queue this event when ValueChangeEvent is
      // queued?
      new AjaxEvent(component).queue();

      AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
      if (ajaxContext.isAjaxRequest(context)) {
        ajaxContext.addAreasToProcessFromComponent(context, component);
      }
View Full Code Here

Examples of org.ajax4jsf.event.AjaxEvent

            new SwitchablePanelSwitchEvent(panel, null, eventTab).queue();
            new ActionEvent(eventTab).queue();

            if (UISwitchablePanel.AJAX_METHOD.equals(eventTab.getSwitchTypeOrDefault()))
            {
                new AjaxEvent(eventTab).queue();
            }
        } else {
            String newValue = (String) requestParameterMap.get(clientId);
           
            if (null != newValue) {
View Full Code Here

Examples of org.ajax4jsf.event.AjaxEvent

            if (!MenuComponent.MODE_NONE.equalsIgnoreCase(mode)) {

                ActionEvent actionEvent = new ActionEvent(menuItem);
               
                if(MenuComponent.MODE_AJAX.equalsIgnoreCase(mode)){
                new AjaxEvent(menuItem).queue();
               
                    if (AjaxRendererUtils.isAjaxRequest(context)) {
                       
                        AjaxContext.getCurrentInstance(context)
                            .addAreasToProcessFromComponent(context, menuItem);
View Full Code Here

Examples of org.ajax4jsf.event.AjaxEvent

  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

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

Examples of org.ajax4jsf.event.AjaxEvent

    }
    Object ajaxParameter = paramMap.get(AJAX_PARAMETER_NAME);
    AjaxContainer ajaxContainer = (AjaxContainer) component;
    if (null != ajaxParameter && ajaxParameter.equals(clientId)) {
        ajaxContainer.setSubmitted(true);
        AjaxEvent event = new AjaxEvent(component);
        component.queueEvent(event);
    } else {
      ajaxContainer.setSubmitted(false);
    }
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.