Yes, because it's going to be different for each JSF implementation,
you're probably better off creating your own SimpleActionMethodBinding
MethodBinding class.
On 10/6/05, Jeroen Verhagen <[EMAIL PROTECTED]> wrote:
> Hi Mike,
>
> On 10/6/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> > From org.apache.myfaces.taglib.UIComponentTagUtils:
> >
> > public static void setActionProperty(FacesContext context,
> > UIComponent component,
> > String action)
> > {
> > if (action != null)
> > {
> > if (!(component instanceof UICommand))
> > {
> > throw new IllegalArgumentException("Component " +
> > component.getClientId(context) + " is no UICommand");
> > }
> > MethodBinding mb;
> > if (isValueReference(action))
> > {
> > mb = context.getApplication().createMethodBinding(action,
> > null);
> > }
> > else
> > {
> > mb = new SimpleActionMethodBinding(action);
>
> Many, many thanks. That was it. By the way, on Suns RI the equivalent
> is: Util.createConstantMethodBinding();
>
> regards,
>
> Jeroen
>