Programmatically clearing an input item does not work

Hello,
I want to clear one input item (RichInputListOfValues) contained in a PanelForm programmatically, after the user presses on the "Clear" button:
<af:commandToolbarButton text="Clear" id="ctb1"
actionListener="#{pageFlowScope.UiBindings.clearItem}"/>Where the code that should really clear the item is:
    public void clearItem(ActionEvent actionEvent) {
            getItem().setValue(null);
            // getItem().resetValue(); // even with this, it does not work.
            AdfFacesContext.getCurrentInstance().addPartialTarget(getItem());
    public RichInputListOfValues getItem() {
        return item;
    }However, the above does not clear the item on the page. I have to click a second time to actually see the item empty as expected.
The problem still appears if I also do addPartialTarget() on the PanelForm container.
Do you have any idea?

My test case:
JDeveloper 11.1.2.2
page:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="untitled1.jsf" id="d1">
        <af:form id="f1">
            <af:toolbar id="t1">
                <af:commandToolbarButton text="Clear" id="ctb1" actionListener="#{viewScope.myBean.clear}"/>
            </af:toolbar>
            <af:inputListOfValues label="Label 1" popupTitle="Search and Result Dialog" id="ilov1"
                                  binding="#{viewScope.myBean.item}"/>
        </af:form>
    </af:document>
</f:view>bean:
package view;
import javax.faces.event.ActionEvent;
import oracle.adf.view.rich.component.rich.input.RichInputListOfValues;
import oracle.adf.view.rich.context.AdfFacesContext;
public class myBean
  private RichInputListOfValues item;
  public myBean()
  public void setItem(RichInputListOfValues item)
    this.item = item;
  public RichInputListOfValues getItem()
    return item;
  public void clear(ActionEvent actionEvent)
    getItem().setValue(null);
    AdfFacesContext.getCurrentInstance().addPartialTarget(getItem());
}config:
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
  <managed-bean id="__1">
    <managed-bean-name>myBean</managed-bean-name>
    <managed-bean-class>view.myBean</managed-bean-class>
    <managed-bean-scope>view</managed-bean-scope>
  </managed-bean>
</adfc-config>It works fine on the first click. Something's not right on your end :)
John

