File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes CommandButton not recognising bean 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 "CommandButton not recognising bean method" Watch "CommandButton not recognising bean method" New topic

CommandButton not recognising bean method

Alan Smith
Ranch Hand

Joined: Oct 19, 2011
Posts: 152


Can someone give me pointers as to why my command buttons action attribute is not recognising a bean method I give to it?


If I put "result" into the action attribute, it works and forwards to a results.xhtml page. Also, even though it doesn't read the forward method, when I click submit the URL changes from 'http://localhost:8080/JSF/' (default url when I run the app) to 'http://localhost:8080/JSF/faces/index.xhtml' but the result page doesn't show up. Something must be happening if the url is changing though.

Consider Paul's rocket mass heater.
subject: CommandButton not recognising bean method
Similar Threads
JSF 2.0 Login
Question regarding javaeetutorial.pdf -- about .xhtml and .java files
Issue with my webApp
Button action problem in richfaces
@Named vs @ManagedBean