On Oct 2, 2008, at 9:28 AM, webtier_at_javadesktop.org wrote:
> thanks
>
> but if you don like to put redirection im managed beans, where do i
> put the code to redirect to an errror page when the managed beans
> trigger it ?
You might look up the error-page element for web.xml. For example,
here's how the GlassFish v3 Admin Console handles ViewExpiredExceptions
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</
exception-type>
<location>/</location>
</error-page>
Here, we capture only this exception. If you want to capture 500
errors, for example, you can specify that instead of the exception-
type, though I can't remember what the element name is. Hopefully,
the text above will give you enough to google with.
Jason Lee
Senior Java Developer
GlassFish Administration Console
Sun Microsystems, Inc.
Phone x31197/+1 405-343-1964
Email jasondlee_at_sun.com
Blog
http://blogs.sun.com/jasondlee
Blog
http://blogs.steeplesoft.com