tag:blogger.com,1999:blog-1839316484051079047.post3203793427192917916..comments2024-03-28T06:38:40.958+01:00Comments on Java / Oracle SOA blog: Dynamic Menu based on Roles ( Database)Edwin Biemondhttp://www.blogger.com/profile/02338716126881111629noreply@blogger.comBlogger46125tag:blogger.com,1999:blog-1839316484051079047.post-5505873085149690122015-01-29T11:57:51.649+01:002015-01-29T11:57:51.649+01:00Hi Edwin,
In ADF Jdev 11g: Can you brifly explain...Hi Edwin,<br /><br />In ADF Jdev 11g: Can you brifly explain how menu can be built using data from database table( which has info about pages to be navigated)? Ambasutahttps://www.blogger.com/profile/06807445947419527088noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-90305011997209106352015-01-29T11:57:20.380+01:002015-01-29T11:57:20.380+01:00Hi Edwin,
In ADF Jdev 11g: Can you brifly explain...Hi Edwin,<br /><br />In ADF Jdev 11g: Can you brifly explain how menu can be built using data from database table( which has info about pages to be navigated)? Ambasutahttps://www.blogger.com/profile/06807445947419527088noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-87120344878639202732013-06-22T13:12:53.571+02:002013-06-22T13:12:53.571+02:00Hello Edwin
I also need to create a database drive...Hello Edwin<br />I also need to create a database driven menu which will have a tree structure. Facing the same problem as Pratik said in above comment.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-37571362966823589402013-06-14T06:49:18.672+02:002013-06-14T06:49:18.672+02:00Hello Edwin...I need to create a database driven m...Hello Edwin...I need to create a database driven menu which will have a tree structure.How can I do that? Kindly have a look at this image to get an idea of what kind of menu I'm talking http://s20.postimg.org/638hfrrfh/Menu.jpg .The leaf Menu will be different JSF pages. Anonymoushttps://www.blogger.com/profile/00393146281147000515noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-65556619573194887692013-03-14T12:25:30.132+01:002013-03-14T12:25:30.132+01:00Hi,
Indeed this is a menu based on the roles of t...Hi,<br /><br />Indeed this is a menu based on the roles of the user and does not protect the pages. It must be used together with ADF Security , in there you can assign roles to pages and task flows. <br /><br />thanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-19719233547247559852013-03-13T17:58:03.652+01:002013-03-13T17:58:03.652+01:00Hi Edwin,
You haven´t protected the pages right? I...Hi Edwin,<br />You haven´t protected the pages right? If i´m the administrator i can see all the pages.<br />When i login if a user with restricted role and then change the url to let´s say page 3 i can see the page.<br /><br />How do you protect the pages using those roles?<br />Thank youAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-27485471199997164032013-02-18T12:10:37.135+01:002013-02-18T12:10:37.135+01:00Hi,
you need to create this scott jdbc connection...Hi,<br /><br />you need to create this scott jdbc connection in your jdeveloper workspace or add the datasource to your integrated weblogic container. <br />Plus you need to have a database which has the scott schema.<br /><br />thanks<br /><br />Edwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-41443950321954466412013-02-15T22:30:23.529+01:002013-02-15T22:30:23.529+01:00Hi Edwin,
While opening page1 it shows the followi...Hi Edwin,<br />While opening page1 it shows the following error message <br /><br />While trying to lookup 'jdbc.scottDS' didn't find subcontext 'jdbc'. Resolved '' <br />While trying to lookup 'jdbc.scottDS' didn't find subcontext 'jdbc'. Resolved ''<br /><br />After pressing OK page1 only shows a Log off button and <br />Page 1<br />No Anonymoushttps://www.blogger.com/profile/09684932267929635072noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-32742561245383559162012-02-21T20:31:16.165+01:002012-02-21T20:31:16.165+01:00Hi,
I think I use basic authentication and this a...Hi,<br /><br />I think I use basic authentication and this authenticates me again with the next click. <br />You need to make a custom login page and with a logout which can destroy the session and redirect to the login page.<br /><br />thanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-73108623876041444042012-02-17T14:14:07.654+01:002012-02-17T14:14:07.654+01:00Hi
When I run the sample application nothing happe...Hi<br />When I run the sample application nothing happens when I press the menu logout button. The menu stays and I have access. What can be wrong ?<br />Is it possible to remove menu and item from the rich menu bar ?<br />Br LeneAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-35771468612414952812011-12-03T11:56:18.380+01:002011-12-03T11:56:18.380+01:00Hi,
Don't know, but maybe there is some skinn...Hi,<br /><br />Don't know, but maybe there is some skinning css thing you can set.<br /><br />thanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-88459957063901901452011-11-30T06:37:31.696+01:002011-11-30T06:37:31.696+01:00Hi Edwin,
I have one issue with the menu. When the...Hi Edwin,<br />I have one issue with the menu. When there are more than 14 child components for a menu a scroll button appears on to and bottom of the menu. I will have to use this button to scroll to lower parts of menu. <br />This works fine if the menu is a root menu. But if it is coming inside a sub-menu then when I click on the scroll button, the menu is getting closed. Any way to solve thisTuttuhttps://www.blogger.com/profile/12668496752116269673noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-16344758085386611802011-11-28T07:24:57.518+01:002011-11-28T07:24:57.518+01:00Sorry I missed my point. I was asking you, whether...Sorry I missed my point. I was asking you, whether this menu will be repopulated for each new jspx page. Because since it is in request scope, when user navigates to new page, the menu component will be destroyed, right?Tuttuhttps://www.blogger.com/profile/12668496752116269673noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-75202557463212909062011-11-26T11:58:51.296+01:002011-11-26T11:58:51.296+01:00Hi,
I don't think you don't need to worry...Hi,<br /><br />I don't think you don't need to worry about that , because I check if the menu already exists. And now it works on the authenticated user with his roles and menu items.<br /><br />maybe you can move it to application scope when everybody has the same menu<br /><br />thanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-12935926805086163832011-11-25T05:32:26.894+01:002011-11-25T05:32:26.894+01:00Hi Edwin,
great post.
I was wondering if the menu ...Hi Edwin,<br />great post.<br />I was wondering if the menu bean is defined in the session scope and called only once after the log in, may be we can reduce the number hits to these bean.Because the menu will be static for each session. Is there any draw back to this approach? If session scope is possible, can you suggest how and when to call the create menu?Tuttuhttps://www.blogger.com/profile/12668496752116269673noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-53021265422171781102011-10-29T19:54:05.259+02:002011-10-29T19:54:05.259+02:00Hi,
you need to do a ppr on the menu, so set clie...Hi,<br /><br />you need to do a ppr on the menu, so set clientcomponent on true and try to find the menu uicomponent and do a refresh.<br /><br />Or maybe you can set ppr ( changeventpolicy) on the iterator , this works on a table.<br /><br />thanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-34127982358467241752011-10-29T13:47:42.269+02:002011-10-29T13:47:42.269+02:00I am using jdeveloper 11.1.2
I added the menu to m...I am using jdeveloper 11.1.2<br />I added the menu to my template so it will appear on all pages using this template<br />now in my requirement that there is users with more than one role<br />when user log in to the application there is default role used and the menu of this default role is appear<br />the new requirement that user can change the used role to another one in run time using choicetesterhttps://www.blogger.com/profile/10859748736807549050noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-21226900537781325342011-09-26T10:44:53.160+02:002011-09-26T10:44:53.160+02:00thanks for your useful articles
but I didn't u...thanks for your useful articles<br />but I didn't understand why and where you used the task flow in this example, maybe cause I didn't read your old DYNAMIC MENU article,<br />if I must read it to understand this one, please give me the link of it<br /><br /><br />thankstesterhttps://www.blogger.com/profile/10859748736807549050noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-36984698065391929592011-07-18T18:55:58.942+02:002011-07-18T18:55:58.942+02:00Hi,
It is not that bad, I check for addMenu. If...Hi,<br /><br />It is not that bad, I check for addMenu. If the code is Ok it should only add the menu once. But you can change it, so you can return even earlier.<br /><br />thanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-50343954470293992712011-07-14T12:31:15.437+02:002011-07-14T12:31:15.437+02:00Hi,
The createMenus method gets called for every p...Hi,<br />The createMenus method gets called for every page request and gets called for every phase event of that page, (i.e. 6 times for a page) once for every phase. Any idea why this happens or how can it be avoided?<br />I want it to be called only once after login.<br />Thanks,<br />MiraAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-5302896408831298372010-02-17T18:59:59.534+01:002010-02-17T18:59:59.534+01:00Hi
please send your model and viewcontroller proj...Hi<br /><br />please send your model and viewcontroller project to biemond at gmail dot com.<br /><br />then i can take a look.Edwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-43646187000489751102010-02-17T06:32:02.090+01:002010-02-17T06:32:02.090+01:00Hi Edwin,
Thanks for replying inspite of your bus...Hi Edwin,<br /> Thanks for replying inspite of your busy time. Yes, <br />1. i created the view object, generated the view object class and 2. View Row implementation class through the java option, <br />3. created a template with panel Menu Bar<br />4. In the bindings(under advanced option) of the menu bar in the template,i did the edit and created the menu bean with the property initMenu ( Unknownhttps://www.blogger.com/profile/03211068105214829330noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-82337892041646674732010-02-16T22:26:13.486+01:002010-02-16T22:26:13.486+01:00Hi TestUpfna,
In your viewobject did you enable t...Hi TestUpfna,<br /><br />In your viewobject did you enable the java part. you can generate a view or row impl in the java section of your viewobject.Edwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-55652137756994378862010-02-15T23:50:54.871+01:002010-02-15T23:50:54.871+01:00Hi,
Could you let me know how to use MenuItemsVie...Hi,<br /> Could you let me know how to use MenuItemsViewRowImpl in the managed bean. I tried different ways and i get only the compile error cannot find class.<br />I generated the view object class as well and still its not seeing it.<br />Thanks.Unknownhttps://www.blogger.com/profile/03211068105214829330noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-82842798456941721642010-02-12T00:37:48.688+01:002010-02-12T00:37:48.688+01:00Thank you for response. I appreciate a lot all thi...Thank you for response. I appreciate a lot all things that you do for the jdev community. Now I have things more clear, and I´ll try to use another of your examples that it´s in the post "Using database tables as authentication provider in WebLogic" I only hope that works with the last release of jdeveloper 11g and Integrated WLS.Unknownhttps://www.blogger.com/profile/06354611420577289772noreply@blogger.com