I have a beans page with a button. When a button is clicked the action method should be invoked. Sounds simple enough but nothing happens when said button is clicked. No errors to report.
The method:
@ManagedBean(name="verify")
@SessionScoped
public class VerifyUser {
public void acceptUser() throws ClassNotFoundException, SQLException{
System.out.println("acceptUser() method is invoked!");
}
}
JSF Button:
<h:commandButton value="Accept" action="#{verify.acceptUser}" />
Bean is session scoped.