Package javax.faces.component

Examples of javax.faces.component.ActionSource2.addActionListener()


 
  protected void setActionListenerProperty(UIComponent component, MethodExpression actionListener) {
    if (actionListener != null) {
      if (component instanceof ActionSource2) {
        ActionSource2 actionSource2 = (ActionSource2) component;
        actionSource2.addActionListener(new MethodExpressionActionListener(actionListener));
      } else {
        throw new IllegalArgumentException(Messages.getMessage(Messages.NO_ACTION_SOURCE2_ERROR, component.getClientId(getFacesContext())));
      }
    }
  }
View Full Code Here


 
  protected void setActionListenerProperty(UIComponent component, MethodExpression actionListener) {
    if (actionListener != null) {
      if (component instanceof ActionSource2) {
        ActionSource2 actionSource2 = (ActionSource2) component;
        actionSource2.addActionListener(new MethodExpressionActionListener(actionListener));
      } else {
        throw new IllegalArgumentException(Messages.getMessage(Messages.NO_ACTION_SOURCE2_ERROR, component.getClientId(getFacesContext())));
      }
    }
  }
View Full Code Here

 
  protected void setActionListenerProperty(UIComponent component, MethodExpression actionListener) {
    if (actionListener != null) {
      if (component instanceof ActionSource2) {
        ActionSource2 actionSource2 = (ActionSource2) component;
        actionSource2.addActionListener(new MethodExpressionActionListener(actionListener));
      } else {
        throw new IllegalArgumentException(Messages.getMessage(Messages.NO_ACTION_SOURCE2_ERROR, component.getClientId(getFacesContext())));
      }
    }
  }
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.