Package org.ajax4jsf.component

Examples of org.ajax4jsf.component.AjaxContainer


          Messages.DECODE_AJAX_REQUEST_STATUS_INFO, clientId));
      // log.debug(Messages.getMessage(Messages.REQUEST_PARAMETERS_MAP,
      // paramMap.toString()));
    }
    Object ajaxParameter = paramMap.get(AJAX_PARAMETER_NAME);
    AjaxContainer ajaxContainer = (AjaxContainer) component;
    if (null != ajaxParameter && ajaxParameter.equals(clientId)) {
      ajaxContainer.setSubmitted(true);
      if (ajaxContainer.isSelfRendered()) {
        AjaxContext.getCurrentInstance(context).setSelfRender(true);
      }
      AjaxEvent event = new AjaxEvent(component);
      component.queueEvent(event);
    } else {
      ajaxContainer.setSubmitted(false);
    }

  }
View Full Code Here


          Messages.DECODE_AJAX_REQUEST_STATUS_INFO, clientId));
//      log.debug(Messages.getMessage(Messages.REQUEST_PARAMETERS_MAP,
//          paramMap.toString()));
    }
    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

          Messages.DECODE_AJAX_REQUEST_STATUS_INFO, clientId));
      log.debug(Messages.getMessage(Messages.REQUEST_PARAMETERS_MAP,
          paramMap.toString()));
    }
    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

   * @see javax.faces.render.Renderer#encodeBegin(javax.faces.context.FacesContext,
   *      javax.faces.component.UIComponent)
   */
  public void doEncodeBegin(ResponseWriter out, FacesContext context,
      UIComponent component) throws IOException {
    AjaxContainer ajax = (AjaxContainer) component;
    // ServletResponse response = (ServletResponse)
    // context.getExternalContext().getResponse();
    Map attributes = component.getAttributes();
    String format = (String) attributes.get("format");
    String contentType = null;
View Full Code Here

          Messages.DECODE_AJAX_REQUEST_STATUS_INFO, clientId));
//      log.debug(Messages.getMessage(Messages.REQUEST_PARAMETERS_MAP,
//          paramMap.toString()));
    }
    Object ajaxParameter = paramMap.get(AJAX_PARAMETER_NAME);
    AjaxContainer ajaxContainer = (AjaxContainer) component;
    if (null != ajaxParameter && ajaxParameter.equals(clientId)) {
        ajaxContainer.setSubmitted(true);
        if(ajaxContainer.isSelfRendered()){
          AjaxContext.getCurrentInstance(context).setSelfRender(true);
        }
        AjaxEvent event = new AjaxEvent(component);
        component.queueEvent(event);
    } else {
      ajaxContainer.setSubmitted(false);
    }

  }
View Full Code Here

   * @see javax.faces.render.Renderer#encodeBegin(javax.faces.context.FacesContext,
   *      javax.faces.component.UIComponent)
   */
  public void doEncodeBegin(ResponseWriter out, FacesContext context,
      UIComponent component) throws IOException {
    AjaxContainer ajax = (AjaxContainer) component;
    // ServletResponse response = (ServletResponse)
    // context.getExternalContext().getResponse();
    Map attributes = component.getAttributes();
    String format = (String) attributes.get("format");
    String contentType = null;
View Full Code Here

          Messages.DECODE_AJAX_REQUEST_STATUS_INFO, clientId));
      // log.debug(Messages.getMessage(Messages.REQUEST_PARAMETERS_MAP,
      // paramMap.toString()));
    }
    Object ajaxParameter = paramMap.get(AJAX_PARAMETER_NAME);
    AjaxContainer ajaxContainer = (AjaxContainer) component;
    if (null != ajaxParameter && ajaxParameter.equals(clientId)) {
      ajaxContainer.setSubmitted(true);
      if (ajaxContainer.isSelfRendered()) {
        AjaxContext.getCurrentInstance(context).setSelfRender(true);
      }
      AjaxEvent event = new AjaxEvent(component);
      component.queueEvent(event);
    } else {
      ajaxContainer.setSubmitted(false);
    }

  }
View Full Code Here

TOP

Related Classes of org.ajax4jsf.component.AjaxContainer

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.