definition of the attributes in the context of faces.

Dear all,

Attributes can be set in instance.programatically FacesContext. If so, how.
I just read a book where I found this.
Finally, note that, thanks to the new custom field feature, it is possible to store
beans managed within the scope of attributes FacesContext declaring < managed beanscope > # {}
facesContext.attributes} < / managed-bean-scope > in the XML declaration for
the bean managed
how can set the attribute programmatically?

Kind regards
David

Version of the component
=========     =======
11.1.1.59.23 ADF business components
Java (TM) Platform 1.6.0_21
Oracle IDE 11.1.1.4.37.59.23
Support versioning 11.1.1.4.37.59.23

This is part of JSF 2.0

Docs [url http://download.oracle.com/javaee/6/api/javax/faces/context/FacesContext.html#getAttributes ()] here

For example, you can't use it in the current version of the ADF.

A quick Google confirms it (your book is [url http://books.google.co.uk/books?id=aNRq-8GlRYQC&pg=PA82&lpg=PA82&dq=Finally,+note+that,+thanks+to+the+new+Custom+Scope+feature,&source=bl&ots=U2j1a2lsrf&sig=oUxWgkTuuyzlzpTcRfcB_69e2C0&hl=en&ei=C7yBTZexNsHRhAe0vsGzBA&sa=X&oi=book_result&ct=result&resnum=1&ved=0CBcQ6AEwAA#v=onepage&q=Finally%2C%20note%20that%2C%20thanks%20to%20the%20new%20Custom%20Scope%20feature%2C&f=false]about JSF 2) If you wanted to find out more about How do it, I guess you can read Chapter 13...

John

Tags: Java

Similar Questions

  • How to see the values of the attributes of global context?

    Hi friends,

    There is a context (namespace) in DBA_CONTEXT and DBA_GLOBAL_CONTEXT. But it is not available in SESSION_CONTEXT and ALL_CONTEXT. (It is only on the schema in the instance).

    The context Type is ACCESSIBLE on a GLOBAL scale. My version of Oracle's 11g 2. Please help me to find the values of the attributes of the context. Thanks in advance.

    Try to use the GLOBAL_CONTEXT instead...

    See http://docs.oracle.com/cd/E11882_01/server.112/e17110/statviews_5126.htm#REFRN29087.

    Gerard

  • oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: Houston-25058: lastpaiddt definition of the attribute type is not found in LoanUpdateVO1

    Hello

    I created a based EO VO in which a column is recovering value per query:

    VO request is:

    SELECT principalEO.LOAN_ID,

    principalEO.LOAN_NUM,

    principalEO.DESCRIPTION,

    principalEO.FROM_DT,

    principalEO.TO_DT,

    principalEO.COMP_ID,

    principalEO.COMPANY_NAME,

    principalEO.PROJECT_ID,

    principalEO.PROJECT_CODE,

    principalEO.PROJECT_NAME,

    principalEO.LOAN_AMT,

    principalEO.LOAN_SANCTIONED_AMT,

    principalEO.LOAN_DISBURS_AMT,

    principalEO.LOAN_PROCESSING_CHARGES,

    principalEO.INTERST_RATE,

    principalEO.INTEREST_AMT,

    principalEO.PRINCIPLE_REPAYMENT,

    principalEO.TDS_RATES,

    principalEO.SYNDICATION_FEES,

    principalEO.SYNDICATION_PAID_TO,

    principalEO.VENDOR_ID,

    principalEO.VENDOR_NAME,

    principalEO.VENDOR_SITE,

    principalEO.INSTITUTION_TYPE,

    principalEO.LOAN_TERM,

    principalEO.LOAN_TYPE,

    principalEO.SECURITY_DET,

    principalEO.REMARKS,

    principalEO.INVOICE_FLAG,

    principalEO.EMI_DATE,

    principalEO.DISBURS_DATE,

    principalEO.ATTRIBUTE4,

    principalEO.ATTRIBUTE5,

    principalEO.CREATED_BY,

    principalEO.CREATION_DATE,

    principalEO.LAST_UPDATE_DATE,

    principalEO.LAST_UPDATED_BY,

    principalEO.LAST_UPDATE_LOGIN,

    principalEO.EMI_AMT,

    principalEO.EMI_AFTER_MONTH,

    (select from_dt in the omx_sec_loan_repay where loan_num = principalEO.Loan_num and paid_amt is null and rownum = 1) AS LAST_PAYMENT_DT

    OF OMX_SEC_LOAN_PRINCIPAL principalEO

    now I have to apply validation, from date should not be before Last_payment_dt

    Controller code I've written is:

    If (pageContext.getParameter ("updateloan")! = null)

    {

    String LoanNum = (String) pageContext.getParameter ("LoanNum");

    OAViewObject vo = (OAViewObject) am.findViewObject ("LoanUpdateVO1");

    Line OARow = (OARow) vo.getCurrentRow ();

    Date FromDt = (Date) row.getAttribute ("FromDt");

    System.out.println ("date is:" + FromDt);

    Date lastpaiddt = (Date) row.getAttribute ("lastpaiddt");

    System.out.println ("date is:" + lastpaiddt);

    }

    When I turn the page, error:

    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: Houston-25058: lastpaiddt definition of the attribute type is not found in LoanUpdateVO1

    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException (unknown Source)

    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors (unknown Source)

    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)

    at _OA._jspService(_OA.java:71)

    When I give another deposited instead of lastpaiddt, it works fine...

    Hello

    Looks like the attribute is missing, can you check if the attribute named "lastpaiddt" exists under LoanUpdateVO1?

    Right-click on LoanUpdateVO1 - > properties - > list of attributes - > and check if the missing attribute exists

    Kind regards

    Had

  • Definition of the attributes of cells of labels

    Hi all

    I would like to define the layout of the cells in the table of labels. For a point page this is possible by setting the attributes of the cell of the label (e.g. "class ="xy"").
    But how this can be done for all labels? In the definition of the label model there is no 'access' to the surrounding table cell.
    At the end there should be something like this:
    ...
    < class td = "yx" >
    < label >... < / label >
    < table >
    where the class attribute of the td element is defined at some point all the elements.


    Any ideas?

    Thanks in advance.

    RG
    Lukas

    The first option is not not to use a class at all: there are other CSS selectors. For example, all the generated APEX motor form layout tables are assigned to a class of *formlayout*. Page 7 of the sample Application, all labels are just aligned by giving their table cells containing an align = "right" attribute. So we can style these cells using a combo of descendant/attribute selector (assuming that IE7 is in standard mode for these):

    .formlayout td[align="right"] {
      padding: 0 0.5em;
      background-color: #ccc;
    }
    

    However, if it is necessary to apply a class , creating a dynamic Action is a way to do this.

    Implementation:
    Advanced

    Identification:
    Name: Add yx class
    Sequence: 10
    Action: Run the JavaScript Code

    When:
    Event: Page load

    Real actions:
    Action: Run the JavaScript Code
    Code:

    $('label').parent('td').addClass('yx');
    

    This dynamic Action uses jQuery to apply a class of *yx* for all the table cells which are the parent of a label element when the page is loaded.

  • [FAD] How to access the attributes of node context menu?

    Hello

    I work with the component Tree ADF:

    < af:tree value = "#{bindings." Var TreeVO.treeModel}"="node">

    < f: facet name = "nodeStamp" >

    < af:outputText value = "#{node." Label"}

    ID = "NodeLabel don't" / >

    < / f: facet >

    < f: facet name = "contextMenu" >

    < af:popup id = "RemoteTreePopup" childCreation = "deferred."

    autoCancel = "disabled" >

    < af:menu text = "menu 1" id = "m1" >

    < af:iterator id = "i2".

    value = "#{bindings." CtxMenVO.collectionModel}.

    var = 'Elément' >

    < af:commandMenuItem text = ' #{element. " Label} / #{node. Label} '...

    What I expect: when I right click on a node (represented by the output text "node label", a context menu appears with 'element-label/clicked-node-label')

    What I see: the output of the node text is ok, but #{node. Label} has no value < af:commandMenuItem

    How can I recover the node.label of commandMenuItem?

    Hello

    setPropertyListener must go inside the popup.

    
        
    

    Also think about using contentDelivery = "lazyUncached" in the context menu

    Kind regards

    Ruben.

  • Problem with the definition of the Application context Variable

    Hi all

    In our application, we use political VPD. We use the app context variables to store session level settings. When I'm trying to set the value of context separately through SQL PLUS he started after the exception.

    ORA-01031: insufficient privileges
    ORA-06512: at "SYS." DBMS_SESSION", line 90

    But the same works very well a procedure. When I am executing the procedure it works fine.

    Can anyone of you pls help me?

    user12097713 wrote:
    Hi all

    In our application, we use political VPD. We use the app context variables to store session level settings. When I'm trying to set the value of context separately through SQL PLUS he started after the exception.

    ORA-01031: insufficient privileges
    ORA-06512: at "SYS." DBMS_SESSION", line 90

    But the same works very well a procedure. When I am executing the procedure it works fine.

    Can anyone of you pls help me?

    I assume that you have created the context related to the packaging?

    Create context SOME_CONTEXT using SOME_PACKAGE;
    

    When you do this, the ONLY place you can set the values of context is the specified package. If you cannot change it directly, you must call the package (whatever the process change it and is available).

    This is a safety mechanism, so you can't do whatever it is that you're probably trying to do :)

  • Dynamic buffers / Dialog Box with the context Menu (or list box)

    Hi people,

    I did experiment with stamps dynaimc for awhile and I got pretty far with this topic. I can not make it work are the context menus (or list boxes) in dialog boxes. The context menu is displayed correctly in the dialog box, but there is no content even though its meaning. The javascript of the definition of content looks like:

    It corresponds to a group of Popup in the PDF file named 'Test '.

    popupGroup: 'Test ',.

    listItems:

    [

    {popupItems:}

    {

    The list of items of the context menu, positive number indicates the default selection

    'Test 1': + 1,.

    'Test 2':-1.

    'Test 3':-1.

    "Test 4":-1,.

    'Test 5':-1

    }

    }

    ]

    You have no idea what's wrong with the code above?

    I did a quick check of your code, and there is a problem with an exception that is thrown in this line: return Collab.user;

    If you take this point, the code works correctly. Why do you use the Collab object?

  • Call the procedure to set the context before interactive report refreshes the data

    Hi guys,.

    I have a question mind an interactive report which takes the data in a view.

    The problem is that whenever I take the data from the database I need to define a context (user name and password) before running the query so the view will be taken into account the context and return only the lines that I have access.

    Everything works fine when I'm first loading of the page: I have first to define the context, then load all the data I need on the page, including the IR. But when I try to apply IR filters, or even don't go to the next page no data is returned. I believe this happens because the context is not defined before the execution of the query to load the data and I don't seem to find a way to put it.

    I tried to add a dynamic action on some events on IR (change, clicking, etc.) that executes the procedure to set the context, but without success - even if the event is raised, the report still doesn't return any data.

    Can someone help me with this issue please?

    Florin

    Use the attributes of application security Code PL/SQL of the initialization/cleanup of the database Session to do this: http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/bldr_attr.htm#HTMDB28929

  • What happened to "Show the context Menu" in Dreamweaver CS6?

    I use Dreamweaver for several years now and through several different versions. In Dreamweaver 8, under behaviors, I had "Show the context Menu" as a way to create attractive menus. In CS6, it is gone now. Is there a way to recover or at least another way to add context menus?

    The menus that were part of the old version of DW using javascript have been deprecated.  In addition, the CS6 Spry functionality has been deprecated.  As a result, you end up with a few options.

    Option 1 - get an add-on Exchange (Adobe Modules ) or third-party sources like PVII ( Projectseven.com - products ).

    Option 2 - consider a framework or a CMS that comes with a menu drop down menu code or UI admin option keep the menu.

    Because you always have a menu on your website, for now, you should be able to modify the code in order to maintain the menu, but moving forward I would definitely look for an alternative solution.

  • How to add "Look it up in lexicon" to the context menu?

    Hi all! The title says it is in fact... When I highlight a word in a text donnΘ, is possible to add an item to the context menu - > search in the lexicon or Contextual menu - > Services - > search in the lexicon (or whatever it may be called).

    I mean by local "lexicon" built in the dictionary as part of Mac OS (El Capitan in my case).

    Any help will be greatly appreciated!

    Try to open system preferences > keyboard, look in the tab shortcuts.

    Title services in the sidebar, there should be a section 'search' with an option to activate the context menu item 'search in the dictionary'. Allow it to appear in the right click menu "contextual".

    p.s. This is an earlier operating system, it may have changed.

  • Just updated to 38.0.5 and now when I right click on a bookmark to edit, the context menu is grayed out and it won't let me. Why?

    I read a lot of web comics, so I change the bookmarks for them on a daily basis on the last page on each site. I just tried to do that tonight after you install the 36.0.5 update, now when I right click on the bookmark in the menu, I have yet to get the context menu, but all the options are greyed out. He was most certainly not in this way the last night before the update. That is what it is?

    Oops, it's probably the bug to customize. After using customize it, most of the items on the context menu are gray to the bookmarks Menu in the classic menu bar.

    It does not affect the button drop-down bookmarks menu *, and it does not affect the bar Favorites (Ctrl + b). And if you launch a new window (Ctrl + n), he works on the menu bar, too. Very strange.

    I don't know when this is going to get it fixed but at least you know a few places to access the properties for the moment.

    Which doesn't seem to be the problem?

    One on the taskbar near the star

  • The context menu 'this framework' is missing

    There are two users in question, the two Firefox running on Windows 7 36.0.1. When right clicking on a frame in a Web site, they have a context menu option 'the framework', echoes cascading on to provide various actions you can take (this frame printed, etc.). The other user doesn't have this option. To the best of my knowledge, the two users are running installs similar: the default collection of plug-ins that are enabled in our enterprise environment, they do not have twisted all topic parameters: config, etc. Why 'This framework' context menu would only not available for one of them? Is there a way to force be activated?

    I found it...

    I re-read your posts tonight and spent some time tinkering with Firefox on my machine at home (36.0.3 on Win8.1). I was watching my mailbox in OWA, which has a shared mailbox added as well. I discovered that the messages in the shared mailbox Inbox had the option of this framework in the context menu, while the Inbox has no messages in my personal mailbox.

    A little back of comparison and I finally noticed: display the list of my Inbox is configured to display Conversations by Date (see screenshot). However, the shared mailbox Inbox had the Conversations view option deselected.

    When the Conversations view option is disabled, OWA displayed each message in the reading pane in a frame. In Conversations mode, it seems to use CSS for the reading instead of this pane.

    Thank you for your help is in the right direction.

  • I use Firefox for a kiosk application. Can I disable the context menu and zoom?

    I use Firefox for an application kiosk on a touch screen monitor. I will prevent users from interacting with the browser interface. Is there a way to do this? Disable the context menu and zoom for the touch gestures could prevent users from getting into a State where they are unable to use the application.

    Hi TrevorTubbs, you can disable the zoom in the browser with the method described in http://kb.mozillazine.org/Locking_preferences & locking these preferences:

    lockPref("toolkit.zoomManager.zoomValues"; "1");
    lockPref("zoom.maxPercent"; 100);
    lockPref("zoom.minPercent"; 100);
    

    I'm not sure if disabling the context menu...

  • Firefox won't let me copy the web address of the bar using the context menu with the second mouse button or trackpad to address

    Hello!

    I am writing to report a problem I have with the new patch v35 and v35.0.1 Firefox address bar

    With the new version 35 of Firefox on Mac OSX Yosemite, clicking with the right mouse button in the address bar to copy the web address, a context menu DO NOT allowed to copy the link, he shaded in grey, inactive... you click on an other browser zone before returning to click a second time and be able to copy the link in the context menu

    I mean, with the first right click on the menu bar that appears to address do not allow me to copy the link directly, you must click another area and then click again with the right mouse button in the address bar to copy the Internet address (happens to all pages)

    I tried to open Firefox plugins and completed inactive and reset Firefox on first use (as the first installation) and the problem is here again... The problem with or without add-ins and plugins is here

    What happens before and then when I format my computer

    Here I put a screenshot that explains the problem better than my words
    http://i.imgur.com/QxKd8P1.gif

    I hope you can help me

    Hello

    I want to just inform you that with the new version 36 of Firefox, this problem has been corrected in my browser
    Now I can access the copy option in the context menu directly in the address bar
    Thanks for the replies

  • Make a right click on the e-mail list no longer opens the context menu.

    Hello world
    Thunderbird collapsed to display the context menu on the mailing list recently. Make a right-click displays just the cross line. What is the problem could be?
    Thanks anyone for any help.

    Win 8.1 64
    Thun 31.3.0

    Very strange.
    Make a right click on the email list should open a menu drop-down.
    Usually a line crossed through something means that it is marked as deleted in an imap e-mail account.

    See if there is a conflict with an add-on.
    Restart Thunderbird in safe mode.
    Help > restart with disabled addons.

    then run the same test; Right click on the email list.
    Do you get the drop down, if so, then one of your addons is the origin of the conflict.
    You'd have to disbale each in turn to find what the problem is.
    Maybe the addon should update.
    Report on the results.

Maybe you are looking for