How to unselect/clear selection of selected  item in selectOneListBox?

I have a page with a selectOneListBox, and I can't find a way to unselect the selected item. When a downstream page navigates back, the list box always shows with the previously selected value. I've tried tweaking the selectOneListBox value attribute to null when it is not a post back, a la:
<af:selectOneListbox
    value="#{adfFacesContext.postback ? bindings.APLEntityTypedescription.inputValue : null}"Which didn't work, the list was completely empty. I also tried setting the value to null in the backing bean binding for the component:
    public void setFromType(CoreSelectOneListbox fromType) {
        this.fromType = fromType;
        if (!ADFUtils.isPostback()) {
            fromType.setValue(null);
    }And similarly for the getter:
    public CoreSelectOneListbox getFromType() {
        if (fromType != null && !ADFUtils.isPostback()) {
            fromType.setValue(null);
        return fromType;
    }None of this works, every time the page loads from a "back" navigation, the list box still shows the prior selection. But if I navigate to a completely different page and then come back, it is no longer selected.
So either I need some way to reset the selectOneListBox to have nothing selected, or completely clear the page assuming this is what happens when I navigate to an unrelated page and then come back. FWIW, the downstream page navigates back with a static navigation rule in faces-config.xml so I'm not sure why/how it remembers the prior selection state.
Any help/insight is appreciated, Clark

And this is how you do it in ADF (on the backing bean's getter for the selectOneListbox):
    public CoreSelectOneListbox getFromType() {
        if (!ADFUtils.isPostback()) {
            JSFUtils.setExpressionValue("#{bindings.APLEntityTypedescription.inputValue}", null);    
        return fromType;
    }Where the binding string matches that of the selectOneListbox's value attribute:
              <af:selectOneListbox value="#{bindings.APLEntityTypedescription.inputValue}"
                                   ... >

Similar Messages

  • How to find the selected item in alv grid or table control

    can any one tell me please
    how to find the selected item in alv grid or table control

    In table control, If you goto screen painter and goto table control properties ( f2 ), there is one check-box w/selColumn check that and give column name. Then add that column to your internal table.
    IN PAI
      LOOP AT it_tkhdr.
        FIELD it_tkhdr-sel_row
          MODULE tab_tkhdr_mark ON REQUEST.
      ENDLOOP.
    MODULE tab_tkhdr_mark INPUT.
      MODIFY it_tkhdr INDEX tc_tkhdr-current_line.
    ENDMODULE.                 " tab_tkhdr_mark  INPUT
    here it_TKHDR is internal table sel_row is field for selection
    After that, you can loop at it_tkhdr where sel_row is 'X' to get selected rows.
    regards,
    Gagan

  • How to check the selected items of a selectManyListbox in doDML of an EO ?

    Hello,
    I have a VO based on en EO. During the doDML(UPDATE) of that EO, I would like to check what items of a af:selectManyListbox have been selected.
    How could I get the checked items in the selectManyListbox (which belongs to the ViewController) in the doDML method of an EO (which belongs to the Model)?
    Many thanks

    Hello John,
    I know I cannot access the component directly. This is why I asked my question.
    The real case is rather complex and long to be copied and pasted here.
    Let me simplify it without being too generic.
    The VO is based on a hierarchical SQL query. All its EO attributes are transient. This VO is shown as a Tree in the page.
    Each node of the Tree has a checkBox. During commit (doDML() of the EO to be precise), for each checked node I need to access the selected items of a selectManyListbox in some proper way to perform further operations on the DB (no matter what now). The selectManyListbox is based on a second VO. As you may understand, the problem is that from the EO I don't have a direct access to the selectManyListbox. Also, as far as I know, the VO the selectManuListBox is based on does not have any informations about the selected elements, since the checkBox in the list cannot be associated to the VO. Basically I cannot know what elements have been choosen.
    I hope the problem is clear.

  • How to get the selected items from listbox

    Regarding listbox i have two questions
    1) I want to get the selected items as per the order in which ihave selected.Presently i'm getting in the ascending order.For example after selcting the 1,2,6 if i select 3 then its giving 1,2,3,6.But i want it in the order 1,2,6,3
    2)I want to select items from a single list box to many other listboxes.(ie) my first selection should goto first,second one to the second listbox and like this.How should i write the logic.
    please give me a suggestion.

    In order to have the selected items line up in accordance to the selection order, please do it one at a time. (That's the limit for that VI)
    If you need more than that (i.e. to regconize which item clicked first and which one comes later), you may have to figure it out ya
    Wish you good luck. Perhaps, someone else has a already made vi.
    Cheers!
    ian.f
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com

  • How to make a selected item in woodstock Basic's drop down list highlighted

    I am trying to create a JSF web page and populate Woodstock Basic drop down with options from a MySql database and highlight some options that a user had selected from previous session. How do I make the selected items appear highlighted?
    I would appreciate a response soon.
    Thanks,
    ITTSwengr79

    More specific? It can´t be more specific. Maybe you want me to be less specific.
    At any way, this coding example should say more than enough.
    <sometaglib:someInputComponent value="#{someBean.someProperty}" />
    public class SomeBean {
        private String someProperty; // +getter +setter
        public SomeBean() {
            this.someProperty = "some default value";
    }

  • How do I clear the recent opened item files on Adobe Illustrator CS3?

    Dear Gentlemen:
    How do I clear the left side of the Adobe Illustrator CS3 welcome menu that contains the most recent items opened?
    I just want the recent items be erased.
    Much help is appreciated.
    Thanks
    etow

    Hi Mylenium,
    Mylenium wrote:
    That info is stored in the registry on Windows and in a file in the Library on the Mac. nothing you can erase easily, but if you are feeling adventurous, on windows you could launch regedit, then search the registry for HKEY_USERS\[your user ID numeric key]\Software\Adobe\MediaBrowser\MRU\illustrator.
    Mylenium
    Edit: Please change your user name to not represent an e-mail address it invites spam bots and may actually get you a lot of extra mail...
    What is "[your user ID numeric key] "  in the registry HKEY_USERS\[your user ID numeric key]\Software\Adobe\MediaBrowser\MRU\illustrator
    that you mentioned above?
    After I find this registry key in Windows XP Home Edition Service Pack 3, then how do I modify this registry key?
    I am having trouble to modify my existing  Adobe ID to change it to a different ID not my email address.
    Please reply back soon.
    Sincerely,
    etow

  • How to only sync selected items from library

    *I am a new owner of a 120GB iPod classic. How do I sync only certain songs from the itunes I currently have ? I removed the check mark from the box and those songs still downloaded to the ipod. Not sure how to set itunes to only snyc those items selected. Any help is appreciated.*

    Hey there,
    One thing you want to check is to make sure you have your iPod set to only sync checked songs. To do this, plug your iPod in and when it appears in iTunes, on the Summary tab, you will see a section called "Options" below. You want to make sure you have a check mark next to "Sync only checked songs and videos" and then hit Apply and see if that helps.
    B-rock

  • How to get the selected item of a ListBox if it's contents are binded data? (Please read)

    So, I am making an application in which binds data from a WebClient to a ListBox. Thus, it is needed to understand that I did not create this data, it is from a Web API. So my goal is to be able to click on any of the items in the list box(which are binded
    from a web API) and open a pop-up to display more data binded from that specific area.
    Example:
    The data has been loaded and I click on the 2nd item, well this item is a Metallica concert located in Russia blah blah.. ok, so I press it, it opens a pop up with more info like the date, location, etc...
    Info:
    I am binding the things in the lost box from and "events" statement, and I want the data in the list box in the pop up to display the selected child item, "event".
    Zack Bowling

    So are you storing that 'more info data' along with main data(i.e. that metallica concert etc.) somewhere in a List/observableCollection/database etc, if yes then probably it can be fetched directly from that collection. 
    e.g.
    private void listBox_Tap(object sender, System.Windows.Input.GestureEventArgs e)
    var Itemobj = (listboxname.SelectedItem) as ObjectClassname; string datevalue = Itemobj.date; string location = Itemobj.location;
    //so using Itemobj you can fetch the properties you want as stored in ObjectClassname.
    // Here ObjectClassname is the name of class storing the properties(setter-getter) for the parsed data.
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • How to show the selected item in a drop-down box......

    hi,
    i m using the following code for selecting from the drop-down box...
    <html:select property="lddate" style="width:160">
    <html:options collection="load_dt" name="AlmCurrencyRiskAnalysisBO" property="load_dt" labelProperty="load_dt"/>
    </html:select>
    but what happng when i m select any date from the dropdown box it does not show that date. it only shows the last entry date in the load_dt arraylist.
    i m trying to implement this on a jsp page..can anyone plz tell me what shuld i do to show selected date...plzz help..its vry urgent.........

    Vini,
    He seems to be using Struts not ADF Faces.
    Seems, you have given list to to property and labelProperty, Can you re-check these properties?
    Sireesha

  • How To Dynamically Set Selected Item in SELECT List in DW Object

    Hi!
    I hope I can explain this situation halfway decently...
    I am creating a DW Object that captures specific metadata. In
    this case, in the form I have a HTML <SELECT> list of
    languages. When the language metadata attribute is first captured
    in the form, the application adds the metadata
    <meta name=language content="EN">
    to the DW document correctly.
    Now suppose the user wants to update their metadata.in order
    to change the language attribute. I would like the metadata form
    when it redisplays to have "EN" selected in the language attribute,
    so that the user knows what the current value of the language
    attribute is. If the user changes the language attribute to,say,
    Japanese, the next time the metadata form displays, I would like
    have "JP" selected in the form, again so the user knows what the
    current value of the attribute is.
    I looked at several of the well-known metadata extensions for
    DW, but none of them exhibit the behavior I am looking for (usually
    they have English as the default in the form)
    This is probably easy, but I am just not seeing it. Thanks
    for any help!
    Kat---

    Hi Envision3D
    Thank you for your reply. Unfortunately, none of this
    information is stored in a database. It simply gets written as
    <meta> tags in an HTML file. When the object is used again,
    it reads the HTML file and pre-populates the form for the benefit
    of the user. The application pre-populates the text-type inputs
    correctly. It does not pre-populate the <select> inputs
    correctly. It just leaves them blank. I was hoping to be able to
    pre-populate the <select> form element with the selection
    that is currently found in the <meta> tag.
    <meta name="program" content="HR"> <==== meta tag
    found in HTML file
    Program: +-----------+
    | HR | <==== pre-populated <select> form field
    +-----------+
    Thanks again!
    Kat---

  • How do I clear previously typed searched items

    I have a problem
    When ever I am typing something on google or youtube, in the search box...a huge list of previously searched items that i typed in shows up when i start writing something with that same letter..
    on my pc, i would just select the whole text within that list and then press delete, so that the list goes away....
    how would i do it on the mac? its really annoying seeing all the stuff ive typed before every single time...
    i would appreciate if someone can help me out with this small situation
    thanks so much!
    ps: im new to mac, if u couldnt tell...so please dont mind...haha

    Google's search is a bit different. There, once logged on to your G account, go to Google Preferences. Somewhere in that maize of selections you'll find the option to remove the searches.
    It's true that Google will keep a record of your searches if you're logged into your Google account. However, Google doesn't autofill those search strings in the Google search field; only Safari does that. So the procedure for clearing those autofill entries is the same as you gave for clearing YouTube search strings.
    Instead of autofilling past searches as you type, Google's list of your search history is only accessed by clicking on the "My Account" link and then clicking on the "Web History" link. (And for what it's worth, clearing Google's record of your search history is via the option found at My Account > My Services - Edit > Delete Web History.)

  • How to get selected items from a tree in backing bean without adfbc

    Hi ADF Experts,
    Below is my code for af:tree. My question is how can I get selected Items from the selectionListener (without adf bc) this uses formation of tree from backing bean.
    Using Jdev 11.1.1.7.0
    <af:tree var="node" value="#{pageFlowScope.MerchandizeBean.model}"
                      binding="#{pageFlowScope.MerchandizeBean.treeModel}"     id="tree" immediate="true" autoHeightRows="0"
                           styleClass="AFStretchWidth" rowSelection="multiple"
                           selectionListener="#{pageFlowScope.MerchandizeBean.treeNodeSelection}">
                    <f:facet name="nodeStamp">
                      <af:commandLink text="#{node.classDescription}"
                           actionListener="#{pageFlowScope.MerchandizeBean.createListManyItemForMerchandise}"           id="displayTable" partialSubmit="true">
                      </af:commandLink>
                    </f:facet>
                  </af:tree>
        public void treeNodeSelection(SelectionEvent selectionEvent) {
            // Add event code here...
            RichTree tree = (RichTree)selectionEvent.getSource();
                    TreeModel model = (TreeModel)tree.getValue();
                    //get selected value
    Thanks
    Roy

    Hi,
    in a multi select case, try
    RowKeySet rks = tree.getSelectedRowKeys();
    Iterator iter = rks.iterator();
    while(iterator.hasNext()){
    Object aKey = iterator.next();
    tree. setRowKey(aKey);
    Object rowData ? tree.getRowData();
      .... do something with the data here ...
    Frank

  • Getting selected item from combobox itemrenderer and storing in object

    Hi Guys,
    Can anyone help me in this regard. Its very urgent.
    I have a combo box itemrenderer in datagrid column. I want to get the user selected item from the dropdown of the row(s) (User may select values from combo box from multiple rows of datagrid) and corressponding values of all other columns of the rows and store it in an object . Then pass this object to database to update only those rows that user has changed.
    I am able to get the selected item from combo box using "event.currentTarget.selectedItem" and corressponding values of all other columns of the rows using "valueSelect.ID", etc where valueSelect is object which contains data for datagrid. But am stuck up with, how to store the selected item value of the combobox  and corressponding values of all other columns of the rows into an Object ?.
    Can anybody help me with sample to store selected item from combobox and its corressponding values of all other columns into an object which i can send to db...?
    Kindly help me in this regard.
    Thanks,
    Anand.

    Hi!
    Are you using a collection of VO or DTO as the dataprovider of the combobox component?
    If so, have you created some attribute there to control the user's selection in the combobox?
    For instance:
    private var selected:Boolean = false;
    If your solution fits this approach, you may create a new collection that contains just the objects that were selected by the user, it means you can loop through the datagrid's dataprovider and only insert in this new collection those objects that have the attribute "selected" set to true.
    For instance:
    private function getSelectedRecords(datagridDataProvider:ArrayCollection):ArrayCollection
        var newCollection:ArrayCollection = new ArrayCollection();
        for each (var item:Object in datagridDataProvider)
            if (item.selected)
                newCollection.addItem(item)
        return newCollection;
    Afterwards, you may serialize this new collection with your back-end.
    Hope it helps you!
    Cheers,
    @Pablo_Souza

  • How to Retrieve the Selected Values from selectOrderShuttle using ADF 11g

    Hi Every One,
    Does anyone has idea how to retrieve the selected Items using shuttle and Order of the items using 'SelectOrderShuttle' component ?
    Thanks

    shuttle's valuechangeevent would fire when you shuttle items back and forth.
        public void selectOrderShuttle1_valueChangeListener(ValueChangeEvent valueChangeEvent) {
            ArrayList list = new ArrayList(Arrays.asList(valueChangeEvent.getNewValue()));
            if (list != null){
                for (int i=0; i<list.size(); i++) {
                    int l = list.size()-1;
                    val = list.get(l).toString(); //returns , delimited string
                    if (val != null){
                        val = val.replaceAll("[\\[\\]]", "");
                        StringTokenizer st = new StringTokenizer (val, ",");
                        int nto = st.countTokens ();
                        for (int j = 0; j < nto; j++)
                            String token = st.nextToken ();                     
                ..........

  • How do I move selected photos from one event to another in iPhoto

    Using iPhoto 9.5.1, how to I move selected items from one event into another event. I do not wish to merge both events. Thanks.

    select the photos and flag them - then select the target event and use the add flagged photos to selected event command
    LN

Maybe you are looking for

  • Problem in : Reciever Mail Adapter.

    Hi all, In my scenario  file --> Mail this scenario is worked fine but now it showing the following error in Adapter monitoring. error occured: [2006-01-19T04:59:02Z] unable to call the mailer; com.sap.aii.messaging.srt.BubbleException: Failed to cal

  • Not permitting time period to be overlapped....

    Hi , I have the following table..in Oracle10g Standard Edition: SQL> desc ref_dikaioum_meres_ektos_edras; Name                          Type      Nullable Default Comments SEQ_CODE_DIKAIOUM_EKTOS_EDRAS NUMBER(5)                           SEQ_CODE_ERG

  • In camera sharpening and acr 5.2

    When I open RAW photo in acr although I have "apply sharpening to all images" option selected my pictures are not sharpened like when camera sharpens them. And it seems imposible to get acr to open raw to look as embeded .jpg ...they are overexposed

  • Consignment Issue - No stock available

    Hi, While creating a Consignment Issue order, the quantities are not getting confirmed eventhough the stock is available in MMBE (Customer Consignment) for that particular customer. i have checked that there are no other open orders for the same,  th

  • PPT import error.

    I get question marks instead of images when importing from a PPT file set up on a PC.  Why does this happen and is there anyway to fix this?  Normally the slides import normally and all of the images appear but every now and then this error occurs.