valueChangeListener not refreshing Popup correctly

I use JDeveloper 11.1.1.6

My use case has a screen with a table of the ADF. In this table, the user clicks a button to add a row to the table. A pop-up form is presented. The primary key of the new line is a field that is formatted based on certain attributes selected by the user. The user will choose a value from a menu of selectOneChoice. The intention is to application to generate, and then display the value of the primary key from the context menu. The user will continue to enter the rest of their shareholdings in the popup and then submit the context menu to add the line to the DB. The selectOneChoice of the screen field is as follows. Note it does not value change listener and autosubmit:


< af:selectOneChoice value = "#{bindings." Field1.inputValue}.
label = "#{bindings." Field1.label}.
required = "#{bindings." Field1.hints.mandatory}.
shortDesc = "#{bindings." Field1.hints.ToolTip}.
Binding = "#{backingBeanScope.backing_ui_pages_MyPage_updateDatabase.soc9} '"
ID = "soc9" autoSubmit = 'true '.
valueChangeListener = "#{backingBeanScope.backing_ui_pages_MyPage_updateDatabase.onField1Change} '"
valuePassThru = "true" >
< f: selectItems value = "#{bindings." Field1.items}.
Binding = "#{backingBeanScope.backing_ui_pages_MyPage_updateDatabase.si9} '"
ID = "si9" / >
< / af:selectOneChoice >



The primary key field is updated via a partial trigger. It is defined in the following form:


< af:inputText value = "#{bindings." PrimaryKeyField.inputValue}.
label = "#{bindings." PrimaryKeyField.hints.label}.
required = "#{bindings." PrimaryKeyField.hints.mandatory}.
columns = "#{bindings." PrimaryKeyField.hints.displayWidth}.
maximumLength = "#{bindings." PrimaryKeyField.hints.precision}.
shortDesc = "#{bindings." PrimaryKeyField.hints.tooltip}.
Binding = "#{backingBeanScope.backing_ui_pages_MyPage_updateDatabase.IT4} '"
ID = "it4" partialTriggers = "soc9" readOnly = "true" >
< f: validator binding = "#{bindings." PrimaryKeyField.validator} "/ >"
< / af:inputText >



The code in my grain of the value change listener support is as follows:


public void onField1Change (ValueChangeEvent valueChangeEvent) {}

BindingContainer links = getBindings();

DCIteratorBinding = dciter
(DCIteratorBinding) bindings.get ("Container1Iterator");

ContainerVORowImpl = containerDispatchRow
(ContainerVORowImpl) dciter.getCurrentRow ();

........................................................


Integer =
ValueChangeEvent.getNewValue (integer) ();

Number of field1Number =
new Number (number.intValue ()); * /

String primaryKey1Number = calculated value of another method

containerDispatchRow.setPrimaryKeyField (primaryKey1Number);


System.out.println ("onField1Change () - reservation number: '+")
containerDispatchRow.getPrimaryKeyField ());
}



I have 2 problems with the above mentioned components.

First of all the 'valueChangeEvent.getNewValue ()' returns the index number of the selected record in the selectOneChoice as opposed to the actual value of the line. The selectOneChoice contains a drop down of numbers (which may or may not start at 1).

The second question I have, is that the primaryKeyField not display properly when updating from the pop-up window. My method calculates the correct value and the System.out.println correctly displays my value. For some reason when the popup is updated rather than show my newly calculated primaryKeyField, it displays the primaryKeyField associated with the first record in the binding of Interator (dciter)

Instead of setting the value of the line, you can set the value in the attribute "PrimaryKeyField" binding as

String primaryKey1Number = computed value from another method
...
// get the binding container
BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
// get an ADF attributevalue from the ADF page definitions
AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("PrimaryKeyField");
attr.setInputValue(primaryKey1Number);
AdfFacesContext.getCurrentInstance().addPartialTarget(this.it4);
...

Then you should see the value in the user interface.

Timo

Tags: Java

