This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Richfaces commandbutton action goes to the wrong method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Richfaces commandbutton action goes to the wrong method" Watch "Richfaces commandbutton action goes to the wrong method" New topic
Author

Richfaces commandbutton action goes to the wrong method

Bhuvnesh Phadnis
Greenhorn

Joined: Sep 10, 2004
Posts: 14
Hi,

I am using Seam/RichFaces here. Please see the attached figure.

I am trying to create a database lookup. When I click on the button "click1" defined on line 41, the call goes to #{accountListSearch.search} which is the action for the button "search" defined on line 23 instead of #{accountHome.parentAccountXX}. Now the thing that is driving me nuts is that I have copied the code for "click1" line 41 to "click2" line 55 and it works like a charm.

Please help!

please see the code below & attachment.




[Thumbnail for screen2.jpg]

Bhuvnesh Phadnis
Greenhorn

Joined: Sep 10, 2004
Posts: 14
problem solved! didnt use ajaxSingle for "click1"

thanks for your time ... just in case someone did read this post.
 
Consider Paul's rocket mass heater.
 
subject: Richfaces commandbutton action goes to the wrong method
 
Similar Threads
rendered
Take input from <h:inputText> in rich <modalPanel>
facelets modalPanel template question
sequence of invoking modal windows in jsf
File browser button