In jsf 1.1 (which is what mws 7 uses), there are three lifecycle scenarios: non-faces request generates faces response, faces request generates faces response, and faces request generates non-faces response. The first scenario is what happens when you view a page for the first time. In this case, the lifecycle processing invokes only the final stage of the faces lifecycle, RENDER_RESPONSE.
If you want to invoke some code at the very earliest point in the faces lifecycle, the best way to do it is have your phase listener listen for both RESTORE_VIEW and RENDER_RESPONSE beforePhase events, setting a flag in your RESTORE_VIEW processing so that when the RENDER_RESPONSE phase comes around, you’ll know whether or not you already did the processing.
#webMethods-BPMS#MWS-CAF-Task-Engine#webMethods