tag:blogger.com,1999:blog-5874979429188093780.post351544328914935626..comments2024-03-18T06:46:54.352+01:00Comments on Andrej Baranovskij Blog: Security in Oracle ADF and Automatic Page LoadingAndrej Baranovskijhttp://www.blogger.com/profile/04468230464412457426noreply@blogger.comBlogger39125tag:blogger.com,1999:blog-5874979429188093780.post-68736506461860821452014-02-27T06:43:24.662+01:002014-02-27T06:43:24.662+01:00Standard ADF Security logout should work just fine...Standard ADF Security logout should work just fine.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-71668886565648967782014-02-26T16:50:02.931+01:002014-02-26T16:50:02.931+01:00This all V. Good - Thanks
But Can I know the way t...This all V. Good - Thanks<br />But Can I know the way to Log out<br />from the 2 pages to the Login html page and then relogin again ...<br /><br />Iam using Oracle fusion developer guide way to logout but No way<br /><br />the simple logout way works only within normal login without On Load Page<br /><br />please HelpYahianoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-59591846560301008492013-11-28T14:26:34.650+01:002013-11-28T14:26:34.650+01:00Hi Andrejus,
The blog is very nice and I have imp...Hi Andrejus,<br /><br />The blog is very nice and I have implemented the solution in one of my project.<br /><br />This solution is working fine iff we are sure about the page after login. e.g.(intermediate.jspx) and we configure ControllerClass in that jspx.<br /><br />But I am facing a issue when user bookmarks other page of the application and gets login page. After login he gets navigated to bookmarked page instead of intermediate page.<br /><br />Is there any way that we can configure in adf security that after login, it will always go to defined page but not to the page user tried to access application?<br /><br />I tried below code in web.xml<br /><br /><br /> /faces/intermediate.jspx<br /> Anonymoushttps://www.blogger.com/profile/16157957650591512050noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-15565093509299828022012-10-11T08:41:54.573+02:002012-10-11T08:41:54.573+02:00Hi,
If I correctly remember, just to reset ADF bi...Hi,<br /><br />If I correctly remember, just to reset ADF bindings. But this is old code from ADF 10g, you should test it on ADF 11g - may be setting to null is not needed anymore.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-36273717607643989562012-10-11T08:37:04.030+02:002012-10-11T08:37:04.030+02:00Hi Andrejus
In the method beforePhase, a call is ...Hi Andrejus<br /><br />In the method beforePhase, a call is made to getBindingContainer(), just before calling onPageLoad(). And then its set back to null.<br /><br />Can you please explain why we are doing that.<br /><br />Thanks,<br />Manish.manish4u@gmail.comhttps://www.blogger.com/profile/08422555539967781297noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-58132185800345645822011-03-17T10:43:23.684+01:002011-03-17T10:43:23.684+01:00Hi,
First thanks for your help and quick answers....Hi,<br /><br />First thanks for your help and quick answers.<br />If I use the methodCall, I am not able to get the Iterator like this:<br /> DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();<br /> DCIteratorBinding iter = bc.findIteratorBinding("ZonesView1Iterator");<br />DCBindingContainer is null<br /><br />What should I do in order to call a method that has the above code inside and not get a NUllPointer.<br /><br />Regards CorneliuCorneliuhttps://www.blogger.com/profile/10191018750756874488noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-81336047051345256762011-03-17T09:55:35.154+01:002011-03-17T09:55:35.154+01:00Hi,
You should use Task Flow Method Call activity...Hi,<br /><br />You should use Task Flow Method Call activity, as Default Activity inside Region Task Flow.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-91348434791454693712011-03-17T09:49:42.004+01:002011-03-17T09:49:42.004+01:00Hi,
Should the afterPhase method load for fragment...Hi,<br />Should the afterPhase method load for fragments page also?<br />If not how can I call a backing method when a fragment get loaded.<br />Regards CorneliuCorneliuhttps://www.blogger.com/profile/10191018750756874488noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-81265262951838921992010-12-24T12:04:26.201+01:002010-12-24T12:04:26.201+01:00Yes, things in 11g may change. Thanks for update ;...Yes, things in 11g may change. Thanks for update ;)<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-72775868580601047032010-12-24T11:57:56.701+01:002010-12-24T11:57:56.701+01:00i used this example for my adf 11g application..a ...i used this example for my adf 11g application..a set the page controller for the page as said in this example but it didn't work..after i read 11g developers guide i set it as ControllerClass="fms.view.backing.MyPageController" and it's working fine :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-27062384160653403132010-10-13T22:49:33.245+02:002010-10-13T22:49:33.245+02:00Hi Andrejus
What will happen if you run the pages...Hi Andrejus<br /><br />What will happen if you run the pages clerks.jspx and manager.jspx ?<br />Will they behave in the same way ?<br />My requirement is to check if user has permission to see the page or not.<br />Depending on the result, I have to either show the page or show an error page.<br />Will this approach work in that case ?<br />Or is there any other simple approach for this requirement ?<br /><br />Thanks and Regards<br />SameerSameer Darbhanoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-48682695436356852092010-09-21T18:49:10.758+02:002010-09-21T18:49:10.758+02:00Hi i used this aproach in my app and was almost su...Hi i used this aproach in my app and was almost succefull but when it executes the code for redirection it doesnt redirect it stays on the same page.<br /><br />I have a pop-up for login and have code to make the login after that i redirect it to a page like index.jsp and after executing pageload it stays on the same page (index)<br /><br />Any ideas ? ThanksPeternoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-17502544288624926112008-09-17T10:33:00.000+02:002008-09-17T10:33:00.000+02:00Actually the page redirect is called while the pag...Actually the page redirect is called while the page is in process of loading. So before the index page will render itself, the next page (where its redirected)will be shown. BTW I follwed your example while I naviagte index page via some other page it throws some exception: ValidatorId is null.<BR/>However it works fine if I run the index page staright away.<BR/>~AnupamAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-77784591704366569622008-09-17T10:07:00.000+02:002008-09-17T10:07:00.000+02:00Hi Anupam,Its actually same technique as described...Hi Anupam,<BR/><BR/>Its actually same technique as described. Just you need to add processing page with the same logic as index page currently have.<BR/><BR/>Regards,<BR/>AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-57973460142830632452008-09-17T09:52:00.000+02:002008-09-17T09:52:00.000+02:00Hi Andrejus,What changes dop i have to make if I w...Hi Andrejus,<BR/>What changes dop i have to make if I would want the index page to render first and then redirect to some other page automatically? It might be useful in providing a processing page.<BR/><BR/>~AnupamAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-42462698485182985742008-05-16T12:21:00.000+02:002008-05-16T12:21:00.000+02:00Hi,I have a following problem onFormLoad() doesn't...Hi,<BR/><BR/>I have a following problem onFormLoad() doesn't invoke. I'm making two pages: page1.jspx and page2.jspx. On page1.jspx load I want automatic redirection to page2.jspx. But onFormLoad() doesn't trigger. <BR/><BR/>I followed your blog, but I'm doing it without authorization. <BR/>What am I doing wrong? Is this even the right example for my problem? Or is there some other way. One day :) I want to develop dynamic redirection just like in your example but without authorization.<BR/><BR/>Thanks a lotAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-38860786824194502732008-05-16T11:35:00.000+02:002008-05-16T11:35:00.000+02:00You see, JDeveloper rocks :)Its because needed lib...You see, JDeveloper rocks :)<BR/><BR/>Its because needed library was added automatically after restart.<BR/><BR/>AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-52908004153098997572008-05-16T10:50:00.000+02:002008-05-16T10:50:00.000+02:00Hi, I just tried it again and it works fine now. M...Hi, <BR/><BR/>I just tried it again and it works fine now. Meanwhile I closed JDeveloper several times and it works now. Interesting :) Just so you know<BR/><BR/>ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-32547679605516598482008-05-16T10:44:00.000+02:002008-05-16T10:44:00.000+02:00Ok, thanksOk, thanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-90390004664070574702008-05-16T10:35:00.000+02:002008-05-16T10:35:00.000+02:00Hi,I have not tested this with 11g. You can ask on...Hi,<BR/><BR/>I have not tested this with 11g. You can ask on OTN Forum, may be someone already was working with on page load functionality in 11g.<BR/><BR/>Regards,<BR/>AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-5392345356294372452008-05-16T09:51:00.000+02:002008-05-16T09:51:00.000+02:00Hi, I copied your entire source code from OnPageL...Hi, <BR/><BR/>I copied your entire source code from <BR/>OnPageLoadBackingBeanBase to my managed bean that I gave the same name, but I get following error: Import oracle.adf.controller.faces.context.FacesPageLifecycleContext not found. <BR/>I work in JDeveloper 11g TP3.<BR/>What should I do?<BR/><BR/>Thanks in advanceAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-2743224542936980952008-04-25T16:16:00.000+02:002008-04-25T16:16:00.000+02:00Hi,If user haven't logged in, it should be handled...Hi,<BR/><BR/>If user haven't logged in, it should be handled by Security Container. Ideally you shouldn't use onPageLoad() method in this case.<BR/><BR/>Regards,<BR/>AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-66465828207873653062008-04-25T02:30:00.000+02:002008-04-25T02:30:00.000+02:00Hi I'm using your onPageLoad() to redirect profile...Hi <BR/><BR/>I'm using your onPageLoad() to redirect profile.jspx to login.jspx if the users haven't logged in. But after login and coming back to profile.jspx, all tables show No rows yet. <BR/><BR/>If the users go the right way: login.jspx first, then profile.jpsx, the tables show data correctly.<BR/><BR/>I'm working on ADF Faces, JDev 10g<BR/><BR/>Any ideas are appreciated<BR/><BR/>HienUnknownhttps://www.blogger.com/profile/09880088465993817463noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-71226394068064046492008-04-05T15:44:00.000+02:002008-04-05T15:44:00.000+02:00Hi,You can put your code in setter method and add ...Hi,<BR/><BR/>You can put your code in setter method and add If statement to check for Null value. Just exactly like I'm doing in this sample: <A HREF="http://andrejusb.blogspot.com/2008/04/crud-implementation-with-jdeveloper-11g.html" REL="nofollow">CRUD implementation with JDeveloper 11g</A>. Look for setJobIdId(...) method.<BR/><BR/>Regards,<BR/>AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-80846659910168895992008-04-05T14:01:00.000+02:002008-04-05T14:01:00.000+02:00Hi Andre,Regarding resource bundle issue.Actually,...Hi Andre,<BR/><BR/>Regarding resource bundle issue.<BR/><BR/>Actually, i assigned resource bundle value in setLabel method of CoreInputText component in onPageLoad method. when i run the application its throws null pointer exception because component is not initialized. So i set like this<BR/><BR/>CoreInputText poNumber = new CoreInputText();<BR/>this.poNumber.setLabel("resource.poNUmber");<BR/><BR/>Its working properly. But after page loading and entered some value in the poNumber. Its throw null pointer exception. <BR/><BR/>If i remove the CoreInputText poNumber = new CoreInputText(); <BR/>then i am able to get the values from the input text.<BR/><BR/>What i have to do for to fix this problem. Since if we use resource bundle in lable attribute means label is not displaying in the error message.<BR/><BR/>How to fix this issue. Need to your help.<BR/><BR/>Thanks & Regards<BR/>Vimalan BalanVBhttps://www.blogger.com/profile/04705926805281399538noreply@blogger.com