ADF11g: problem with extracting value from a choice of select

Hello
I use ADF 11 g.

in my application using a view object (VO1), I had created a select only one option.

My view (VO1) object is to have two fields:
Product
Price

In select a choice I display only the product.

My requirment is to fetch the price of selected product. To do this, I wrote under the piece of code:
FacesContext facesContext = FacesContext.getCurrentInstance ();
Application app = facesContext.getApplication ();
ExpressionFactory elFactory = app.getExpressionFactory ();
ELContext elContext = facesContext.getELContext ();
+ ValueExpression valueExp = elFactory.createValueExpression (elContext, "#{bindings.") Price.inputValue}", Object.class); +.
+ String pricingAttrValue = (String) valueExp.getValue (elContext); +

Above the code price is an attributeName mapped in pageDef.xml

* But the problem I am facing is: *.
When I try to retrieve the value of the price of the selected product, I get the value of the product you selected previously.
To better understand:

On the value change event to select only one option, we get 2 values:
getOldValue()
and getNewValue()

* with the above code, I get price associated value OldValue while I need price value NewValue.*


Help, please
Thank you best regards n
Maryline Roussel

Hello

You could do something like:

BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
ControlBinding cb = bc.getControlBinding("attributeName");
AttributeBinding ab = (AttributeBinding)cb;
ab.setInputValue(valueChangeEvent.getNewValue());

Gabriel.

Tags: Java

