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 How to determine which submit button was clicked from a phase listener 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 "How to determine which submit button was clicked from a phase listener" Watch "How to determine which submit button was clicked from a phase listener" New topic
Author

How to determine which submit button was clicked from a phase listener

Ajay Dhar
Ranch Hand

Joined: Jan 26, 2011
Posts: 30
I'm using JSF 1.2 and I need to determine which submit button was clicked from a phase listener which is triggered before JSF conversion. I am assuming that this information is available from FacesContext but I can't find it.

Previously I had to do something similar, but not exactly the same. I had to find the name of the submitted form. I used the following method in my phase listener:



If someone could help me out I would greatly appreciate it.

Thanks,
Ajay


OCPJP 6, OCEEJBD 6, GIAC Secure Software Programmer-Java (GSSP-Java)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to determine which submit button was clicked from a phase listener
 
Similar Threads
forwarding using handleNavigation method of NavigationHandler
Conditional Validation Determined By Which Button Was Clicked
Custom UIInput
Going back to previous page
Re-Render Problem after ValidationException