tag:blogger.com,1999:blog-5396570633771229267.post4333377294967332529..comments2024-03-03T14:43:52.399+01:00Comments on The BalusC Code: Full ajax exception handlerBalusChttp://www.blogger.com/profile/00299057045960008647noreply@blogger.comBlogger43125tag:blogger.com,1999:blog-5396570633771229267.post-10090877593378608562017-02-15T02:30:36.993+01:002017-02-15T02:30:36.993+01:00Hey Blausc,
Can you please let me know how to hand...Hey Blausc,<br />Can you please let me know how to handle nonexistent conversation exception. I have done error page congratulations with nocid=true but it doesn't work for ajax calls. Any help would be appreciated Anonymoushttps://www.blogger.com/profile/16312207347210610627noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-17264557828326205712017-02-14T22:33:46.142+01:002017-02-14T22:33:46.142+01:00@mikeschwartz
Can You please share the solution o...@mikeschwartz<br /><br />Can You please share the solution on how to handle NonexistentConversationException. I have configured error page with nocid=true but it does not work for some cases and mostly with ajax calls. <br />You mentioned that ViewExpiredException has this issue with AJAX. Can please give more details.Anonymoushttps://www.blogger.com/profile/16312207347210610627noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-32667508242593234172015-06-18T22:51:09.328+02:002015-06-18T22:51:09.328+02:00Hi BalusC,
Currently I have a development in whic...Hi BalusC,<br /><br />Currently I have a development in which failure redirection from the beforephase . As you commented on another website , change the redirect logic to aftherphase but still not working. What may be due this? As background , I set the value of minutes of the session at 1 minute. And afeterphase beforephase and events are instantiated when I press any button last minute Amadorhttps://www.blogger.com/profile/10937378028447447495noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-85747774816113750402015-06-18T13:09:12.724+02:002015-06-18T13:09:12.724+02:00Hi BalusC,
DO we have a feature in Primefaces whi...Hi BalusC,<br /><br />DO we have a feature in Primefaces which will export run time images p:graphicimage in PDF\Excel using p:dataexporter??<br /><br />I am using a datamodel which is storing my image path as a String. The issue I am facing is image is coming perfectly finr in browser in a report but when i am exporting my report in PDF, instead of image I am getting Rituhttps://www.blogger.com/profile/10907609397473289742noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-72742214254236891682015-03-24T13:20:52.419+01:002015-03-24T13:20:52.419+01:00Ok! Thanks!Ok<a href="http://wdfshare.blogspot.com/2013/06/download-game-prototype-2-for-pc-full.html" rel="nofollow">!</a> Thanks!Anonymoushttps://www.blogger.com/profile/06968805594098877350noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-61372406217862126892014-08-25T12:45:25.584+02:002014-08-25T12:45:25.584+02:00I have a question regarding the ViewExpiredExcepti...I have a question regarding the ViewExpiredException. In my view there is a postAddToView event (f:event type="postAddToView" listener="#{bean.initializeView}") which depends on values from the current session. If the session timed out, and the view should be restored (e.g. by some ajax action) there are exceptions thrown (e. g. IllegalStateException), because the values are Fabianhttps://www.blogger.com/profile/14018123230981304312noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-75693450163818775452014-03-28T21:43:41.045+01:002014-03-28T21:43:41.045+01:00I have a question - how can I extract the error me...I have a question - how can I extract the error message of exception caught (using OmniFaces) - within a backing bean that is referenced from my error.xhtml? I don't see the exception message in the request attributes. The exception is thrown from a filter that checks to see if a given request is valid for specific user data.nenahttps://www.blogger.com/profile/03612998926010341767noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-24705875578300406472014-03-04T00:19:13.917+01:002014-03-04T00:19:13.917+01:00BalusC - what would we do without you? You saved ...BalusC - what would we do without you? You saved me hours of grief and aggravation - thanks for creating OmniFaces!!!nenahttps://www.blogger.com/profile/03612998926010341767noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-26672583561223722562014-02-06T13:00:16.206+01:002014-02-06T13:00:16.206+01:00There was a session timeout filter specified in th...There was a session timeout filter specified in the web.xml this was handling the timeout, so it never hit the 'FacesAjaxAwareUserFilter'. It was my fault that i didnt noticed baluc told in a Note.vineeth nghttps://www.blogger.com/profile/11512856803705829035noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-75956750689516637812014-01-23T13:14:50.665+01:002014-01-23T13:14:50.665+01:00have someone done a sample code,
is there a proble...have someone done a sample code,<br />is there a problem if using pretty faces, in the application.vineeth nghttps://www.blogger.com/profile/11512856803705829035noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-52624761368397903402013-05-20T13:39:21.891+02:002013-05-20T13:39:21.891+02:00@chaojun: you need the FacesExceptionFilter for no...@chaojun: you need the <a href="http://showcase.omnifaces.org/filters/FacesExceptionFilter" rel="nofollow">FacesExceptionFilter</a> for normal request exceptions.BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-34488792567920985462013-05-20T10:29:08.146+02:002013-05-20T10:29:08.146+02:00<ui:composition template="/templates/layou...<ui:composition template="/templates/layout.xhtml">&ltui:define name="contentTitle">You got a RuntimeException! There's a BUG somewhere!</ui:define></ui:composition><br /><br />I got the above page view after normal request exception.<br />why?<br /><br />Anonymoushttps://www.blogger.com/profile/11310869189468979406noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-42165766427564166322013-05-20T10:26:04.245+02:002013-05-20T10:26:04.245+02:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/11310869189468979406noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-36510381134728344982013-04-07T15:05:27.475+02:002013-04-07T15:05:27.475+02:00@pedantigeek:
1. Yes.
2. You could use a filter f...@pedantigeek:<br /><br />1. Yes.<br />2. You could use a filter for that. Check the <a href="http://showcase.omnifaces.org/filters/FacesExceptionFilter" rel="nofollow">FacesExceptionFilter</a> of the OmniFaces JSF utility library for an example.BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-3840931078137793002013-04-07T09:41:14.855+02:002013-04-07T09:41:14.855+02:00Hi Bauke,
Regarding the source of the FullAjaxExc...Hi Bauke,<br /><br />Regarding the source of the FullAjaxExceptionHandler, I have a few questions:<br /><br />1. Is a non-ajax request not handled on purpose so as to let the container redirect to the error page?<br /><br />2. If yes, and say we need to provide some more additional info for use in test environments, how to configure it?<br /><br />- VrushankAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-20083310830688448182013-03-05T14:02:46.379+01:002013-03-05T14:02:46.379+01:00Ok! Now I understand :)! you've been very expl...Ok! Now I understand :)! you've been very explanatory! Thanks again! MariOhttps://www.blogger.com/profile/05589569422273276394noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-14545938094554446942013-03-05T13:37:56.283+01:002013-03-05T13:37:56.283+01:00@MariO: AbortProcessingException is intented to sk...@MariO: AbortProcessingException is intented to skip remaining action listeners, not to indicate a business problem. It should therefore not be handled as an exceptional case. Previously, the FullAjaxExceptionHandler treated it as an exceptional case, but it has for OmniFaces 1.4. been fixed. It will now behave the same as in non-ajax requests. See also <a href="https://code.google.com/p/BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-47862980040846098752013-03-05T13:20:38.103+01:002013-03-05T13:20:38.103+01:00@Bauke Scholtz
sorry... i was browsing into the c...@Bauke Scholtz<br /><br />sorry... i was browsing into the code, but i still see the return statement after check for AbortProcessingException. It's an uncommitted fix? MariOhttps://www.blogger.com/profile/05589569422273276394noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-4924481701401406452013-03-05T13:07:25.704+01:002013-03-05T13:07:25.704+01:00Ok! Thanks!Ok! Thanks!MariOhttps://www.blogger.com/profile/05589569422273276394noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-37901052634423051152013-03-05T13:06:59.518+01:002013-03-05T13:06:59.518+01:00Hi BalusC! Why AbortProcessingException is not han...Hi BalusC! Why AbortProcessingException is not handled? there is some problem with doing it?MariOhttps://www.blogger.com/profile/05589569422273276394noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-48240587352828343922013-03-05T13:06:32.635+01:002013-03-05T13:06:32.635+01:00@MariO: this is already fixed for OmniFaces 1.4.@MariO: this is already fixed for OmniFaces 1.4.BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-61745039985221800532012-08-31T21:15:46.982+02:002012-08-31T21:15:46.982+02:00Thanks work great now.
JCThanks work great now.<br /><br />JCAnonymoushttps://www.blogger.com/profile/06979571000950008195noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-49676016050733066972012-08-30T20:50:29.518+02:002012-08-30T20:50:29.518+02:00@Jean: FullAjaxExceptionHandler works only for exc...@Jean: FullAjaxExceptionHandler works only for exceptions thrown inside JSF context and caught by FacesServlet. This Filter doesn't run inside JSF context, but right before FacesServlet is invoked, so FacesServlet has never had chance to catch it, let alone to execute the exception handler.<br /><br />Your best bet is probably to perform a redirect yourself. See also this answer for hints: BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-12565384760756703562012-08-30T20:46:19.590+02:002012-08-30T20:46:19.590+02:00Balus
I am not sure what I am doing wrong. I have...Balus<br /><br />I am not sure what I am doing wrong. I have included the factory as stated and have the omnifaces-1.0.jar in my project. When on a search page, when the button search is click I launch a wait popup (using richfaces) as such:<br /><br /><br />I also have a servlet filter that checks the user role (retrieve from the session). If role is not valid it throws an exception.<br /><br />Anonymoushttps://www.blogger.com/profile/06979571000950008195noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-43352223708110947082012-08-20T06:29:09.114+02:002012-08-20T06:29:09.114+02:00Hi Bauke. I'd spent close to two hours of web...Hi Bauke. I'd spent close to two hours of web searching trying to figure out why NonexistentConversationException wasn't triggering my web.xml error definition for the exception. Then I came across this blog post and you were the first to state that ViewExpiredException has this issue with AJAX. Your solution works great for NonexistentConversationException. Lots of folks on the web Mike Schwartzhttps://www.blogger.com/profile/07481968890320867527noreply@blogger.com