-
1. Re: actionListener vs action and redirect
pmuir Nov 4, 2007 4:38 PM (in response to dkane)Post code to show your problem. Both actionListeners should do the same thing, just the RichFaces one suffers from less good english ;) Or ask on the RichFaces forum.
-
2. Re: actionListener vs action and redirect
dkane Nov 5, 2007 7:52 AM (in response to dkane)"pete.muir@jboss.org" wrote:
Post code to show your problem.
Actually I have no problem, application is working. Just want my solutions to be knowledge-based rather than experiment-based."pete.muir@jboss.org" wrote:
What is the reason of supporting two equal attributes with different names ? Well, maybe Richfaces question.. Thanks.
Both actionListeners should do the same thing -
3. Re: actionListener vs action and redirect
pmuir Nov 5, 2007 8:31 AM (in response to dkane)Oh sorry, I misread your post. Read a JSF textbook to understand the difference between action and actionListener.
I always use action unless I have a specific reason to use actionListener. -
4. Re: actionListener vs action and redirect
dkane Jan 17, 2008 4:19 AM (in response to dkane)
Still don't undertsand the following.
Under some curcumstances I am getting "property 'someMethod' not found" when trying to bind action of a:commandButton to method.
Changing action to actionListener with the same method eliminates the error.
How is that possible ? -
5. Re: actionListener vs action and redirect
nickarls Jan 17, 2008 4:33 AM (in response to dkane)You can't have an action and and actionListener point to the same method because the actionListener looks for a method with an ActionEvent parameter. I don't get the "under some circumstances" part, though.