users@javaserverfaces.java.net

Re: Is it possible to use a JSF page as an error page?

From: Imre Oßwald <ioss_at_mx.jevelopers.com>
Date: Tue, 13 Mar 2007 01:24:51 +0100

If I remember correctly for IE to display the non default error-page
the content of the returned page has to exceed a certain number of
characters. (So try to fill it up, maybe even comments or spaces are
O.K.)
(its a very vague remembrance, so I apologize in advance if it is
nonsense)

Imre

Am 12.03.2007 um 21:46 schrieb Jon Miller:

> I don't think that's the case because it works if I access the file
> directly. It only gave me an error when accessing the page as a
> result of an exception happening. I put a "throw new RuntimException
> ()" in the constructor of a managed bean to test it.
>
> Jon
>
> ----- Original Message ----- From: "Ryan Lubke" <Ryan.Lubke_at_Sun.COM>
> To: <users_at_javaserverfaces.dev.java.net>
> Sent: Monday, March 12, 2007 3:22 PM
> Subject: Re: Is it possible to use a JSF page as an error page?
>
>
>> Jon Miller wrote:
>>> I just realized that custom error pages don't seem to work even
>>> with a .jspx with IE. I tried it with both IE 6 and 7. It works
>>> fine with Firefox. My current guess is that Tomcat is still
>>> returning a 500 and IE just displays the default page for that
>>> error. This is different than the problem that I had when trying
>>> to use a JSF page as an error page.
>> How do you define your JSF error page?
>>
>> JSP documents by default, at least if I recall correctly, will set
>> the content type to text/xml. It could be the IE doesn't like that.
>> You could try forcing the content type to text/html.
>>
>>
>>>
>>> Jon
>>>
>>> ----- Original Message ----- From: "Jon Miller"
>>> <jemiller_at_uchicago.edu>
>>> To: "JavaServer Faces Users List"
>>> <users_at_javaserverfaces.dev.java.net>
>>> Sent: Monday, March 12, 2007 2:28 PM
>>> Subject: Is it possible to use a JSF page as an error page?
>>>
>>>
>>>> Hi all,
>>>>
>>>> Does anyone know if it's possible to use a JSF page as an error
>>>> page? I'm having some problems getting it to work. It seems to
>>>> work fine if it's just a JSP.
>>>>
>>>> Jon
>>>>
>>>> -------------------------------------------------------------------
>>>> --
>>>> To unsubscribe, e-mail: users-
>>>> unsubscribe_at_javaserverfaces.dev.java.net
>>>> For additional commands, e-mail: users-
>>>> help_at_javaserverfaces.dev.java.net
>>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: users-
>>> unsubscribe_at_javaserverfaces.dev.java.net
>>> For additional commands, e-mail: users-
>>> help_at_javaserverfaces.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-
>> unsubscribe_at_javaserverfaces.dev.java.net
>> For additional commands, e-mail: users-
>> help_at_javaserverfaces.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: users-
> help_at_javaserverfaces.dev.java.net
>