java - JSF 1.2 difference between exception in action and actionListener -


i've noticed jsf 1.2. not return error page when exception thrown in actionlistener method return error page when exception thrown in action method. why that? can return error page in both cases?

any exception thrown in facesevent listener method silently caught , wrapped in abortprocessingexception , logged console. that's per specification.

the actionevent listener method (as other facesevent listener method) has no responsibility navigational tasks. real action method has. generally, action listener method should used whenever want observe action invoke, not execute business task (which affects response).


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -