ValueChangeListener does not work if BackingBean is in request scope

I am using ADF selectOneChoice and populating textfields etc. based on the selection in the SelectOneChoice.
I implement this thru a ValueChangeListener method in my BackingBean,and it works perfectly if the bean is in session scope. But if I put it in request scope getOldValue() always gives the first value in the combo. So if user selects some other value and then goes back to first value, it does not generate an event since oldvalue=newvalue.
It is not possible for me to create my BackingBean in session - it needs to be request scope. Is there any way of doing this? Pls help.

Hi,
it depends on your implementation, but keep in mind that a bean in request scope is reset to its default values after each request. So if you keep the list value data in the same bean then the value is set back to the default selection when the request ends because the managed bean is released and re-created for the next request. A work around is to store the value in a long lived scope memory attribute and read it from there when the managed bean is requested
Frank

Similar Messages

  • Double escaping suddenly does not work anymore.

    Hello,
    We have WCF Data Service that is configured to use
    double escaping according to this article
    http://blogs.msdn.com/b/peter_qian/archive/2010/05/25/using-wcf-data-service-with-restricted-characrters-as-keys.aspx
    During a long time (a year or more) this solution worked well for us. And suddenly, a week ago, we found that on some our services (in cloud, in out of cloud)
    double escaping does not work anymore.
    For example, request to our service may looks like
    http://service-host/odata-service/ContentTreeNodes('ID-%257BFEE06CEE-F667-45A2-9014-394F4B7CD3B0%257D')/
    In sample above we have ID that without double escaping looks like ID-{FEE06CEE-F667-45A2-9014-394F4B7CD3B0}
    But when our service processes this request ID becomes like ID-%7BFEE06CEE-F667-45A2-9014-394F4B7CD3B0%7D.
    And that is means that .NET (WCF Data Services) infrastructure removes only single escaping and forget (ignore) to remove second one.
    We have an assumption that issue probably maybe caused by some Windows security update. Because on some PCs it works well.
    Does anybody have similar issues?

    Hi,
    I suppose you tried to uninstall this patch from Azure VM. If so then yes, it can not be done. Seems it prohibited by MS or at least I do not have answer how to do it.
    At the same time I had no such problems with out of cloud PCs.
    BWT, we recently found that we do not require double escaping anymore in our service, because single escaping now works well for us. Looks like MS fixed an issue regarding # symbol in URL path. Now if URL has # in some URL path (for example in entity ID),
    then single escaped # works well.

  • ValueChangeListener is not working in JSF

    Hi Friends,
    Though there were several threads related to the same topic, i could not get the exact information required to get the expected functionality of the valueChangeListener..
    I have configured the necessary things for the valueChangeListener to work. But it (the method in valueChangeListener) does not get invoked at all, which makes me wonder and surprised!!!!
    I am sure that there is no need of incorporating the JavaScript to get any of the JSF built-in functionalities working. aint i?
    ======================================================
    jsp page
    ======================================================
    <h:selectOneMenu id="myMenu" value="#{PersonBean.selectedValue}"   valueChangeListener="#{PersonBean.processValueChange}">
         <f:selectItems id="mySelectItems" value="#{PersonBean.listValues}"/>
    </h:selectOneMenu>=====================================================
    PersonBean.java file
    =====================================================
    public void processValueChange(ValueChangeEvent value) throws AbortProcessingException {
            System.out.println("PersonBean processValueChange()");
            String selectedValue = (String)value.getNewValue();
            System.out.println("PersonBean processValueChange(),     value="+selectedValue);
             if(selectedValue.equals("1")){
                        System.out.println("PersonBean processValueChange(), value chosen is 1");
                        displayOutValues();
            else
                       System.out.println("PersonBean processValueChange(), value chosen is <>1");
    }===================================================
    faces-config.xml file
    ===================================================
    <managed-bean>
         <description>Input Value Holder</description>
         <managed-bean-name>PersonBean</managed-bean-name>
         <managed-bean-class>jsfks.PersonBean</managed-bean-class>
         <managed-bean-scope>session</managed-bean-scope>
         <managed-property>
                <property-name>userName</property-name>
                <property-class>java.lang.String</property-class>
                <value></value>
         </managed-property>
    </managed-bean>Hope the information provided is enough to understand. I do get the list of values populated in the selectOneMenu ( dropdown box). But no action is occuring when there is a change in value being selected. Of course, i do call displayOutValues() inside the processValueChange() which never occurs.
    Can anyone give me a good and clear suggestion to resolve this issue? Does any way the scope of the Managed bean contribute towards this? Even though i have given enough - session scope only.
    Awaiting an earliest reply with thanks in advance!
    Thanks,
    Raghavan alias Saravanan M.

    hi friends,
    the code seems to be working only if i place the submit() in onchange method. thanks for the replies..
    but then still i m wondering without which why it doesnt work as expected?
    i do understand that none of the valueChangeListeners do auto submit of the forms when there is a value change. But the expected actions are supposed to happen even before the form is submitted rite?
    can anyone explain please?
    Thanks,
    Raghavan.

  • Steve Muenchs file upload sample (No. 69) does not work with JDev 10.1.3.1

    Hi,
    I installed and started Steves sample about uploading and storing OrdImage types (http://otn.oracle.com/products/jdev/tips/muench/jsfordimage/JSFOrdImageExample.zip).
    When I try to upload a file I get an exception:
    java.io.EOFException: Per-request disk space limits exceeded.
         at oracle.adfinternal.view.faces.webapp.UploadedFileImpl.loadFile(UploadedFileImpl.java:187)
         at oracle.adfinternal.view.faces.webapp.UploadedFileProcessorImpl.processFile(UploadedFileProcessorImpl.java:96)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doUploadFile(AdfFacesFilterImpl.java:247)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:163)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106)I have found other postings concerning uploading a file with JDev10.1.3.1 (af:inputFile bug JDev10131 production ignores Per-request disk space limit
    Is it a bug with JDev 10.1.3.1? Any workaround available?
    I'm using JDev 10.1.3.1 on WinXP.
    Thanks,
    Markus

    I managed to correct this problem.
    The situation is the following:
    A CRUD page (Example: userList.jsp and userForm.jsp).
    The first page there is a af:table with tableSelectOne and a Edit button. (theres also other components, like af:menuBar and af:form, html, body and head)
    On submit, the backing bean(requestScope) gets the selected object (table.getSelectedRowData()), copy the values to the form fields and send (redirect=false) to the form page.
    When i try to update, the fileupload does not work and ignores the valueChangeListener. All the other fields are updated correctly.
    The form page is used to do Inserts and the upload works correctly.
    The problem is, when you redirect (redirect=false) from userList.jsp (usesFileUpload="false")
    to the other page, that uses the upload, the form page does not get the enctype="multipart/form-data"
    To solve it, put usesUpload="true" in both page , and you will get enctype="multipart/form-data", and upload to work.
    Changing components, the af:menuBar has a similar problem.
    I got a menubar with 2 goMenuItem.
    On each page the corresponding goMenuItem has selected="true".
    On redirect, from list page to form page, the selected goMenuItem is the one on the ListaPage, and not the form page! It only changes if I click on the tab I want!

  • Installed Premiere Pro CS4 but video display does not work?

    I just got my copy of CS$. After installing Premiere I found two things that seem very wrong:
    1) video display does not work, not even the little playback viewer next to improted film clips located on the project / sequence window. Audio works fine.
    2) the UI is way too slow for my big beefy system.
    My pc is a dual boot Vista-32 and XP system with 4GB of memory installed and nvidia geforce 280 graphics board with plenty of GPU power. The CS4 is installed on the Vista-32 partition. My windows XP partition on the same PC with Premiere CS2 works great and real fast.
    Any ideas how to solve this CS4 install issue?
    Ron

    I would like to thank Dan, Hunt, and Haram:
    The problem is now very clear to me. The problem only shows up with video footage imported into PP CS4 encoded with "MS Video 1" codec. So this seems to be a bug. The codec is very clearly called out and supported within various menues but video with this codec just will not play in any monitor or preview window. In addition the entire product looks horrible with respect to performance while PP CS4 trys its best to play the video. Audio will start playing after about 30 seconds. And once in awhile part of video shows up at the wrong magnification before blanking out again.
    My suggestion to the Adobe team: fix the bug and add some sample footage to the next release so new installations can test their systems with known footage.
    My PC is brand new with the following "beefy" components:
    Motherboard
    nForce 790i SLI FTW
    Features:
    3x PCI Express x16 graphics support
    PCI Express 2.0
    NVIDIA SLI-Ready (requires multiple NVIDIA GeForce GPUs)
    DDR3-2000 SLI-Ready memory w/ ERP 2.0 (requires select third party system memory)
    Overclocking tools
    NVIDIA MediaSheild w/ 9 SATA 3 Gb/sec ports
    ESA Certified
    NVIDIA DualNet and FirstPacket Ethernet technology
    Registered
    CPU: Intel Core 2 Quad Q9550
    S-Spec: SLAWQ
    Ver: E36105-001
    Product Code: BX80569Q9550
    Made in Malaysia
    Pack Date: 09/04/08
    Features:
    Freq.: 2.83 GHz
    L2 Cache: 12 MHz Cache
    FSB: 1333 MHz (MT/s)
    Core: 45nm
    Code named: Yorkfield
    Power:95W
    Socket: LGA775
    Cooling: Liquid Cooled
    NVIDIAGeForce GTX 280 SC graphics card
    Features:
    1 GB of onboard memory
    Full Microsoft DirectX 10
    NVIDIA 2-way and 3-way SLI Ready
    NVIDIA PureVideo HD technology
    NVIDIA PhysX Ready
    NVIDI CUDA technology
    PCI Express 2.0 support
    Dual-link HDCP
    OpenGL 2.1 Capaple
    Output: DVI (2 dual-link), HDTV
    Western Digital
    2 WD VelociRaptor 300 GB SATA Hard Drives configured as Raid 0
    Features:
    10,000 RPM, 3 Gb/sec transfer rate
    RAM Memory , Corsair 4 GB (2 x 2 GB) 1333 MHz DDR3
    p/n: TW3X4G1333C9DHX G
    product: CM3X2048-1333C9DHX
    Features:
    XMS3 DHX Dual-Path 'heat xchange'
    2048 x 2 MB
    1333 MHz
    Latency 9-9-9-24-2T
    1.6V ver3.2

  • A2109 tablet autorotate does not work

    The autorotation on my recently purchased tablet A2109 does not work. I look in settings and the auto rotate field is not highlighted, I therefore cannot choose to turn it on.The tablet has the Android jellybean OS and I did update it but to no avail. Can anyone help?
    Thanks
    Solved!
    Go to Solution.

    Dear tdsouza
    Welcome in lenovo forums
    just a clarification , do you mean option Rotate is dimmed in setting 
    Please let me know 
    Thanks
    Alaa
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • For what reason on my tablet with OS Android 4.1 does not work flash on the sites?

    Hi! I recently bought a Google Nexus 7 tablet with Android 4.1 operating system and on my tablet does not work flash sites. Why adobe does not release a new version of flash for android 4.1? Why it was necessary to buy a company Macromedia, if adobe does not want to develop web technology? I think against Adobe can sue for violation of antitrust

    I found this for example:
    http://www.slashgear.com/adobe-no-jelly-bean-flash-flash-player-pulled-altogether-august-1 5-29236404/

  • My flash flayer does not work on my Windows 8 Surface Tablet, it also won't let me see if i already

    My flash flayer does not work on my Windows 8 Surface Tablet, it also won't let me see if i already have it installed...

    1.      Are you getting any error message?
    2.      Which browser are you using?
    3.      Were there any recent changes made on the computer prior to the issue?

  • My flash player does not work on my tablet.

    My flash player does not work on my tablet

    Your tablet uses Android OS.
    There is no more Flash Player for Android and there won't be another. Android is no longer compatible with Flash Player. Playing Flash content is very processor consumptive and it drains your battery, also shortening the life of it. Android (Google) recommends using either "Dolphin" or "Puffin" as your browser if you need to view Flash content with a mobile device running Android. They're both free in the GooglePlay store. These browsers use "server side" rendering to reduce the load on your device.

  • Dynamic image does not work in the template builder plug-in (Apex-BI Intgr)

    Hi all, I posted this problem in the BI Publisher topic but nobody responded maybe this is because mods thought this is an Apex-BI integration issue.
    If I'm in the wrong place, please do warn me.
    The documentation says:
    Direct Insertion
    Insert the jpg, gif, or png image directly in your template.
    ...This works obviously
    URL Reference
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{'http://image location'}
    For example, enter: url:{'http://www.oracle.com/images/ora_log.gif'}
    ...This works too when I hardcode an url as url:{'http://www.google.com.tr/images/firefox/mobiledownload.png'}
    Element Reference from XML File
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{IMAGE_LOCATION}
    where IMAGE_LOCATION is an element from your XML file that holds the full URL to the image.
    ...This, however, does not work.
    I use Apex' report query tool and My query is like
    select 'http://www.google.com.tr/images/firefox/mobiledownload.png' IMAGE_LOCATION from ... (a single result set for my template)
    the xml data is generated with an IMAGE_LOCATION tag. I load it to word template plug-in. The Url successfully displays in the report if I make it a plain-simple field.
    But when it's in the image format->web->alt text as url:{IMAGE_LOCATION} no image displayed.
    I need to keep this design procedure simple so a simple word user could design a report via using just template builder plug-in. I don't wish to explore the xsl-fo area...yet.
    Could you tell me why I can't get this url:{IMAGE_LOCATION} to work?
    Regards
    PS: My BI version: 10.1.3.4.1

    Hi Oeren,
    your steps seem basically to be correct. I have a tutorial how to do this here (in german)
    http://www.oracle.com/webfolder/technetwork/de/community/apex/tipps/pdf-dyn-images/index.html
    when you see the URL corrently as long as you have it as a plain text field, the XML tag and the
    referencing seem to be OK.
    Here are two thought - the issue might be one of these ...
    How did you insert the dummy image into the word document - did you do it via "insert" or
    via "link to file". "Link to File" does not work - you must choose the simple "insert".
    Another one: Does your BI Server have a connection to the internet - is the proxy server correctly set ..?
    Does this help ..?
    Regards
    -Carsten
    Cloud Computing mit APEX umsetzen. Jetzt!
    http://tinyurl.com/apexcloudde
    SQL und PL/SQL: Tipps, Tricks & Best Practice
    http://sql-plsql-de.blogspot.com

  • I have an event in my calendar that was sent by someone who does not work for the company anymore and I am reminded 2 times a week. How can I remove it?

    I have an event in my calendar that was sent by someone that does not work for the company anymore and I am reminded 2 times a week. How do I delete it?

    Tap on the event to open the event. Click the 'Edit' button in the event bubble, then press the 'Delete Event' button at the bottom of the Edit pop-up. It's a little different for events that come through Microsoft Exchange, you tap the event to bring up bubble and click the 'Details' button, and then press 'Decline' to remove the event.

  • Thanks for responding.  Since I upgraded ITUNES to IOS 6, my IPOD Touch no longer works at all.  I had numerous apps, music and videos on this touch.  It made me restore to factory reset and it still does not work!!! Nothing I do will work on this touch n

    Thanks for responding. Since I upgraded ITUNES to IOS 6, my IPOD Touch no longer works at all. I had numerous apps, music and videos on this touch. It made me restore to factory reset and it still does not work!!! Nothing I do will work on this touch now. I have so much data on this, I don't want to loose or have to restore!
    Can you help me?
    Thanks

    If you restored to factory settings/new iPod and still have the problem that indicates a hardware problem.
    Make an appointment at the Genius Bar of an Apple store..
    Apple Retail Store - Genius Bar

  • "HP laserjet professional utility" does not work in osx 10 (Yosemite)

    All the major functions of this printer work fine in Yosemite, but not the "HP laserjet professional utility"The driver shown in System Preferences/Printer for my Laserjet P1606dn is version 6.9 (I am unable to knowif this is the version provided by the latest HP printer update, which was installed via the App Store.) I note this exact issue was raised for OSX7 in November 2014, but for a diiferent model printer.  My printer is on my local wifi network, and that earlier case seemed to invove a direct USB connection. The solution offered in that thread, 4694464,may not be applicable now, so I seek advice In the panel for my 1606dn within System Preferences/Printer offers a button to launch the "HP Professional Utility", but when clicked an app launches called the "HP Professional Utility" but then nothing.  I am trying to access the printer controls that will keep it from turning itself off when idle, and the documentation says the "HP Professional Utility" will allow that change. Please advise 

    Hey , Welcome to the HP forums! I hope you enjoy your stay here. I see that you are having some issues with adjusting the power save mode settings on your Laserjet P1606dn. I can help with that. First make sure the printer is plugged directly into a wall outlet and not a surge protector. If the printer is connected with an ethernet cable to a router then you may be able to do this instead:On the printer hold down the button that looks like a sheet of paper with an arrow on it for about ten seconds. This should print out a report.On your Mac open a browser and enter the printer's IP Address in your Address bar exactly as it appears on the page. When you are finished click on enter/return.This will open the printer's Embedded Web Server. In here you may be able to find some options to adjust the power save settings.If the above does not work then this troubleshooting may assist you with the utility:Go to Applications, and if you have it open the Hewlett-Packard folder.Run HP Uninstaller to remove any existing software from you system.On the Mac go to the Apple icon and Sytem Preferences.Open Printers and Scanners.Hold down the Command key and click on the picture of your printer on the left.Click on Reset Printing System.Go to Applications and Utilities.Open Disk Utility.Click on Macintosh HD on the left.Click on Verify Disk Permissions. This should take about ten minutes.Click on Repair Disk Permissions. This should take about ten minutes.Restart your Mac.Plug in the USB cable between the printer and the router.Check for Product Updates on your Mac.Try running the tool again.If this resolves everything please let others know by clicking on Accept as Solution below my post.
    I hope this helps and I hope you have a great day! 

  • I have recently upgraded my iMac Intel G5 iSight to OS 10.6.8 and now the internal mic does not work with skype or facebook. I can here static when playing back clips. Do I need to update firmware or reload old sys parts

    I have recently upgraded my iMac Intel G5 iSight (iMac5,1) to OS 10.6.8 and now the internal mic does not work with skype or facebook. I can here static when playing back clips. Do I need to update firmware or reload old system parts. I have zapped PRAM. The blue indicator in system audio panel will appear for a second as I slide the bar for internal mic but then it disappears. Is there a fix?

    The sound seems very faint but can here static on playback.

  • TS1702 When I update to IOS6 on my 4S Facebook does not work properly, the news feed never updates it only says no new storeys and shows a picture of an antenna. When I reset my phone and go back to IOS5 Facebook works fine. What's up with IOS6 ????

    When I update my iPhone 4S to iOS six Facebook does not work properly the newsfeed doesn't load properly and I can never see what's going on all I see is a picture of an antenna and a little thing underneath it says no new stories when I reset my phone back to iOS 5 then it works just fine and I don't have any issues so there must be something wrong with iOS six that isn't letting Facebook load properly

    No I did not use any unauthorized methods for anything, I simply reset my phone back to factory.
    <Edited By Host>

Maybe you are looking for

  • Repeat Group Header On Each Page not working

    Hi, I have a report that have 3 subreport, and in the Subreport, there is Group Headers that enabled the option "Repeat Group Header On Each Page". It works fine in the CR10 preview. However, the header won't repeat in the PDF generated by JRC. Any I

  • Error while cancelling the Invoice

    Dear Gurus The Billing document was raised on a wrong customer on may month. Now that was realized, and that invoice was canceled but wrongly the date was given as may month. The FI period was closed for may month and the current period is july. So t

  • Reg:Print program For FB03

    Hi All,    In the Fb03 Transaction When i give print Preview I want to show the Document Date as Blank, by default print preview its coming, hoe can i restrict this, i have done the following steps i don't know how to proceed after this, the steps ar

  • Newsletter form activating event registration form

    I have a newsletter form in a content holder that is part of my template. When a user signs up for the newsletter while on the event registration page, it activates the event registration autoresponder email saying that they signed up for the seminar

  • Import Duties In Stock Transfer

    Hi Gurus,                I have created a pricing procedure for Imports. Same i have applied for stock transfer ( Document Type UB). During Goods receipt i dont get a POP UP to enter the excise incoice number. But the excise TAB is appearing. CVD and