I would like to tell me which is the difference between an
action and an
actionListener in the following example:
<h:form style="text-align:center">
<h:commandButton image="mountrushmore.jpg"
actionListener="#{rushmore.listen}"
action="#{rushmore.act}"/>
</h:form>
Which method of the rushmore bean is invoked first the
listen() or the
act()? Based on the JSF lifecycle the action events are invoked in the Invoke Application Phase correct?So first we have the process of validation and then the action is invoked right?And then the listener?
Thanks in advance.