ADF questions

Hi,
I have been using ADF for couple of days and I could not find any good solution for the following problems. Please help me on these.
1. Is there a way of storing the value that is returned from a binding method into a managed bean property without writing code. For example getUser function returns a User class instance and I need it to be stored in a managed session bean property.
2. Is there a way of binding an ADF table's selected row value to a managed session bean property without writing code. For example I have an ADF table showing users and selected User class instance is automatically stored in an a session bean property.
3. And my last question is , I have a menu tree generated in the business logic layer and showed in the JSF pages. I want to use the a menu property as a lookup value for MessageBundle. I can access the bundle by hard coding the bundle key in JSF like "#{bundle.menu_item_new}" but I need to make it dynamic (value of a menuitem class instance property as a key).
These are my questions. I solved the first and second question by writing code , but I think these can be solved without writing code using EL expressions.
Thanks in advance...

Thanks Shay!! I will check, Will follow the separate threads for separate topic
For Question 5:
Data will be fetched from View and if user need to change the data, he can update it, the updated changes need to inserted in separate table.
According to requirement , we cant update the table directly from which the records are fetched.
Can u please provide some information on Question 11, Need to create users and page level authorization for the created user , after application is deployed.
Regards,
Zakir

Similar Messages

  • ADF Question

    Hi,
    Sorry to post this question in the wrong forum. I couldn't find a forum for ADFs thus I am posting it here.
    What is the standard process for invoking a service from a ADF application? I know that I can make a Call the the service from the java code and populate reslts in ABF Business Components. I just want to know if there is any other standard way to do this?

    Hello,
    Post your ADF questions on JDeveloper and ADF
    Best regards

  • Simple ADF questions

    hello friedns,
    i am new in ADF technology, i have a few questions
    1)what is page definations in ADF?
    2)what is task flow in ADF?what kind of taskflows we have in ADF?
    3)types ADF business components?
    Thanks
    krish.

    types of page definations in ADF?
    The meta data schema remains same across pagedef (One pagedef for a page) . However as each UI control has different data model, so page def also got different 'bindings' to support various controls. Also there are different logical sections in a page del , e.g 'executable' contains things to be executed when you load a page , 'bindings'decides how to bind data with ui model etc.
    types task flows we have in ADF?
    Bounded - A web module which can be embedded inside another page or can be invoked as independent flow
    Unbounded - normal web appl'n module - improves modularity
    types of business components in ADF?
    ApplicationModule(Service layer)
    ViewObject(your data shaping logic - query)
    EntityObject(Data Manipulation Logic - UPdate/Insert/Delete)
    You can see a consolidated list of resources to learn ADF here - http://jobinesh.blogspot.com/2011/04/learning-oracle-adf.html

  • ADF Question: included jsp action firing after page load

    Hi all,
    I am using JDeveloper 10.1.3.3 and ADF + BC.
    Here is another interesting situation for you. I have a page with an included jsp at the top with tabbed navigation.
    My page is for entering an order. Users can have multiple orders "open" in other tabs at the same time. Users can also have many other non-order pages opened in tabs. We are using the same View Objects (Entity Based) along with Transient View Objects on each order.
    Each order tab needs to "remember" the orderId so that when the user clicks on a tab, the appropriate rows are set in the order that is to be "opened". This occurs in a tab's action() - setting the orderId and forwarding to the appropriate page (if different) or reloading the same page with the new id.
    On page load we try to get the tab's orderId and load that as the current row of all of our view objects. This should make it seem like they are all concurrently running.
    The problem is when going from order to order, once the tab is clicked, the page's OnPageLoad method runs BEFORE the action of the tab click is processed. Therefore the order that loads thinks it is the previous order, and does not load the correct View Object rows.
    Does anyone know how we can force the tab action to occur before the page load so that we can get the proper orderId?
    Thanks,
    Heather

    Thanks for your speedy reply Frank,
    We are using the onPageLoad from the OnPageLoadBackingBeanBase which implements the PagePhaseListener.
    In this we are doing something like:
            if (isPostback()) {
                String selectedTabNum =
                    EL.getAsString("#{TabCounter.currentSelectedTab}");
                String test = EL.getAsString("#{TabCounter.tabOrderId" + selectedTabNum + "}");
                System.out.println("tab num " + selectedTabNum);
                System.out.println( "testing " + test );
            }our tab counter (a session bean) has these two methods (among others):
        public void setCurrentSelectedTab(int currentSelectedTab) {
            this.currentSelectedTab = currentSelectedTab;
            for(int i=1;i<= 20; i++) {
                EL.set(BACKING_START+"selectedTab"+i+"}", false);
            EL.set(BACKING_START+"selectedTab"+currentSelectedTab+"}", true);
        public String getNextAvailableTab () {
            for(int i=2;i<=20;i++) {
                boolean isTab = (new Boolean (String.valueOf(EL.get(BACKING_START+"render"+i+"}")))).booleanValue();
                if (!isTab) {
                    return String.valueOf(i);
            return "0";
        }our tab header (request bean) has this method as the action for clicking a tab:
            System.out.println("handleTabNavigation");
            String componentId = actionEvent.getComponent().getId();
            String selectedTab = componentId.replaceFirst("tab","");
            int selectedTabNum = new Integer(selectedTab).intValue();
            EL.set("#{TabCounter.currentSelectedTab}", selectedTabNum);
            String tabType = EL.getAsString("#{TabCounter.tabType"+selectedTabNum+"}");
            if (tabType.equals("regular")) {
                String orderId = EL.getAsString("#{TabCounter.tabOrderId"+selectedTabNum+"}");
                EL.set("#{processScope.unfinishedHeaderId}", orderId);
            } else if (tabType.equals("standing")) {
                String orderId = EL.getAsString("#{TabCounter.tabOrderId"+selectedTabNum+"}");           
            }Thanks,
    Heather

  • ADF Question: call javascript function from backing bean?

    Hi all,
    I am running JDeveloper 10.1.3.3 with ADF BC.
    Heres my situation:
    I have a table, and after inserting a new row, then committing, I want to call a javascript function. I tried using the onkeyup javascript to force a click of the save button, and then call my function after that. However, I really only want the second function to be called AFTER the commit has occurred.
    I have tried putting a setTimeout on the second function, but this never executes then. Is there some way that I can call the second javascript function from the backing bean? Is there a better workaround for this? Here is some code:
            function submitCreate(e) {
                var _event = (window.event) ? event : e;
                var KeyID = _event.keyCode;
                switch (KeyID)
                    case 13:
                        document.getElementById("form1:tvoTable:commitButton").onclick();
                        doAjax();
                        break;
            function doAjax() {
                var item = document.getElementById("form1:inputText3").innerHTML;
                getAjax(item, "FULL");
            }Thanks,
    Heather

    Maybe try adding an af:script block in your jsp as a partial target in your backing bean when you commit to the database? We are doing something similar when we get a tab DisclosureEvent but the principle should be the same.
    In our jsp we have:
    <af:script id="scriptID" text="alert('javascript here');"/>
    In the backing bean we have:
    method(DisclosureEvent de) {
    // get a component somehow or the component, we get it from the disclosure event
    // but you could use a binding also. if you don't have the exact script element you need
    // to find it like we do below.
    UIComponent c = de.getComponent();
    // Find our real script component
    UIComponent target = c.findComponent(":scriptID");
    // get the adf context
    AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
    // add the script as a partial target.
    if(target != null) {
    adfContext.addPartialTarget(target);
    This relies on PPR though, which you may not be doing. If you are navigating to a new page you could set an indication in a backing bean and then access that in an <af:script> block in the new page or even generate the Javascript you want depending on your logic and access all of it via an EL binding on the af:script tag:
    <af:script id="scriptID" text="#{bbean.generatedScript}"/>
    Hope this helps!
    Steve

  • ADF Question: Set focus in table after ppr

    Hi all,
    I am using JDeveloper 10.1.3.3 with ADF and BC.
    In my table I have two editable fields, itemCode and quantity.
    When I hit enter in the itemCode, I execute a method in the backing bean, and the table is ppr refreshed.
    After that, I want the focus to go to the next field, quantity.
    I have tried following this example: http://www.bloggingaboutoracle.org/archives/focussing-conditionally-in-a-table-after-a-partial-page-refresh
    However, the focusItem string never has the row index included. So the focus never gets set correctly.
    Next I tried doing it via javascript, changing the focus after the event by adding a partial target to a script tag that sets the focus. However, the row index at this time is not what it was at the time of entering the itemCode.
    It looks like the rowIndex (ie: form1:table1:rowIndex:quantity) is changing after the ppr event. At the beginning (when entering the item) it is 0, but after the ppr, it is 1 or 3 or something else...
    How can I get this row id? OR how can I go about setting the focus to that next field (quantity) after the ppr?
    Thanks,
    Heather

    Hi,
    the row index should always be in synch with the underlying binding. So if you get the current rows position in the iterator then you know its index in the table
    Frank

  • ADF question: re-executing the view iterator which returns different rows

    Hi,
    I am terribly stuck in building one of my demos for
    an ADF seminar.
    I happened to created a view object which queries with
    rows showing up random lists such that:
    select a, b, c
    from sometable
    order by mod(DBMS_RANDOM.Random,50)+50
    and the result shows up fine. I wanted to display
    only one row, so I set up fetch size max to 1.
    in this way, I would get a random selection whenever
    I executed query to this view object.
    I created a data page where the results would show up.
    ok, so far so good. But I happened to notice that
    the randomly selected row would not change once it is
    loaded (pressing reload button on my browser did not
    refreshed the random selection). I knew this behavior,
    that the view object would cache the query once it
    is executed and not updated.
    So, I put an action event to invoke the 'Execute' method
    to this view object iterator. The selection now seems
    to be working randomly, but I also got error messages
    that says:
    You must correct the following error(s) before proceeding:
    JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33035: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[2 ]
    JBO-33035: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[2 ]
    I suspect this was because the newly selected row has different Key(primary key) to that of previously selected row, but I want to override this.
    is there any way that I may clear up the selection cache
    to tell ADF that the newly selected row is the current
    key in the row?
    Any suggestions are gladly welcomed.
    Regards,
    Howard Yoo

    repost

  • Why isn't there a TechNet forum for ADFS yet? They have been forwarding questions to the "Project Geneva" forum for years now.

    Why isn't there a TechNet forum for ADFS yet? They have been forwarding questions to the "Project Geneva" forum for years now.
    It would be nice if there was IT Pro specific forum. The MSDN Geneva forum has people who have programming questions for WIF in addition to people trying to get ADFS and Web App Proxy setup.
    WHY?

    Given the growing importance of Office 365 and the role of ADFS in some of the larger deployments, that may happen. Someday.
    It is somewhat arbitrary.
    AD DS, AD CS, AD FS, and AD RMS are all considered components of Active Directory.
    I suppose that's what the AD stands for...
    Yet, most ADCS questions are posted and answered in the Technet Security forum.
    ADFS questions are often referred to Project Geneva.
    Directory Services has its own forum.
    Group Policy has its own forum.
    +++
    If you look in "related threads", someone asked a question precisely about ADCS:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/f6abf662-7927-4f72-91db-433c95eddcc8/why-isnt-there-a-forum-dedicated-to-certificate-services?forum=winserversecurity
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

  • ADFS 3.0 WAP and Non-Claims-Aware Relying Party Trusts

    I am attempting to migrating a Windows Claims SharePoint page to ADFS 3.0 (Windows Server 2012 R2) and the WAP (Web Application Proxy) from UAG, but are running into problems when our external users attempt to authenticate.  Users from our external
    domain (call it Domain2.com) have been accessing our SharePoint pages via SAML tokens but when I attempted to move them to the new WAP and off of UAG, they get a http/500 error.  The WAP error log gives the following:
    Warning Event ID 13016 - Web Application Proxy cannot retrieve a Kerberos ticket on behalf of the user because there is no UPN in the edge token or in the access cookie
    Error Event ID 12027 - Web Application Proxy encountered an unexpected error while processing the request. Error: The specified username is invalid. (0x8007089a).
    I presume the Error Event ID 12027 is because there is no UPN in the token and we are using KCD/Kerberos so I need to pass a UPN.
    The ADFS server and WAP are joined to Domain1.com.  Domain1.com is Active Directory and there is an account for every user in Domain2.com that is allowed access to our SharePoint Sites.  These account contain the standard
    info... UPN, Email Address, sAMAccountName, etc.  The UPN, Email, and sAMAccountName do not always match the accounts with the Domain2.com accounts; however, we have been using an Active Directory Field labled employeeNumber that is synchronized
    on both domains and we have been using a custom lookup based on the employeeNumber in AD.
    When login's occur via Domain1.com, no problem, the UPN is pulled from the Active Directory Claim Provider Trust.  When a user attempts to access from Domain2.com, we have configured ADFS to forwards them to an STS that collects the employeeNumber
    from Domain2.com via a Web Auth SAML token.  We are able to use the SAML token if we use the standard Claims-Aware Relying Party Trust (CARPT) and convert our SharePoint sites to use the trusted URN via powershell scripts, but we are trying to retain
    functionality similar to how we are using UAG so we don't want to change every single SharePoint site to the SAML configuration, hence we are trying to use the Non-Claims-Aware Relying Party Trust (NCARPT)
    Problem1: When we are using CARPT we can configure the custom translation for our employeeNumber lookup in AD.  But CARPT uses SAML Tokens not Kerberos Tolkens so we cannot login when SharePoint is configured for Kerberos.
    Problem2: When we are using NCARPT it works great when authenticating via local (Domain1.com) credentials and look's up the user in AD, but when we attempt to authenticate with remote (Domain2.com) credentials we are unable to configure the employeeNumber
    lookup and ADFS doesn't just go out and make that correlation on its own.
    Question1: Can I configure CARPT to use Kerberos?
    Question2: If not, can I configure NCARPT to lookup the AD employeeNumber, match the UPN, and add the UPN to the token?
    Question3: If neither option is available, am I just stuck with UAG or is there something out (not scheduled for EOL) there that can handle the translation between SAML and Kerberos Tokens?
    Let me know if I left something out, I tend to ramble, but not sure of all the info that is needed...

    Hi,
    Based on the description, is there trust between domain 1 and domain 2? If not, we can try to create trust between these two domains to see if it helps.
    Regarding Event ID 13016 and Event ID 12027, the following article can be referred to for more information.
    Web Application Proxy Troubleshooting
    https://technet.microsoft.com/en-us/library/dn770156.aspx
    Besides, for ADFS questions, in order to get more and better help, it's recommended that we ask for suggestions in the following forum.
    Claim based access platform (CBA), code-named Geneva
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
    Best regards,
    Frank Shen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • What are ADF Business Components??

    ADF BC is running in my mind
    Can anyone tell what do they look like??
    are they different from any of the components which we develop such a EJB or any JSF components??
    revert back ASAP

    ADF Business Components is enhanced in 11g, but it is production now in JDeveloper/ADF 10.1.3.
    The ADF Learning Center [http://www.oracle.com/technology/products/adf/learnadf.html] has our latest resources for enterprise 4GL Developers getting started with Oracle ADF. This includes the complete ADF Developer's Guide for Forms/4GL Developers [http://www.oracle.com/technology/documentation/jdev/b25947_01/index.html], a companion sample application [http://www.oracle.com/technology/products/jdev/samples/srdemoadfbc.html], and a companion step-by-step tutorial [http://www.oracle.com/technology/obe/ADFBC_tutorial_1013/10131/index.htm].
    To complement the free Developer's Guide from Oracle, you might be interested in the Oracle Press title Oracle JDeveloper 10g for Forms & PL/SQL Developers: A Guide to Web Development with Oracle ADF [http://www.amazon.com/Oracle-JDeveloper-Forms-SQL-Developers/dp/0072259604].
    There is an instructor-led course for Oracle ADF For Forms/4GL Developers [http://education.oracle.com/pls/web_prod-plq-dad/show_desc.redirect?dc=D18384GC10&p_org_id=1001&lang=US&source_call=].
    Potentially of interest to any former Oracle Forms or Oracle Designer user is the additional Oracle JHeadstart for ADF [http://www.oracle.com/technology/consulting/9iServices/JHeadstart.html]extension for JDeveloper. This is a complete web-tier page generation solution that has its own step-by-step tutorial [http://www.oracle.com/technology/products/jdev/tips/muench/jhstutorial/index.html?_template=/ocom/technology/content/print] so customers can evaluate whether it might benefit their developer productivity. The JHeadstart Features/Benefits document is here [http://www.oracle.com/technology/consulting/9iservices/JHeadstart%20White%20Paper.pdf] (pdf).
    The OTN J2EE for Forms Devs [http://otn.oracle.com/formsdesignerj2ee] home page has additional resources of particular interest to Oracle Forms developers.
    Last but not least, the JDeveloper OTN Discussion Forum JDeveloper and ADF is a great resource to ask JDeveloper/ADF questions of your peers and Oracle employees working on/with the technology.
    Hope this helps

  • Why need to update ADF BC connection details for ensuring deployment??

    I know it is a ADF question but still posting in this forum as it was encountered deploying a BPM application on OBPM 11.1.1.6. I get a bpm project from the internet and decide to test it out on my local. The objective was to populate the payload of the process dynamically i.e. based on the selection made by the participant on the UI (a ADF Business Component from a database table is created and rendered on the task form for the user to select). I imported the code on my JDev and changed the JDBCDataStore for both <Module>Local & <Module>Shared in the runtime configurations of the application module to point to a Data Source that I created on my WLS.
    Assuming that's all was needed to test out, tried to deploy the application on my WLS. The deployment failed with a logon - usname/pws 'mismatch' issue. This was quite strange because I had tested the DataSource after creating it. It took a while for me to figure out that it wasn' the JDBCDataStore that was causing the issue but looks like the creator of the application had created a database connection to connect to his / her local database to create the business components for the application. I had to update correct 'uname/pwd' (i.e. the one on my local) to make the deployment work.
    Now, coming to the question - I believe database connection is more a design time configuration to create the business components ?? Once they are created in the project, the deployment should be agnostic of the environment as long as we are updating our runtime configurations correctly? Somebody please help out understanding this. With my limited understanding of ADF I would rather have an expert comment and clarify this.
    Thanks,
    gsr

    Uncheck "Auto generate and synchronize weblogic-jdbc.xml Descriptors during deployemnt" in Application properties -> Deploymennt -> EAR used for deployment
    refer
    http://theblasfrompas.blogspot.in/2010/05/jdeveloper-11g-adf-deployment-using.html

  • Oracle ADF breakline in JAVA

    I'm using oracle adf to display a table.
    The results in my 'notes' field have /n in the table to represent a new line. Oracle ADF does not separate the lines. I want to manually modify the string to display the break line.
    The string looks like: return new String(getAttributeInternal(NOTES).toString().replace("\n", "\n"));
    That however is not working, anyone know a working solution?

    Dayke wrote:
    return new String(getAttributeInternal(NOTES).toString().replace("\n", "<br/>"));
    I get a bunch of
    's in the string where a break should be.
    That would probably work if I could escape it some how.This really is an ADF question and shouldn't be asked in this forum.
    You won't be able to "escape" this, you'll have to see what you can do in ADF. It would appear that somewhere ADF is using something like JSTL out to properly escape any HTML it finds. So the bottom line is that you would have to use HTML, but you can't either. So you'll have to read the relevant documentation and see what you might be able to do. I would suggest that you probably don't actually really want to insert line breaks at all but just format the width of the containing element appropriately. Not using something like out makes your application open to cross-site scripting attacks.

  • ADFS setup for external access

    Hi all, I would like to setup ADFS for the following scenario below:
    Internal intranet:
    URL: https://intranet.acme.com
    domain: ACME
    ACME domain users: Acme\johndoe
    External Vendor:
    domain: ABC
    ABC domain users: ABC\lucysmith
    Goals: allow external vendor users ABC domain access internal intranet
    https://intranet.acme.com via SharePoint-ADFS
    Questions:
    1. Do I need to setup ADFS on both ACME & ABC domain or just one side? If it is one side, then which one - ACME or ABC?
    2. When I setup SharePoint web application for
    https://intranet.acme.com, will this URL will be served for both internal and external users or do I have to extend it as different URL for external users?
             a. If
    https://intranet.acme.com served for both internal and external vendor users, will internal user get normal NT prompt for authentication or it will redirect to ADFS login page just like external user?
             b. If we need to extend web application for external vendor user, let's say
    https://abcexternal.acme.com, will we only need to config adfs for this extended web application so external vendor user will get adfs redirect login where internal user got NT prompt for authentication?
    Thanks

    Hello
    1) you would  need to setup ADFS on ABC and configure SharePoint to consume their ADFS token
    2) I would recommend enabling a default zone for NTLM and extend that to use for your ADFS users (intranet)
    MCITP-EA | "Never test how deep the water is with both feet"

  • Trouble with ADFS: SAML tokens sent with missing attribute for most test users

    About two months ago, I set up an ADFS server to authenticate our users for another agency's website. I granted three users access to the website (by adding them to specific combinations of AD groups), and everything seemed to be working quite well.Then last week, my boss asked me to add another user to the required groups to grant them access. I did so, and he called me back about 30 minutes later to say that the newly authorized user was unable to access the website. After entering his credentials, he receives a 'webpage cannot be displayed' error. I have since added several other users, with mixed results: a few can log in with no issue, but most receive the same error.
    After corresponding with the other agency (a torturously slow process), they sent me SAML responses for two of our test users: one working, one failing. The SAML...
    This topic first appeared in the Spiceworks Community

    Hi,
    >> event id 342 "-This user can't sign in because this account is currently disabled "
    For this event, the following article can be referred to as reference.
    Troubleshooting token acceptance problems with AD FS 2.0
    https://technet.microsoft.com/en-us/library/ff641740(v=ws.10).aspx
    Based on the description, for ADFS questions, it's recommended that we ask for advice in the following forum.
    Claims based access platform (CBA), code-named Geneva
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
    Best regards,
    Frank Shen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • ADFS is asking users to select site

    Hi,
    We have ADFS and ADFS Proxy implemented.
    we are facing the issue , we more that 30 relying party trust created for different customers.
    once of our customer is facing problem is , when their application re-directs authentication to ADFS(externally) it landing to ADFS home realm page. i.e. its asking to select site from the drop down and click on log-in.
    by this way our customers info getting exposed, how block this and provide user to get only ADFS username password webpage.
    created relying party trust manually and we are using custom claim rules.

    On Mon, 22 Sep 2014 16:00:33 +0000, Ragavendra Dayakar wrote:
    We have ADFS and ADFS Proxy implemented.
    ADFS questions should be posted to:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
    Paul Adare - FIM CM MVP
    "The Unix phenomenon is scary. It doesn't go away." -- Steve Ballmer

Maybe you are looking for