Package org.xulfaces

Examples of org.xulfaces.MultiActionSource


    if(!(component instanceof MultiActionSource)){
      throw new IllegalArgumentException("component arg is not MultiActionSource");
    }
    ResponseWriter responseWriter = facesContext.getResponseWriter();
    StringBuffer stringBuffer = new StringBuffer();
    MultiActionSource xulComponent = (MultiActionSource) component;
    MethodBinding methodBinding = xulComponent.getMethodBinding(attributeName);
    if(methodBinding != null){
      stringBuffer.append("triggerBindedMethod('");
      stringBuffer.append(component.getClientId(facesContext));
      stringBuffer.append("','");
      stringBuffer.append(attributeName);
View Full Code Here


    super.decode(facesContext, component);
    if(isMethodBindedSubmitted(facesContext, component)){
      Map params = facesContext.getExternalContext().getRequestParameterMap();
      String value = (String) params.get(METHOD_BINDED_PREFIX+component.getClientId(facesContext));
      if(component instanceof MultiActionSource){
        MultiActionSource multiActionSource = (MultiActionSource) component;
        MethodBinding methodBinding = multiActionSource.getMethodBinding(value);
        multiActionSource.setAction(methodBinding);
        if(methodBinding != null){
          component.queueEvent(new ActionEvent(component));
        }
      }
    }
View Full Code Here

   */
  @Override
  protected void renderBindedMethod(FacesContext facesContext, UIComponent component, String attributeName) throws IOException {
    ResponseWriter responseWriter = facesContext.getResponseWriter();
    StringBuffer stringBuffer = new StringBuffer();
    MultiActionSource xulComponent = (MultiActionSource) component;
    MethodBinding methodBinding = xulComponent.getMethodBinding(attributeName);
    if(methodBinding != null){
      stringBuffer.append("XUL_FACES_BRIDGE.saveTreeSelection(document.getElementById('");
      stringBuffer.append(component.getClientId(facesContext));
      stringBuffer.append("'));");
      stringBuffer.append("triggerBindedMethod('");
View Full Code Here

TOP

Related Classes of org.xulfaces.MultiActionSource

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.