JSF Tip – execution order for ActionListener and PropertyActionListener

Until now I don’t notice this:

According to the book ‚Core JSF Programming‘, the method that is binded to ‚actionListener‘ attribute in component tag will always been invoked earlier than the method of <f:actionListener>. In my opinion, <f:setPropertyActionListener> is a kind of <f:actionListener>. Therefore, its method will not be invoked until ‚actionListener‘ attribute method finished. I have made a test and it proved my guess.

Found here.