I'm taking over a project which is based on Java Server Faces (project created circa 2009, so JSF 1.0?). I haven't worked out how JSF handles the front controller logic, i.e. how the Faces servlet determines which Java class to forward a GET or POST to. For example, Spring MVC has the "@Request" annotation. How does JSF do it?
This is a very useful link, but didn't answer my question specifically. I wanted know how JSF tied a GET or POST to Java class. It turned out that it's the "action" item in the ice:commandButton, e.g.
<ice:form id="footForm">
<ice:commandButton id="cancelButton" value="Cancel" action="#{ProductMB.cancel}"></ice:commandButton>
<ice:commandButton id="saveButton" value="Save" action="#{ProductMB.save}" disabled="#{ProductMB.notAllRequiredFieldsEntered}"></ice:commandButton>
</ice:form>