Hi,
On Tue, Mar 11, 2008 at 8:47 AM, Abhijit Ghosh
<[EMAIL PROTECTED]> wrote:
> Please try setAction(<MethodBinding>) instead of
> setActionListener(<MethodBinding).
> I think the problem here is the method is an action not an actionListener.
yup, looks like that:
see below
> > Caused by: java.lang.IllegalArgumentException: wrong number of arguments
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:597)
> > at
> > org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
> > ... 26 more
here you have that code:
btn.setActionListener(app.createMethodBinding("#{helloWorldBacking.onOpenPage2}",
the signature should be:
public void onOpenPage2(ActionEvent ae);
-Matthias
> >
> >
> > --
> > Shane
> >
> >
>
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org