redirect « Exception « JSF Q&A

1. Preserving FacesMessage after redirect for presentation through in JSF

I have what I suppose is a common problem: some managed bean has an action which adds some messages to the context:

FacesMessage fm = new FacesMessage("didn't work");
FacesContext.getCurrentInstance().addMessage(null, fm);
return "some-outcome";
Then I map ...

2. JSF 2.0 Custom Exception Handler - ViewHandler is not redirecting in Weld Application

I use the by Ed Burns suggested custom exception handler to display an error page whenever a specific exception occurs. I also try do display an error page when ...

3. JSF 2.0 redirect error

I get an IllegalStateException when redirecting from a preRenderView event. I have worked around it by just ingoring the exception. Is there a cleaner way to achieve the same result?

public class ...

4. What will be the best way of saving faces messages after redirection due to ViewExpiredException?

I followed the following article to deal with ViewExpiredException - Dealing Gracefully with ViewExpiredException in JSF2 It does what it is supposed to do. But I wanted to have some FacesMessage ...

5. JSF2 Sending a redirect from Before Restore View phase - NullPointerException in com.sun.faces?

I am using a phase listener to manage things like logon and conversation scope. In some situations I want to redirect. The most obvious is when the user is not logged ...

6. jsf redirect error