Package javax.faces.el

Examples of javax.faces.el.MethodBinding


   * @deprecated since 2.0.0
   */
  @Deprecated
  public static void setSortActionListenerMethodBinding(UIComponent component, String value, Class[] args) {
    if (value != null && UIComponentTag.isValueReference(value)) {
      MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
      ((SortActionSource) component).setSortActionListener(methodBinding);
    }
  }
View Full Code Here


   * @deprecated since 2.0.0
   */
  @Deprecated
  public static void setSuggestMethodMethodBinding(UIComponent component, String value, Class[] args) {
    if (value != null && UIComponentTag.isValueReference(value)) {
      MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
      ((InputSuggest) component).setSuggestMethod(methodBinding);
    }
  }
View Full Code Here

   * @deprecated since 2.0.0
   */
  @Deprecated
  public static void setValueChangeListenerMethodBinding(UIComponent component, String value, Class[] args) {
    if (value != null && UIComponentTag.isValueReference(value)) {
      MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
      ((EditableValueHolder) component).setValueChangeListener(methodBinding);
    }
  }
View Full Code Here

   * @deprecated since 2.0.0
   */
  @Deprecated
  public static void setValidatorMethodBinding(UIComponent component, String value, Class[] args) {
    if (value != null && UIComponentTag.isValueReference(value)) {
      MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
      ((EditableValueHolder) component).setValidator(methodBinding);
    }
  }
View Full Code Here

   * @deprecated since 2.0.0
   */
  @Deprecated
  public static void setActionListenerMethodBinding(UIComponent component, String value, Class[] args) {
    if (value != null && UIComponentTag.isValueReference(value)) {
      MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
      ((ActionSource) component).setActionListener(methodBinding);
    }
  }
View Full Code Here

   */
  @Deprecated
  public static void setActionMethodBinding(UIComponent component, String value, Class[] args) {
    if (value != null) {
      if (UIComponentTag.isValueReference(value)) {
        MethodBinding methodBinding =
            FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
        ((ActionSource) component).setAction(methodBinding);
      } else {
        ((ActionSource) component).setAction(new ConstantMethodBinding(value));
      }
View Full Code Here

   * @deprecated since 2.0.0
   */
  @Deprecated
  public static void setTabChangeListenerMethodBinding(UIComponent component, String value, Class[] args) {
    if (value != null && UIComponentTag.isValueReference(value)) {
      MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
      ((TabChangeSource) component).setTabChangeListener(methodBinding);
    }
  }
View Full Code Here

            }
        }

        // now invoke the validator method defined as a method-binding attribute
        // on the component
        MethodBinding validatorBinding = input.getValidator();
        if (validatorBinding != null)
        {
            try
            {
                validatorBinding.invoke(context,
                                        new Object[] {context, input, convertedValue});
            }
            catch (EvaluationException e)
            {
                input.setValid(false);
View Full Code Here

        // invoke standard listeners attached to this component first
        super.broadcast(event);

        // invoke the single listener defined directly on the component
        MethodBinding valueChangeListenerBinding = getValueChangeListener();
        if (valueChangeListenerBinding != null)
        {
            try
            {
                valueChangeListenerBinding.invoke(getFacesContext(),
                                                  new Object[]{event});
            }
            catch (EvaluationException e)
            {
                Throwable cause = e.getCause();
View Full Code Here

        if (event instanceof ActionEvent)
        {
            FacesContext context = getFacesContext();

            MethodBinding actionListenerBinding = getActionListener();
            if (actionListenerBinding != null)
            {
                try
                {
                    actionListenerBinding.invoke(context, new Object[] {event});
                }
                catch (EvaluationException e)
                {
                    Throwable cause = e.getCause();
                    if (cause != null && cause instanceof AbortProcessingException)
View Full Code Here

TOP

Related Classes of javax.faces.el.MethodBinding

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.