Similar Messages

  • On my iPhone 5 camera photographed not clear. blurry pictures, autofocus does not work. help please!

    on my iPhone 5 camera photographed not clear. blurry pictures, autofocus does not work. help please!

    Could you please describe how you are trying to delete a single text message and it will not work? What are you seeing in place of the trash can icon?

  • Apogee ensemble input section does not work with pro x

    Downloaded the  "maverick" ensemble software, Upgraded the ensemble  firmware. The latest downloadable ensemlble manual available is for 10.6. The instructions do not look like they match  pro X   The input section on the ensemble does not work. The output section works. I'm sure it's just an audio setting change either in  maestro or in pro x . Anybody come across this problem? Solution? Thank you.

    Have you set up Logic's Preferences/Audio correctly?

  • EBS posting to clear customer open items - Function not working?

    Hello SAPers
    I have an issue I just canu2019t seem to resolve! We are receiving MT940 statements and receive customer invoice reference details with field: 86 as follows:
    :61:090910C1500,00FOSB1000270 //100909050      0        035315
    :86:DEPOSIT
    Remitter:1000270 MISSION AUSTRALIA   Ref:1200000017
    Immediately following the BTC FOSB the bank quotes the customer number however I am not using this as standard SAP should identify the customer by document number within the note to payee field?
    I am using a 2 step process in posting to the clearing account and customer. Config as follows:
    Pst Type 1
    40     Bank
    50     Clearing
    Pst type 2
    40     Clearing
    15     BLANK          DZ     3      15
    I have also set up a string to look for the documents ^(12########)$. When we load the statement the first posting is successful however the second does not post to the customer or clear based on the invoice reference. I am using algorithm 020. The error that occurs is F5 102 Customer does not exist in company code xxxx. It actually does exist in the company code.
    I have loaded the EBS to the buffer and simulated the search on BELNR and it picks up the document?
    I am sure this is standard and a CMOD is not required on this type of functionality? What have I not done to allow posting to the customer based on document number or to post on account where it is not cleared?
    Any assistance on this issue is appreciated? Thanks in advance.

    Function Module for GL open Items
    how to clear customer open items by another  customer open item
    Function Module for GL Open Items
    Reward points..

  • Check menue item does not work

    Hello,
    I create a menu item MI_DEBUG of type Check in a submenu named EXTRAS_MENU.
    In the menu item code I want to enable debug logging of the current user actions.
    In the Menu Startup Code I set the status UNCHECKED.
    When the user clicks the menu item I want the status to be changed to CHECKED and back on a second click
    Menu Startup Code
    DECLARE
        mi_id   MENUITEM;
    BEGIN
        mi_id   := find_menu_item('EXTRAS_MENU.MI_DEBUG');
        IF id_null(mi_id) THEN
            my_debug.pl('EXTRAS_MENU.MI_DEBUG not found','zvc_menu.mmb Menu Startup Code');
        ELSE
            set_menu_item_property(mi_id,CHECKED,PROPERTY_FALSE);
        END IF;
    END;Menu Item Code
    DECLARE
        mi_id   MENUITEM;
    BEGIN
        mi_id   := find_menu_item('EXTRAS_MENU.MI_DEBUG');
        IF id_null(mi_id) THEN
            my_debug.pl('EXTRAS_MENU.MI_DEBUG not found','zvc_menu.mmb mi_debug');
        ELSE
            my_debug.pl('EXTRAS_MENU.MI_DEBUG found','zvc_menu.mmb mi_debug');
            my_debug.pl('Status '||get_menu_item_property(mi_id,CHECKED),'zvc_menu.mmb mi_debug');
            IF get_menu_item_property(mi_id,CHECKED) = 'TRUE' THEN
                my_debug.pl('property(CHECKED) = TRUE','zvc_menu.mmb mi_debug');
                set_menu_item_property(mi_id,CHECKED,PROPERTY_FALSE);
            ELSE
                my_debug.pl('property(CHECKED) = FALSE','zvc_menu.mmb mi_debug');
                set_menu_item_property(mi_id,CHECKED,PROPERTY_TRUE);
            END IF;
        END IF;
    END;But I never get the checked sign in the menu and every time my debug messages say, that the property CHECKED = 'TRUE'.
    I even have tried it with PROPERTY_ON/OFF as some examples suggest, but it doesn't work.
    Any ideas what is wrong with my code?
    Forms [32 Bit] Version 11.1.1.4.0 (Production)
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    Regards
    Marcus

    Hm. In that case the only thing that comes to my mind is to apply the latest patchset for forms 11gR1 which is 11.1.1.6 if memory serves.Not possible, applying patches requires tons of tests for many applications.
    Does it work in a previous version of forms?This is a new menu item and I have not other version available to test.
    Another thing I found: When I open or close a form after clicking the menu item, then the check mark appears. Changing the label of an item works without opening a form.
    Therefore I changed my Menu Item Code to
    DECLARE
        mi_id   MENUITEM;
    BEGIN
        mi_id   := find_menu_item('EXTRAS_MENU.MI_DEBUG');
        IF id_null(mi_id) THEN
            my_debug.pl('EXTRAS_MENU.MI_DEBUG not found','zvc_menu.mmb mi_debug');
        ELSE
            my_debug.pl('EXTRAS_MENU.MI_DEBUG found','zvc_menu.mmb mi_debug');
            my_debug.pl('Status '||get_menu_item_property(mi_id,CHECKED),'zvc_menu.mmb mi_debug');
            IF get_menu_item_property(mi_id,CHECKED) = 'TRUE' THEN
                my_debug.pl('property(CHECKED) = TRUE','zvc_menu.mmb mi_debug');
                set_menu_item_property(mi_id,CHECKED,PROPERTY_FALSE);
                set_menu_item_property(mi_id,LABEL,'Debug on');
            ELSE
                my_debug.pl('property(CHECKED) = FALSE','zvc_menu.mmb mi_debug');
                set_menu_item_property(mi_id,CHECKED,PROPERTY_TRUE);
                set_menu_item_property(mi_id,LABEL,'Debug off');
            END IF;
        END IF;
    END;Now when I click the menu item the first time, the label changes immediately, but not the check mark. When I click the menu item a second time without opening a form the label does not change, this means, that the property CHECKED is only changed, when a form is opend/closed.
    Even better: The initial label id Debug, clicking the item should change it to+ Debug on+ and on subsequent clicks change between Debug on and Debug off
    1. Click -> Label changes to "Debug on", check mark unchanged
    2. open a form
    3. Check mark is shown but label is the default Debug
    4. close the form
    5. Check mark is not shown, label is back to Debug on
    6. Repeat step 2 - 5 with the same result
    Different sequences of clicking and opening/closing forms give seemingly random combinations of check mark on/off and label texts.
    Conclusion:
    A menu check item is a very obstinate thing. I will not use it if I can avoid it.
    Regards
    Marcus

  • After upgrading to 4.0 my settings to clear history when closing does not work

    After upgrading, per your recommendation, to 4.0 my history, cache, cookies, etc. are not being cleared when I close the browser, despite the fact that I have correctly re-adjusted my option settings. When I re-open the browser, not only has it not cleared anything, but opens not on my home page either, but on the last web page I was on! Why do properly set options for privacy work anymore?!

    Digital Persona have abandoned their fingerprint reader and it will not work in Firefox 4. For more details see https://support.mozilla.com/en-US/questions/799388

  • Input Date does not work correctly In dynamic region

    Hello everyone.
    I created a view with a dynamic region. When switch to a region with Input Date components, if I click the "Choose Date" button, this region will exit to default region without any error message.
    The component works well in default region but not in regions switched by Link.
    I tried it in a completely new application and i am sure there is no any problem except the component and the region themselves.
    SO, if someone tied doing this and know what cause it and how to fix it?
    Edited by: 1007000 on 2013-5-20 下午8:49

    Well, i find out the problem. I set the managed bean of the region backing scope, and Input Date is a server-side component. So the taskflow id will lost when i click the Choose Date button.
    change the scope to pageflow, and it works.

  • Cascading List Item does not work proprely

    In HTMLDB 2.0
    I have two list item
    The first one: :P7_TYPE (select list with branch to page)
    The second: :P7_PERIOD (select list)
    The Query of the :P7_PERIOD use a where clause on :P7_TYPE
    There is also two button at the bottom of region that will work once the two list (P7_TYPE and P7_PERIOD) are filled.
    Note: Both Query are based on shared compenent LOV.
    So I would like the page refreshed once the P7_TYPE values is choosed so the P7_PERIOD show only the valid values.
    The problem is when I select from the P7_TYPE List, the page is refresh but instead of displaying the page 7 again, it display another page of the application.
    I realise it always display the page number according to the value of the P7_TYPE.
    For exemple, if in P7_TYPE is choose (type desc 4, value 4) then the page 4 is displayed.
    I want the page 7 to be resfresh, not another page. So I can have a cascading list that work with P7_PERIOD.
    ??

    Ok, I change the list for list with submit instead and it work.

  • In FF28 the "Options - Privacy - History - Clear your recent history " does not work.

    Never works to clear history. I can remove individual cookies.
    Here's my settings:
    Options
    - General - Show my windows and tabs from last time.
    - Tabs - top 4 checked.
    - Content - Block pop-up windows checked
    - Privacy - Tracking - first box selected; History - FF will remember history.
    - Security - Top three checked.
    - Advanced - Network - Cached web content - Override cache management checked. Limit to 350mb.

    See also:
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    If you use "Clear history when Firefox closes":
    *do not clear the Cache (Firefox will disable the disk cache in this case, see about:cache)
    *do not clear the Browsing History (clearing history will prevent reopening tabs automatically via session restore)
    *Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/remove-browsing-search-and-download-history
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
    Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception that you would like to keep.

  • Copy-Item does not work between two azure vms

    hi
    I have 2 VMs hosted in Azure and i tried to copy using power shell
    Copy-Item -Path C:\testSource\test.txt  -Destination \\10.0.0.4\testshare 
    I got the following error
    Copy-Item : Source and destination path did not resolve to the same provider.
    At line:1 char:1
    + Copy-Item -Path C:\testSource\test.txt  -Destination \\10.0.0.4\testshare -Force
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (System.Collecti...[System.String]:Collection`1) [Copy-Item], PSArgumentException
        + FullyQualifiedErrorId : CopyItemSourceAndDestinationNotSameProvider,Microsoft.PowerShell.Commands.CopyItemCommand

    Hi,
    I will mark Sam's post as answer, if you find that doesn't give you help, please feel free unmark it and follow up.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Audio input suddenly does not work

    The audio input on my macbook has been working perfectly fine for the past 3 years until today. In GarageBand it doesn't even pick up any sound whatsoever. I have the preferences set to audio-input as my default input recording. If I barely move my cable out of my audio-input jack I can pick up sound for a few seconds. I tried different cables and bought a new adapter. What can be done to fix this or is it a soundboard issue?

    Actually... before you do that - go into system preferences under sound and see if you can get a signal on your input.

  • Input Help (F4) does not work for Planning Functions in Web

    Hi Gurus,
    I am working in BI-Integrated Planning.
    When I execute a planning function from web layout (through Web Application Designer), the "Input Help" does not work. When I give F4 it takes me to the initial planning layout screen from the planning function variable screen without any action being performed.
    But the "Input Help" works fine when I have to select for the variable from the initial selection to open the planning layout.
    Can anyone suggest me any fix for this...
    Thanks!!!

    Hi All,
    Can somebody help me here what went wrong with indesign cc extension so that copy/paste does not work in input type element text
    Regards,
    Alam

  • Clear recent history tool is not working

    the clear recent history button does not work when clicked on

    Try switching to another persona. In order to switch to another persona that you had previously installed, do the following:
    #Go to ''Tools'' and click ''Add-ons'' (or click the Firefox button at the top left and click ''Add-ons'').
    #Switch to the ''Appearance'' tab. You should find your previously used personas in the list.
    #Find the one you want to use and click the ''Enable'' button.
    To uninstall the other ones you can click the ''Remove'' button on them and they'll be uninstalled instantly.

  • When logging in into yahoo mail after typing in password Firefox is adding something, login fails all the time. At yahoo mail Notepad does not work because it is impossible to close the list of items and they cover information, so I have to go to IE.

    When logging in into yahoo mail after typing in password Firefox is adding something, probably remembered password and login fails all the time. At yahoo mail Notepad does not work because it is impossible to close the list of items and they cover information, so I have to go to IE.

    Only when i go to a different browser (like IE) after i clear it , then all that shows up is the pages i visited in IE , that is what bugs me , why is IE browsing history sowing up in Firefox ??
    Basically , i can clear the history in Firefox , and then for a example , go to Craigslist , using IE7 (launching it from a complete different Icon , in other words at that time i never open Firefox) , then after closing out , or even leaving open as it does not seem to matter , i go into Firefox , and hit History , and there is every place i visited in IE7 , on my History in Firefox

  • Getting input from mouse-wheel: does not work under windows/IE

    Hi
    I have built an applet that extends JApplet. To it I have added a class that extends JPanel implements MouseListener, MouseWheelListener, MouseMotionListener.
    I collect input using the method
    public void mouseWheelMoved(MouseWheelEvent e){
    do stuff...
    I have build this on a mac and tested it in firefox and it works fine. But on xp/vista internet explorer, the applet does not respond to mousewheel input. On mac osx /safari it does not work either.
    Is there any solution to this problem?
    Best regards, Carlis.

    Just for luck, try setting the JPanel focusable.panel.setFocusable(true);If that doesn't make a difference, you need to post a [_Short, Self Contained, Compilable and Executable, Example Program (SSCCE)_|http://mindprod.com/jgloss/sscce.html] that clearly demonstrates your problem.
    db

Maybe you are looking for

  • Watch iphone videos on a Macbook Pro

    I can't figure ot how to do this.  It's probably a simply procedure but I am brain dead. Help appreciated.  Anyone?  Anyone?

  • Error 11222 on Windows 7 when installing itunes 10.6.1

    I am trying to access the iTunes store on my windows 7 64 bit PC but I can't access the store.  At one point I got error 11222.  I have uninstalled iTunes, ran a full security scan, then re-installed iTunes.  No luck.  Any ideas?

  • How to handle large data sets?

    Hello All, I am working on a editable form document. It is using a flowing subform with a table. The table may contain up to 50k rows and the generated pdf may even take up to 2-4 Gigs of memory, in some cases adobe reader fails and "gives up" openin

  • Unitor8 and AMT8 OSX drivers moved to where?

    Hi all, I finally upgraded to Logic 7 after many years with Logic 4.7. Hooray! Unitor8 control won't see my Unitor8+3 AMT8's. I can't seem to find the Unitor firmware updater anywhere. I searched these forums but all of the links seem to be expired a

  • ZFS server as primary storage for Mac/Windows?

    I want to use ZFS for most of my storage, accessible from Mac / Windows / Solaris / Linux / etc. Basically replacing most local SATA / USB / IDE drives with an array of SATA drives on a ZFS server. Low-latency is important. Is this reasonable / possi