public static void addActionListenerProperty(FacesContext context,
            UIComponent component, MethodExpression actionListener)
    {
        if (actionListener != null)
        {
            if (!(component instanceof ActionSource2))
            {
                throw new IllegalArgumentException("Component "
                        + component.getClientId(context)
                        + " is no ActionSource");
            }

            ((ActionSource2) component)
                    .addActionListener(new MethodExpressionActionListener(
                            actionListener));
        }
    }
public static void addActionListenerProperty ( FacesContext context , UIComponent component , MethodExpression actionListener ) { if ( actionListener != null ) { if ( ! ( component instanceof ActionSource2 ) ) { throw new IllegalArgumentException ( "Component " + component . getClientId ( context ) + " is no ActionSource" ) ; } ( ( ActionSource2 ) component ) . addActionListener ( new MethodExpressionActionListener ( actionListener ) ) ; } }
@since 1.2