Similar Questions

  • I have intermittent problems with iphoto importing from iphone since 0sx 10.11.6. Update

    I have intermittent problems with iphoto importing from iphone since 0sx 10.11.6. -Update

    1 iphoto sees not iphone - restart

    2 iphoto sees iphone but says "no pictures" - restart

    3 Iphoto sees phone and photos and I click Import all or import selected - then I have problem of file format and nothing is imported

    NOTE: I have similar problems with image capture - sometimes you can see the phone and photos, and sometimes is not

    I have an imac 2015 - execution of yosemite

    Help my new iphone because 7 is coming today and I am terrified of the transfer.

    Not sure, but in any case iPhoto is a dead - it would be really smart to learn pictures (a totally new and different program with a learning curve and different workflows)

    With the help of pictures with my new iPhone 7 and iCloud photo library all works well without any problem - nothing different photos with my iPhone except the news and the best quality Photos 5

    LN

  • Laptop had a problem to "Solve a problem with PSIKey", solution from Windows & installed according to the instructions. How will I know that the problem is solved?

    has stopped working properly.

    An update is available that solves this problem.

    Downloaded Update site Web Protexis, Inc. and told to follow the steps in the installation wizard. The file downloaded and said he was setting up installation. Then after a few seconds, the box has disappeared and nothing else happened. How will I know if this problem has actually been resolved? My laptop has shown 6 problems with this unit from 30/07/11-08/12/11, where the unit has stopped working. Because I don't know what it is yet, I don't know really if the problem is solved or not. What should I do at this point? I have a SP2 7520-5185, running Vista Home Premium, Acer-Aspire. Thanks for any help you can give.

    Hello

    If you have installed a trial or paid a licensed version of Corel software products, you probably may notice a third unannounced software application makes its way into your computer too. The program is PSIService.exe by Protexis, which installs a Protexis V2 of Licensing Windows operating system service or Protexis licensing service.

    PSIService belongs to protect DRM (digital rights management) copy protection and license management software, which is intended to protect an application or software against piracy and illegal copying. Thus PSI service is normally installed by another program, such as Corel Paint Shop Pro Photo X 2, Corel Paint Shop Pro XI (X 1), Corel Paint Shop Pro X, that uses its service to collect information of license to repatriate much like spyware, protect copy and authenticate the user who is using an authentic version of the program.

    When you tried to download and install the program, if the box that says closed the dialog box when the download is complete has been verified, it will close the dialog box.

    I suggest that you restart the computer and check if you get an error message.

  • I just looked at problems with importing files from nikon D810 in LR 5.7 it pop a window saying it can't read the files to work on an imac 27 "yosemite on my mac pro running after several times he finally managed to read files and import them into LR

    I just looked at problems with importing files from nikon D810 in LR 5.7 it pop a window saying it can't read the files to work on an imac 27 "yosemite on my mac pro running after several times he finally managed to read files and import them into LR, I never had this problem before there was a sort of update that could from cause?

    What is the destination folder that the date be underneath?  In the top right it says users who suggests, you try to put the photos on top of your username instead of under your username.  Maybe that's the problem.  So change your folder in the drop-down list at the bottom right of what it should be rather than users, and if you're going to show us the destination of your photos at least scroll through the list of folders down right so that we can see which is the white highlight.

    Here is how mine looks like if I want to put my photos imported under my subfolder users - Steve - photos by date:

  • Populating a drop-down menu form with the values from MySQL database

    I'm creating a simple CMS that will allow staff to add new items on their site (sale of furniture).

    I want them to be able to choose from the list of values for some fields to ensure that the items are displayed on the website correctly (IE to avoid typos etc.).

    I have spent a lot of time to trawl forums and have so far obtained the code below.  When it was working I could only get the dropdown menu options of data contained in the database, as opposed to the list of DEFINED values that initially, I would put in my database.

    For example under the field named 'Type', I assigned these values: all ('table', 'chair', 'buffet', 'convenient', 'bottles', 'library', 'mirror', 'drawers','s chest', 'display', 'tvunit', "bedside", reads, "wardrobe", 'dressingtab', 'blanketbox', 'Office', 'filing cab', "workstation")

    Here's what I want to display in the drop-down, not only the five values of elements already in it.

    However, my CMS page is nothing display now not in the drop down and I can't understand why not!

    So my question is, first of all any ideas what's wrong with my code?  And second, how to fill the bottom of the fall with SET values?

    Thank you very much in advance for your help!

    I didn't want to bore you, then the code below is just the bit that is relevant to my question, rather than any connection $POST and info php etc.

    It is in my code php at the top of my page

     $sql = mysql_query("SELECT DISTINCT id, supplier, room, type, material, finish, bespoke, image FROM furniture ORDER BY ASC");
    
                        while($row = mysql_fetch_assoc($sql))
                        {
                    $supp .= "<option value=\"{$row['supplier']}\">{$row ['supplier']}</option>";
                    $room .= "<option value=\"{$row['room']}\">{$row['room']}</option>";
                    $type .= "<option value=\"{$row['type']}\">{$row['type']}</option>";
                    $material .= "<option value=\"{$row['material']}\">{$row['material']}</option>";
                    $finish .= "<option value=\"{$row['finish']}\">{$row['finish']}</option>";
                    $bespoke .= "<option value=\"{$row['bespoke']}\">{$row['bespoke']}</option>";
                        } 
    

    It's in my html code

    <form action="<?php echo $editFormAction; ?>" method="POST" enctype="multipart/form-data" name="form1"  id="form1">
    
                    <label for="supplier">Manufacturer</label>
                    <select name="supplier" id="supplier" title="<?php echo $row_add['supplier']; ?>" >
                      <? echo $supp; ?>
                     </select>
           
    
                     <label for="room">Room</label>
                    <select name="room" id="room" title="<?php echo $row_add['room']; ?>" >
                      <? echo $room; ?>
                     </select>
    
                           <label for="type">Type</label>
                          <select name="type" id="type" title="<?php echo $row_add['type']; ?>">
                           <? echo $type; ?>
                          </select>
       
    
                          <label for="material">Material</label>
                          <select name="material" id="material" title="<?php echo $row_add['material']; ?>">
                          <? echo $material; ?>
                              </select>
           
                              <label for="finish">Finish</label>
                          <select name="finish" id="finish" title="<?php echo $row_add['finish']; ?>">
                            <? echo $finish; ?>
                              </select>
       
                           <label for="bespoke">Can be made-to-measure?</label>
                           <select name="bespoke" id="bespoke" title="<?php echo $row_add['bespoke']; ?>">
                          <? echo $bespoke; ?>
                          </select>
    
                                  <input type="Submit" name="Add" id="add" value="Add" />
                          <input name="date" type="hidden" id="hiddenField" value="<?php echo $todayis['date']; ?>">
                          <input type="hidden" name="MM_insert" value="form1" />
                          </form>
    

    > So, don't you think not with my different approach?

    Yep, that's how it should be done.

    Note the OP also mentioned that they are filled with 6 drop-down lists:

    > 6 fields I want to post, drop downs in my a form are: provider, room, type of material, finish and custom.

    So you can create a table for each separate... but what I would probably do is store everything in a single table (depends of if you need to store additional information or if it's just a list of choice):

    optionsTbl

    Category ID value

    ------------------------------

    1 provider abc

    2 vendor xyz

    3 living room

    4 dining

    Enter values using a set of multiple records in the query: Select value of optionsTbl category WHERE = 'suppplier. " Select the value optionsTbl category = "room"; etc.

    Then fill the drop-down lists by looping through each query in the recordset and use next_result() to perform a loop on the next game.

  • Problem with the value by defect of the shuttle and transfer to the following site

    Hi alltogether.

    We have a problem with a shuttle service on a page at the Apex.

    The shuttle is filled by a pl/sql in a database and then wanted the values that are already in the database for that user defined by default on the right side of the shuttle.

    For the satisfaction that we used the way mentioned in the blog here:
    http://dgielis.blogspot.com/2008/01/Apex-by-example-default-value-of.html

    It worked well.

    Now we have a problem, and somehow, we can't find a solution here in the forum, or through google.

    By clicking Next, to have passed on to the next page in the workflow the default values sort are removed.

    If I look in the Session before the transfer, I see IDS are loaded as default values, but after clicking Next, the validation gives an error (the shuttle is not allowed to be null) and then the IDS are deleted when the session...

    We don't know where it comes from and hopefully someone here might be able to help us...

    Greetings
    Chris

    P.s: Don't mind my English please is not my native language

    Chris,

    As you say NOT NULL validation fails, but the session shows the values before you hit the other, pick up a calculation process or submit before calculations and Validations that might be reset the shuttle.

    Have you tried running the page with debug and observing the execution path?

    If no aid above maybe you can do a test on apex.oracle.com case?

    Kind regards

  • I have a problem with importing photos from iphone to photo

    I have a problem with importing the photos from the iphone to the photos. I have the OS X El Capitan 10.11.1

    It seemed to me that I can't push the button import. It is grayed out.

    Your picture-click the camera icon to add a picture

    How the phone is connected?

    LN

  • Problem with some values in the round of text

    Hello

    I have a problem with the control of the "ring of text.

    In my software, I need to update the values of ring of text, using a property node. But some values are not included by the ring of text, even if they are defined inside.

    I agree with you an illustration of my problem and the piece of code that does not work, I hope you can help me

    Thank you

    Julie

    Probably a result of the fact that the floating point numbers cannot represent exactly every real number.  Up to 0.4 is not exactly equal to 1e6 4th-7 x.

  • My HP laptop has had a problem with the uncontrollable from scrolling upward and to the left.

    Hoping someone can help me with this - for a month or if my computer hp laptop has had a problem with uncontrollable scroll upward and to the left. It is now getting worse and happens in all programs, including Word, Adobe, browsers, etc.. Even to type this message is difficult because the cursor periodically jumps to the top left corner of the text box. I tried to attach a new external mouse, but this is not enough. The problem occurs even when not to use the touchpad. I scanned my computer with several anti-virusprograms but no luck. It becomes difficult to use the computer for something else. Even now the down arrows / right does not help. PLEASE ADVISE!

     
     
    Original title: scrolling problem

    Hi Suresh,

    This is a late response to your question, but I thought that I could add more information here.

    From your description, it seems that your PageUp and the keys to the House (or arrows) of the keyboard are either stuck, or failing. These keys usually help access us in applications you mentioned. And since you mentioned that this happens even when the touchpad is not in use, it is likely that this could be the cause here.

    I suggest get you the checked keyboard when using a hardware technician, preferably from your computer manufacturer. That should help you understand better.

    Let us know if you need help with Windows, we are happy to be of assistance.

  • Problem with the value of the checkbox and app.settings.getSetting)

    Hello everyone.

    I have a problem with is settings saved for checkbox.

    Saved settings does not apply on the value of the checkbox.

    It's strange, but it always 'true '.

    Here is piece of code:

    checkMe = 11;    //any value for the first time running
    
    
    if (app.settings.haveSetting("savea", "chck")) {                            
                          checkMe = app.settings.getSetting("savea", "chck");  // get saved value, else 11
                          alert("checkMe = "+checkMe)
                            }
                        if(checkMe == 11){
                            checkMe= false;   //if there is no saved settings, checkbox value will be false/ unchecked
                            alert("You run this script first time, so manual value will be 'false'")
                            }else{
                                checkMe = app.settings.getSetting("savea", "chck");     // if saved settings exist, get true or false
                            }
         alert("Yes, checkMe will = "+checkMe)        
        
        
    win.checkPanel.chkOne.value = checkMe;  /// checkbox value will equal saved checkMe
    
    var fff = win.checkPanel.chkOne.value;  // string for alert
     alert("aha! but checkbox value is  = " +fff+ "\n Why so?")     // here we`ve got always "true"
    
    
    
    
    win.checkPanel.chkOne.onClick  = function () {
            
        var path11 = win.checkPanel.chkOne.value;  //  checkbox value to variable
        app.settings.saveSetting("savea", "chck", path11);  //saving checkbox value
        alert("Saved this value - " + app.settings.getSetting("savea", "chck"))
              }
    
    

    win.checkPanel.chkOne.value is always true.

    Can anyone exmplain why and how to get rid of this static value?

    P.S. just in case, here's the complete code:

    function mainFun() 
    {
    
    
        this.windowRef = null;
    }
    
    
    
    
    mainFun.prototype.run = function()
    {
        
        /*----- UI -----*/
              var retval = true;
              var win = new Window("palette", "Check option", [150, 150, 460, 455]);
              this.windowRef = win;
    
    
        
              win.checkPanel = win.add("panel", [25, 150, 285, 265], "Checkbox");
              win.checkPanel.chkOne = win.checkPanel.add("checkbox", [10, 15, 125, 35], "Checkbox One");
              //win.checkPanel.chkTxtOne = win.checkPanel.add('edittext', [140, 15, 230, 35], '');
    
    
         win.quitBtn = win.add("button", [110,275,200,295], "Close");
    
    
    checkMe = 11;    //any value for the first time running
    
    
    if (app.settings.haveSetting("savea", "chck")) {                            
                          checkMe = app.settings.getSetting("savea", "chck");  // get saved value, else 11
                          alert("checkMe = "+checkMe)
                            }
                        if(checkMe == 11){
                            checkMe= false;   //if there is no saved settings, checkbox value will be false/ unchecked
                            alert("You run this script first time, so manual value will be 'false'")
                            }else{
                                checkMe = app.settings.getSetting("savea", "chck");     // if saved settings exist, get true or false
                            }
         alert("Yes, checkMe will = "+checkMe)        
        
        
    win.checkPanel.chkOne.value = checkMe;  /// checkbox value will equal saved checkMe
    
    var fff = win.checkPanel.chkOne.value;  // string for alert
     alert("aha! but checkbox value is  = " +fff+ "\n Why so?")     // here we`ve got always "true"
    
    
    
    
    win.checkPanel.chkOne.onClick  = function () {
            
        var path11 = win.checkPanel.chkOne.value;  //  checkbox value to variable
        app.settings.saveSetting("savea", "chck", path11);  //saving checkbox value
        alert("Saved this value - " + app.settings.getSetting("savea", "chck"))
              }
    
    
    
    
    
    
              win.quitBtn.onClick = function() { 
                  win.close(); 
              }
    
    
        win.center();
              win.show();
    
    
              return retval;
      
    }
    
    
    if(typeof(mainFun_unitTest) == "undefined") {
        new mainFun().run();
    }
    
    

    A quick glance, I'd say it's because when the pref that is saved as a string, so after having read it you must control if (checkMe == 'true') rather than check it out as a Boolean value.

  • database stress test - datagenerator problem with import data from oracle

    Hi all

    Today, I'm doing a stress test on my new server. Someone from this forum told me that there is a nice software for it:

    http://www.dominicgiles.com

    I have a problem with Datagenerator. I can't fill my user directly in the database. DataGenerator always has an exception. What ever...

    I tried to generate data on hard drive. It seems to go well. In the file data, I found a large number of files:

    *.dat
    *. CTL
    *. SQL

    N, anyone know how I can import only the files of user oracle?


    see you soon

    Dlugasx

    I do the table drop in the first place, I think it's to be sure, there are no objects before loading.

    Nicolas.

  • Problems with discrete graphics from NVS 5200 m on T430s

    Hey all,.

    I just got my T430s mail this past weekend, and I had trouble with the Blue Screen of Death. It happened twice so far, and both times the graphics card is not recognized after reboot. The first time it happened, I tried to do a system restore, but that did nothing. I reinstalled the initial configuration using the recovery partitiion operating system, and that did the trick.

    The blue screen of death just happened again, and exactly the same problem has cropped up again. After reboot, the system no longer recognizes it has a discrete graphics card. When I try to start the Nvidia Control Panel, it tells me that it cannot detect a discrete graphics card in the system.

    I did a quick search of the forum, and I can't find any thread with a similar problem. I found this in the Lenovo support area, but it is not relevant to my http://support.lenovo.com/en_US/diagnose-and-fix/detail.page?DocID=HT052544equipment >

    On the NVIDIA site, I can only find drivers 'Beta' for NVS 5200 M http://www.nvidia.com/object/notebook-win8-win7-winvista-64bit-304.79-beta-driver.html>. After you download the driver and any attempt to install, the system gives me the same error that it cannot find any compatible graphics hardware.

    Here's my hardware configuration:

    ThinkPad T430s

    i5 3320 M 2.60 GHz

    NViDIA NVS 5200 m

    4 GB of RAM (stock)

    360 GB HARD drive (stock)

    It is located in Optimus. I don't think that there is only a discreet.

    I called Lenovo support center and discovered that there is a new graphics driver. Have not had a problem with the blue screen of death since then. Looks like that was the problem.

    Once more, if it happens again, I'll be sure to post here.

    -Dean

  • Fill an input array with the values from the worksheet

    Is it possible to fill an input array with the values to a text file or a spreadsheet? If so, how do you?

    Thanks to GerdW and all who responded. Fill a table control using a local variable with "The spreadsheet file read" as he entered works perfectly.

  • problems with automatic updates from microsoft

    have hp pc running xp pro version 2002 service pack 3, and when I allow the automatic update (kb2661254 or kb2749655 or kn2756822) to install the machine restarts.

    I try and install one at a time and each restarts the machine?

    Win update works better with ie8.

    one or more of your defenses can be cousing problems with updates.

    other updates at the same time comeing too can couse problems.

  • Problems with the servers from Adobe in Germany (Workflow: InDesign-&gt; Content Viewer)

    We had some problems with the download of our fact sheets on Adobe servers end of January / beginning of February. Also our iPads test often could not connect to the content viewer. There are outages of server in Germany during this period?

    Updates are always displayed at http://status.adobedps.com/. You can check messages to see if all coincides with when you download problems.

    Neil

Maybe you are looking for

  • Video does not transfer to the iPhoto folder

    I had taken some videos of a drone and put it in iPhoto on my Mac.  I am able to download this video on my iPhone via iTunes, but I am not able to transfer the video to another folder, such as a USB drive or a folder on the desktop.  iPhoto is a stat

  • Computer HP Envy 15 laptop no sound at all.

    I had from my speakers yesterday, but today not at all.  What is happening on the HP?

  • Find the Readynas file structure

    I use SSH to move a file in a directory where I can edit it and then move on the back. Whenever I we the ls. command in the directory root, that Nothing is returned, so I don't see the potential directory to move it to. Can someone help me with the s

  • Coercian dot on the power spectrum

    Hi all Was just curious to know why I have a point constraint on my FFT power spectrum when it fed a waveform?  I thought (and detailed help is agree with me) that a waveform has been the type of entry required.  There may be more going on here that

  • Connection WRT54GL router Netgear modem.

    I am trying to connect a TV to the internet using a WRT54GL router and a NETGEAR DG834GT modem. I have configured the router by using the wizard, and I can connect to the router with my i phone or laptop. However the router does not appear in the ava