PhaseListener
.Since the PhaseListener intercepts the process, you can use it to learn the phases. The PhaseListener below is an example of one that reports on all
PhaseEvents
. You should modify it to learn what occurs during each phase.PhaseListenerImpl.java
Here is the output:INFO: Before Phase: RESTORE_VIEW 1 invoked. INFO: After Phase: RESTORE_VIEW 1 invoked. INFO: Before Phase: APPLY_REQUEST_VALUES 2 invoked. INFO: After Phase: APPLY_REQUEST_VALUES 2 invoked. INFO: Before Phase: PROCESS_VALIDATIONS 3 invoked. INFO: After Phase: PROCESS_VALIDATIONS 3 invoked. INFO: Before Phase: UPDATE_MODEL_VALUES 4 invoked. INFO: After Phase: UPDATE_MODEL_VALUES 4 invoked. INFO: Before Phase: INVOKE_APPLICATION 5 invoked. INFO: After Phase: INVOKE_APPLICATION 5 invoked. INFO: Before Phase: RENDER_RESPONSE 6 invoked. INFO: After Phase: RENDER_RESPONSE 6 invoked.
0 comments :
Post a Comment