redirect « Exception « JSF Q&A

Home
JSF Q&A
1.API
2.Bean
3.Component
4.Control
5.Data
6.database
7.Datatable
8.Development
9.Exception
10.Facelets
11.Form
12.Glassfish
13.HTML
14.IceFaces
15.Internationalization
16.JPA
17.JSP
18.MyFaces
19.openfaces
20.Page
21.Portlet
22.PrimeFaces
23.RichFaces
24.Seam
25.Security
26.Servlet
27.Session
28.Tag
29.Test
30.Tomcat
31.validation
32.Web Service
JSF Q&A » Exception » redirect 




1. Preserving FacesMessage after redirect for presentation through in JSF    stackoverflow.com

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");
fm.setSeverity(FacesMessage.SEVERITY_ERROR);
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    stackoverflow.com

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    stackoverflow.com

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?

@Named
@RequestScoped
public class ...

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

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?    stackoverflow.com

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    coderanch.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.