Adding FacesMessage that can be available in view after handleNavigation

2007-07-19 Thread sed
Hi, I am trying to write some general way to handle application errors with JSF. I understand application error as error after that user redirected to some error page. In my implementation application error is FacesMessage with SEVERITY_FATAL. I have wrote ApplicationErrorsSupervisor, see code

Re: Adding FacesMessage that can be available in view after handleNavigation

2007-07-19 Thread Mario Ivankovits
Hi! But after redirecting to errors.faces all messages are discarded. And therefore user doesn't see his fatal error. How can I using JSF add all messages to view to redirect? See the tomahawk sandbox RedirectTracker stuff [1]. Correctly configured it will make the messages available after a

Re: Adding FacesMessage that can be available in view after handleNavigation

2007-07-19 Thread sed
Sorry, maybe I am ambiguous. I mean changing navigation flow using getNavigationHandler().handleNavigation() but not really redirect with context.getExternalContext().redirect(error.faces); Should I use RedirectTracker also for handleNavigation? Thanks On 7/19/07, Mario Ivankovits [EMAIL

Re: Adding FacesMessage that can be available in view after handleNavigation

2007-07-19 Thread Petr Kotek
Hi, I resolve similar problem by next MessagesPhaseListener and saving message text into session bean: 1. Create class MessagesPhaseListener -- public class MessagesPhaseListener implements PhaseListener { public MessagesPhaseListener() { } public PhaseId

Re: Adding FacesMessage that can be available in view after handleNavigation

2007-07-19 Thread Mario Ivankovits
Hi! Sorry, maybe I am ambiguous. I mean changing navigation flow using getNavigationHandler().handleNavigation() but not really redirect with context.getExternalContext().redirect(error.faces); Should I use RedirectTracker also for handleNavigation? The RedirectTracker will handle every