Similar Questions

  • Classic report SQL with BLOB column not refreshing with jQuery Trigger Apexrefresh call

    Hello

    Really hoping that someone can help me, but for some reason that I try to report updated in dynamic Action to help:

    jQuery('#my-report').trigger('apexrefresh');

    on a simple SQL query report classic. I have used this many times on other parts of the report but the only difference with the report region where it is not refreshing, is that the table contains a BLOB column as it is essentially a report of downloaded files that users have made to the page by using the file browse.

    Would really appreciate help with that basically, I don't want to perform a full page refresh, because it currently operates.

    It has to do with the fact that this report is the question about a BLOB column, which is a link to the uploaded file?

    Thank you.

    Tony.

    Hello

    Check this area of report model have id.
    You should have id = "" #REGION_STATIC_ID # "in the model of the region"

    Make sure you have correctly write the id of the report in JavaScript. JavaScript is case-sensitive

    Kind regards
    Jari

  • Picture of detail not refreshing after main table query

    JDev 11.1.2.4

    I have an af:query for a criterion to display against the main table based on a date field.  The main table is updated as expected when you edit the query.  It's that the secondary table linked to not refresh when the query changes.  Retail refreshes correctly when a line is changed on the main table.  The secondary table has the ppr set to the main table.  I tried to include the query in the ppr, but it does not work.  I tried to change the ContentDelivery on both with no luck.  I looked on the forum and blogs, and I'm not finding a resolution.  I expected the ppr to take care of this because data is changing in the main table.  Any ideas what I'm missing?

    Thank you

    Rudy

    Works for me using 11.1.1.7.0 with this code in the page:

    model = ' #{bindings. " ImplicitViewCriteriaQuery.queryModel}"queryListener =" #{bindings. " ImplicitViewCriteriaQuery.processQuery}.

    queryOperationListener = ' #{bindings. " "ImplicitViewCriteriaQuery.processQueryOperation}" resultComponentId =": resId1" / >

    emptyText = "#{bindings." DepartmentsView.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." DepartmentsView.rangeSize}' rowBandingInterval = '0 '.

    selectedRowKeys = ' #{bindings. " DepartmentsView.collectionModel.selectedRow}.

    selectionListener = "#{bindings." RowSelection DepartmentsView.collectionModel.makeCurrent}"="single"id ="resId1">

    headerText = "#{bindings." DepartmentsView.hints.DepartmentId.label}"id ="resId1c1">

    headerText = "#{bindings." DepartmentsView.hints.DepartmentName.label}"id ="resId1c2">

    headerText = "#{bindings." DepartmentsView.hints.ManagerId.label}"id ="resId1c3">

    headerText = "#{bindings." DepartmentsView.hints.LocationId.label}"id ="resId1c4">

    emptyText = "#{bindings." EmployeesOfDepartmentView.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." EmployeesOfDepartmentView.rangeSize}' rowBandingInterval = '0 '.

    selectedRowKeys = ' #{bindings. " EmployeesOfDepartmentView.collectionModel.selectedRow}.

    selectionListener = "#{bindings." RowSelection EmployeesOfDepartmentView.collectionModel.makeCurrent}"="single"id ="t1 ".

    "partialTriggers =": resId1: qryId1 ">

    headerText = "#{bindings." EmployeesOfDepartmentView.hints.EmployeeId.label}"id = 'c4' >

    headerText = "#{bindings." EmployeesOfDepartmentView.hints.FirstName.label}"id ="c1">

    headerText = "#{bindings." EmployeesOfDepartmentView.hints.LastName.label}"id ="c5">

    headerText = "#{bindings." EmployeesOfDepartmentView.hints.Email.label}"id = 'c3' >

    headerText = "#{bindings." EmployeesOfDepartmentView.hints.PhoneNumber.label}"id ="c2">

    Check partial triggers used in your code...

    Timo

  • Not refreshing spin to carousel DataBound

    Hi all

    I have a VO dragged & dropped like a carousel on my page.

    Here's the code,

    < af:carousel currentItemKey = ' #{bindings. " PDFImages1.treeModel.rootCurrencyRowKey}.

    displayItems = "oneByOne' controlArea = 'small '.

    value = "#{bindings." Var PDFImages1.treeModel}"="item.

    ID = "c5" >

    < f: facet name = "nodeStamp" >

    < af:carouselItem id = "ci1".

    Text = "Label ID: #{point." LabelId} v #{point. {VersionNo.0 "}

    styleClass = "AFStretchWidth">

    < af:panelStretchLayout id = "psl8" startWidth = "10px".

    endWidth = '10px' topHeight = '10px '.

    bottomHeight = "10px" >

    < f: facet = 'bottom' name / >

    < f: facet name = "center" >

    < af:outputText value = "#{point.» LabelId}@#{item. VersionNo}.

    ID = "ot10" / >

    < / f: facet >

    < f: facet = 'Start' name / >

    < f: facet = 'end' name / >

    < f: facet = 'top' name / >

    < / af:panelStretchLayout >

    < / af:carouselItem >

    < / f: facet >

    < / af:carousel >

    Here the output text is refreshing correctly but af:carouselItem text property is not refreshing when I click on the spinner. What is the reason for this? Even though I put?

    Kindly help.

    Kind regards

    Deepti

    My problem has been solved...

    Solution had nothing to do with the carousel. Problem was actually with VO.

    My VO which selects columns 1 and 2, returned values as below

    Column1 Column2

    ABC                 1

    ABC                 2

    ABC                 3

    But I chose only the key attribute of 1 (primary key) column that was causing the problem with the carousel.

    When I chose the two columns as key attribute, it worked... !!!

    Thank you all.

  • My itunes on windows 10 does not refresh to allow me to use my new iphone 7

    My iTunes on windows 10 does not refresh to allow me to use my new iPhone 7, I have loaded down the update several times but he gets halfway through the installation of the update then say there is a problem and UN-installs

    Follow the instructions by If you can't install or update iTunes for Windows - Apple Support

  • FIrefox does not refresh after you download the update

    FIrefox sends an update message to 38.something. I downloaded and restarted a dozen times, but I am still on 37.0.1. I even restarted the computer. Why does not refresh updates?

    Hello lastdollar, Please download and install firefox, follow these steps:

    1. download a copy of the latest http://www.mozilla.org/en-US/firefox/all.html firefox (dmg full package - all languages)

    2. Trash , install the current application of Firefox to do a cleaning.

    3. install the version you downloaded.

    Do not select to delete your personal data, your profile data is stored in the Firefox profile folder, so you will not lose your bookmarks or other personal data.

    See also: How to download and install Firefox on Mac

    Thank you

  • Bug: The list of messages is not refresh SOLVED caused by HWA (material assistance)

    I'm using the latest Thunderbird beta chain, v38. I saw it in the stable version string as well, so I thought I would try the beta channel to see if it was fixed, but it wasn't.

    The problem is that the list of messages is not refresh all the time during the passage of the records. If I have one in my Inbox folder, for example, and then select my junk e-mail folder, the message list will not be updated and discount, until I drag my mouse on the list of messages. Then, it will refresh by line that the mouse is in each row.

    I'm on Windows 7 64-bit, with a processor i5 and 8 GB of RAM. Nothing else on my system is slow. This will happen when Thunderbird is the only application running. I also have a skin applied to my user interface. I tried a few different skins, and this problem happens with all of them.

    A second question, I noticed this morning, is that when I got a new email, the entire application seemed to momentarily freeze while for this new email notification was generated. As soon as the notification became visible, the app because sensitive again. Maybe a thread to post here.

    I have little of a long shot that I have an AMD card, but try the fix here.
    https://support.Mozilla.org/en-us/questions/1012145

  • Podcasts not refreshing in iTunes 12.4.1.6

    Since the upgrade to iTunes for Mac 12.4.1.6, my Podcasts is no longer up-to-date. I'm set to update every hour, download on.  Nothing happens I click Refresh, nothing.  I watch feed, new ones I know exist do not appear here.  I use this MBP/iTunes for Podcasts since the beginnings of Mavericks without this problem.  I need to download podcasts on my phone and then complete iTunes since the phone via a synchronization.

    Does anyone else know this?

    K ^ 2

    Read this previous thread of the Apple community...

    Not refreshing podcast lists

  • New tab page is not refreshed when I delete a site

    I have two problems with the new tab page:

    1. The new tab page will not refresh when I delete a site. I can click on the [X] button to delete a site, but nothing seems to happen. The site remains on the new tab page until I have refresh or reload the page.
    2. Firefox restores all the sites that I delete the new tab page, the next time that I restart Firefox.

    Found the problem:

    DOM. Storage.Enabled apparently affects the new tab behavior (bozhe me!)

    I had mine set to false; Apparently, it breaks the new tab page. Changing to true restored expected behavior.

    Would be nice if the entries in About: Config to http://kb.mozillazine.org/ included a description interconnected how change these options will affect/guy features in Firefox. (And while I'm wishing I join $ 1 million, a pony, and peace in the world). Is life...

    Thanks for your help crazyskeggy and Tylerdowner

  • iPhone that does not refresh Plus 6

    My iPhone will not refresh Plus 6. I have tried since the new update came out. It gives me just this message: can anyone help?

    Try using iTunes to update.  Update the software on your iPhone, iPad or iPod touch - Apple Support iOS The iTunes method is second on the page.

    See you soon,.

    Adam

  • Apps will not refresh when installing Apps is disabled in the Restrictions.

    I am limited to the installation of applications on the iPhone of my son.  The few games I welcomed will not refresh automatically.  I have to go over obstacles and activate app install and then perform the update.

    Is there a way to get around this - I have auto update turned on, but the Restrictions appear to substitute.

    Is this a bug?

    Right - if you have restricted the Installation of applications, it will limit any installation, including the installation of updates.

    Sorry,

    GB

  • MobileMe will not let me that post us because that seems to me not having the correct password which I thought to be the same pw for iCloud, but not so much.  How can I me Mail online?

    Product name: MobileMe

    Computer: iMac system 10.7.5 Lion

    Story: My drive hard Snow Leopard is dead, but have an external drive on which I have installed Lion, then Mail began requiring a MobileMe password that I do not have.  MobileMe won't let me use Mail because I do not have the correct password which I thought to be the same pw for iCloud, but not so.  How can I me Mail online?

    MobileMe was discontinued on June 30, 2012.  There is no more MobileMe e-mail.  Go to the preferences panel accounts Mail and remove any MobileMe account which is there.  That should get rid of these messages.

  • A network cable is not plugged in correctly or may be broken - Y560

    Good morning guys!

    The issue now is to get my control.

    OS: Win 7 64 bit

    I see my network with red evil icon mark in the system tray... It is said no connection is available. But it's everywhere that I go, that he is saying the same thing.

    I guess the problem is with the network card does not.

     
    

    in devmgmt, I don't see any problems. Here, everything seems perfect. Get shot of evil he says:

    a network cable is not plugged in correctly or may be broken

    But the thing is I only connect through wireless... I connect like that.

    I have to update the latest version of the driver but no use.

    Could you help me!

    It is resolved.

    It has been disabled in the BIOS

    I spoke with 4 guys in here n Lenovo call center one of them might crack!

  • A network cable is not plugged in correctly or may be broken?

    My internet works fine sometimes but then sometimes it doesn't. And when I troubleshoot it say "a network cable is not plugged in correctly or may be broken. No idea what's wrong? Also all my other devices are fine, that only this laptop seems to have this disorder

    What is the make and model of your router?

    The problem occurs when you are in the same room as your router... or when there are several rooms by far?

    Problem could be caused by interference with wireless networks your neighbor's wireless.

    If you are comfortable setting in your router Wireless Setup, sign up for your router and change the channel. Use channels 1, 6 or 11.

    If you are looking for this word: inssider
    you will find a site that offers a free utility (inSSIDer for home) that can be installed on your computer in Windows 7 (there is also a version for Android... If you have an Android mobile phone.) With inSSIDer, you can see a graphical representation of all the signals of wireless networks in your location (that is, to the location of the device that is running inSSIDer) and which channel they use. You will see your wireless network (its force and channel), and if there are other nearby wireless networks on the same channel (and what are their strengths).

    inSSIDer can help you to choose a channel that has the least number of other wireless networks. But if you do want to use it, you can simply configure your router to use a different channel (different than he's using now) and see if that helps. You need not what whether for your laptop... just change the channel number of your router's wireless network.

    If you are able to change your router's wireless channel, then first of all sit in the same room as your router (as close to him as possible) and see if the problem occurs. Even if you encounter interference from your neighbor's wireless networks, when you are sitting next to your router... its signal should be strong enough to overcome any interference. So, if the problem still occurs when you're sitting next to the router, then change them channels most likely will not help (but if the problem goes away when you're sitting next to the router, then change them channels could help).

    Another thing to try is using your laptop on a wireless network (network of a friend, a public network, etc.). If the problem occurs when you use another network (and more sitting next to the router as you can), then change the channel will probably not help (but if problem disappears, could help to change the channel).

    There are a few other settings, you can try on your router, but first try the suggestions above to see if they help.

  • printer Lexmark Pro 200. Does not print the correct colors. I restarted my computer and the printer is off but get the same result.

    Printer Lexmark Pro 200.  Does not print the correct colors. I restarted my computer and the printer is off but get the same result.

    Hello

    • What were the changes made before the problem occurred?

    You try to run this fix and check.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    If above does not work, try contacting Lexmark support for assistance.

    http://www1.Lexmark.com/en_US/global-services/customer-support-services/index.shtml

Maybe you are looking for

  • Disease affects

    Is it for my iphone 6, with, after about a year and a half, touch my iPhone just stopped working, I suppose that is this famous "touch the disease." Apple fix this location? Apple devices do work under 2 years?

  • Windows8 impossible to install how do I get my money back?

    Download assistant says ok to download FRO my old Vista PC, paid by credit card, he went through all the download and in the end, restarted and said cannot download windows8, then I got an acknowledgement saying that they took my money?

  • BSOD help (ntoskrnl.exe)

    I recently built a new computer for the first time and I am constantly a BSOD.  After consulting the minidump via the blue screen view files, it refers to the ntoskrnl.exe as the cause, but I suspect that maybe it's a corrupt driver (I could be wrong

  • VMware Powercli turn function

    HelloI am trying to use the rounded in my script. Purpose of the script is calculate avg CPU a Mem avg at the folder level. I want after the decimal, it should show up to level two (10.52) like that.His does not work$stats1 = get-Stat-entity $FolderV

  • Add 1 metadata field

    Hello.I expose my problem:I have file XLS hace 1 with 40 columns.I have extracted 13 of them and I rotated (from columns to the lines).Now I need to add 1 field metadata to identify records that results, is - this posible?Once you add this field, cou