tag:blogger.com,1999:blog-5874979429188093780.post607189016497732217..comments2024-03-18T06:46:54.352+01:00Comments on Andrej Baranovskij Blog: Handling Exceptions in Oracle UI Shell and Displaying Popup Error MessageAndrej Baranovskijhttp://www.blogger.com/profile/04468230464412457426noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-5874979429188093780.post-35713666544614901072011-05-26T16:13:40.489+02:002011-05-26T16:13:40.489+02:00Hi Andrejus many thanks that what I did , I added ...Hi Andrejus many thanks that what I did , I added in the catch of the bean method to call that popup and pass to it the Exception message , hoped for more automated solution but I can't complain if this one works too . I think I still have sometime to understand how really the ADF framework works :)Ahmedhttps://www.blogger.com/profile/17039782905967037160noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-46121303592423682112011-05-26T08:53:21.976+02:002011-05-26T08:53:21.976+02:00Hi,
1 - If bean method is calling invalid binding...Hi,<br /><br />1 - If bean method is calling invalid binding - DCErrorHandler will catch JboException from Model. If your bean method just plain Java, use try/catch - standard Java exception handling<br /><br />2 - Is catched by DCErrorHandler class<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-17531510999355933242011-05-25T18:55:38.801+02:002011-05-25T18:55:38.801+02:00Hi Andrejus , actually I was trying to do the cust...Hi Andrejus , actually I was trying to do the custom popup solution and it worked then I just saw the link you posted , I added a custom error handler on the binding container level , and another on the controller level "your example" and I added customized popup on the root jsf pages in the application that got the root regions , then added your error handling template to the root regions , now the following errors are caught :<br />1- any error in the AM .<br />2- any error in the AM methods or backing bean methods that are on task flows.<br /><br />whats not being caught by the custom error handlers are :<br />1-any bean method that are referenced directly by Action or Action listener on button or link.<br />2-any problem in the binding references in the page def .<br />I am very interested to know how to handle errors of methods referenced directly by Action or Action listeners . <br />Thanks in Advance<br />KasapiAhmedhttps://www.blogger.com/profile/17039782905967037160noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-9277589977746220262011-05-18T19:42:51.038+02:002011-05-18T19:42:51.038+02:00This blog post is developed based on my sample app...This blog post is developed based on my sample app - http://jjzheng.blogspot.com/2011/03/using-popup-to-confront-user-to.html<br /><br />It is for slightly different use case, but still similar principle as you are looking for popup.<br /><br />Hope it will help.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-12198720014450789042011-05-18T17:24:12.435+02:002011-05-18T17:24:12.435+02:00So is it possible to make the message displayed cu...So is it possible to make the message displayed customized add more buttons for example ?!!!https://www.blogger.com/profile/04341909996658047366noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-88072466585510996242011-05-18T17:11:13.764+02:002011-05-18T17:11:13.764+02:00Many Thanks Andrejus , so its the one launched by ...Many Thanks Andrejus , so its the one launched by "facesContext.addMessage" , I got excited when I saw the the button in end of the popup , because I am in a case that need an error handling without leaving the page and displaying a popup with the error BUT also to have button to send an email or do some logic and some links under the error too to offer alternative for other pages other than the one that failed!!!https://www.blogger.com/profile/04341909996658047366noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-43394210462040426432011-05-18T17:03:23.362+02:002011-05-18T17:03:23.362+02:00Hi,
Popup doesnt exist on the page, its JSF infor...Hi,<br /><br />Popup doesnt exist on the page, its JSF information window, its rendered directly from Launcher bean.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-70201756886855917322011-05-18T16:59:57.279+02:002011-05-18T16:59:57.279+02:00Hi Andrejus .
Your example is perfect , I just got...Hi Andrejus .<br />Your example is perfect , I just got one thing , where is the popup component that gets displayed ? I can find its binding in the Launcher backing bean but I can't find the component it self!!!https://www.blogger.com/profile/04341909996658047366noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-83801433117307930582010-11-01T19:01:42.826+01:002010-11-01T19:01:42.826+01:00It works again now.. don't understand what was...It works again now.. don't understand what was amiss earlier!! <br />One more question..the popup error that comes up, is there a way to make the output message custom?<br />Thanks<br />=)Harleenhttps://www.blogger.com/profile/08937840030533754669noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-9478216262489535252010-10-30T04:23:36.648+02:002010-10-30T04:23:36.648+02:00Hi,
You can send me your sample app, I will check...Hi,<br /><br />You can send me your sample app, I will check what is wrong :)<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-51640233005509306022010-10-29T23:17:07.588+02:002010-10-29T23:17:07.588+02:00Well your sample works well and fine. But I have a...Well your sample works well and fine. But I have an application of my own with a .jspx page that uses our own default template. <br />But for some reason the TabContext is still not recognized. <br />I even tried to create a new blank Oracle Dynamic shell template page but still same problem. <br />Any suggestions!?Harleenhttps://www.blogger.com/profile/08937840030533754669noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-12054061348858876152010-10-29T19:39:16.009+02:002010-10-29T19:39:16.009+02:00Actually I take that back. I got it. =)Actually I take that back. I got it. =)Harleenhttps://www.blogger.com/profile/08937840030533754669noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-116372811285264072010-10-29T19:36:26.611+02:002010-10-29T19:36:26.611+02:00Ahh I get it! But can it not be implemented with m...Ahh I get it! But can it not be implemented with my own default template?Harleenhttps://www.blogger.com/profile/08937840030533754669noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-23386660015076091182010-10-29T19:33:52.034+02:002010-10-29T19:33:52.034+02:00Yes I am able to compile and run yours. I am tryin...Yes I am able to compile and run yours. I am trying to implement a similar thing on my ADF app but it won't read or import TabContext. <br />Please advise :-SHarleenhttps://www.blogger.com/profile/08937840030533754669noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-39028712402663055932010-10-29T18:47:32.313+02:002010-10-29T18:47:32.313+02:00Hi,
It should be available by default, when you p...Hi,<br /><br />It should be available by default, when you project contains a page based on UIShell template.<br /><br />Can you compile my sample app?<br /><br />Regards,<br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-31870741297799002352010-10-29T17:43:43.389+02:002010-10-29T17:43:43.389+02:00Hi
Where did you get the TabContext. I am unable ...Hi <br />Where did you get the TabContext. I am unable to find "oracle.ui.pattern.dynamicShell.TabContext". Using 11.1.1.3.<br />ThanksHarleenhttps://www.blogger.com/profile/08937840030533754669noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-18892304208462164832010-07-07T23:16:24.854+02:002010-07-07T23:16:24.854+02:00Hi Andrejus,
I have tried to use this way of excep...Hi Andrejus,<br />I have tried to use this way of exception handling before as follows:<br /><br />if(Exception){<br />FacesContext.getInstance().addMessage(..,..,..);<br />return TaskflowId.parse(TFId1);<br />}<br />else return TaskflowId.parse(TFId2);<br /><br />Here I have 2 different return TFs . I observe that In case of an exception, the message gets queued, I am redirected to the intended page (TFId1) and then the exception popup shows up. I want it to be shown before being redirected & the next page should appear only when the user dismisses the popup by clicking OK. Is there a way to do it?<br /><br />Thanks,<br />Nachiket DeoNachikethttps://www.blogger.com/profile/15149643853235095153noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-35827855301420376292010-06-05T16:11:07.242+02:002010-06-05T16:11:07.242+02:00Thats right, this skin is available only in 11.1.1...Thats right, this skin is available only in 11.1.1.3.0. If you are running on 11.1.1.2.0, change it simply to fusion.<br /><br />Regards,<br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-43726197668189816932010-06-05T14:15:59.217+02:002010-06-05T14:15:59.217+02:00HI Andrejus
Thank you for you so quickly response...HI Andrejus<br /><br />Thank you for you so quickly response and get the perfect result. <br /><br />I have test your example and it works fine except that skin - fusion-11.1.1.3.0 can't be found in my environment. I am not sure whether this is due to my version 11.1.1.2.0?<br /><br />Or do I need to upgrade my JDeveloper to 11.1.1.3.0?<br /><br />Regards<br /><br />HongMing FengHongMinghttps://www.blogger.com/profile/09679968055471950614noreply@blogger.com