Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 11618 invoked from network); 2 Aug 2007 13:32:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Aug 2007 13:32:34 -0000 Received: (qmail 43914 invoked by uid 500); 2 Aug 2007 13:32:30 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 43887 invoked by uid 500); 2 Aug 2007 13:32:30 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 43876 invoked by uid 99); 2 Aug 2007 13:32:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2007 06:32:30 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [216.148.227.152] (HELO rwcrmhc12.comcast.net) (216.148.227.152) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2007 13:32:04 +0000 Received: from rmailcenter20.comcast.net ([204.127.197.130]) by comcast.net (rwcrmhc12) with SMTP id <20070802133203m1200fp7hee>; Thu, 2 Aug 2007 13:32:03 +0000 Received: from [67.190.53.145] by rmailcenter20.comcast.net; Thu, 02 Aug 2007 13:32:02 +0000 From: gvanmatre@comcast.net (Gary VanMatre) To: "MyFaces Discussion" Subject: Re: Custom error handler and ajax requests (a4j) Date: Thu, 02 Aug 2007 13:32:02 +0000 Message-Id: <080220071332.2265.46B1DCD200099870000008D922069997350A9D9B0E03020E9009@comcast.net> X-Mailer: AT&T Message Center Version 1 (Oct 4 2006) X-Authenticated-Sender: Z3Zhbm1hdHJlQGNvbWNhc3QubmV0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="NextPart_Webmail_9m3u9jl4l_2265_1186061522_0" X-Virus-Checked: Checked by ClamAV on apache.org --NextPart_Webmail_9m3u9jl4l_2265_1186061522_0 Content-Type: text/plain Content-Transfer-Encoding: 8bit >From: Pawel.Czerwinski@anicasystem.com.pl > >Anybody? :> > Are you using Shale ViewController [1]? If so, try the nightly. [1] https://issues.apache.org/struts/browse/SHALE-409 >-- >Regards >Pawe� Czerwi�ski Pawel.Czerwinski@anicasystem.com.pl wrote on 2007-07-31 14:38:59: > > Hi, > I made my own error handler (works like the one described here: > http://wiki.apache.org/myfaces/Handling_Server_Errors) . > In the backing bean I use following lines to fetch the exception details.... > > FacesContext context = FacesContext.getCurrentInstance(); > Map requestMap = context.getExternalContext().getRequestMap(); > Throwable ex = (Throwable) requestMap.get("javax.servlet. > error.exception"); > > And everything works fine when an error occurs during standard > request (eg. when h:commandButton calls a method that throws exception). > But when I switch to ajax4jsf and use a4j:commandButton, requestMap > contains no information about exceptions... > Does anybody know, how to dig to this exception when using ajax4jsf > components? > > -- > Regards > Pawe� Czerwi�ski > pawel.czerwinski@anicasystem.com.pl --NextPart_Webmail_9m3u9jl4l_2265_1186061522_0 Content-Type: text/html Content-Transfer-Encoding: 8bit
>From: Pawel.Czerwinski@anicasystem.com.pl
>
>Anybody? :>
>
 
Are you using Shale ViewController [1]?  If so, try the nightly.
 
 

>--
>Regards
>Pawe� Czerwi�ski



Pawel.Czerwinski@anicasystem.com.pl wrote on 2007-07-31 14:38:59:

>
> Hi,
> I made my own error handler (works like the one described here:
> http://wiki.apache.org/myfaces/Handling_Server_Errors) .
> In the backing bean I use following lines to fetch the exception details....
>
>         FacesContext context = FacesContext.getCurrentInstance();
>         Map requestMap = context.getExternalContext().getRequestMap();
>         Throwable ex = (Throwable) requestMap.get("javax.servlet.
> error.exception");
>
> And everything works fine when an error occurs during standard
> request (eg. when h:commandButton calls a method that throws exception).
> But when I switch to ajax4jsf and use a4j:commandBut ton, r equestMap
> contains no information about exceptions...
> Does anybody know, how to dig to this exception when using ajax4jsf
> components?
>
> --
> Regards
> Pawe� Czerwi�ski
> pawel.czerwinski@anicasystem.com.pl
--NextPart_Webmail_9m3u9jl4l_2265_1186061522_0--