Blank entry removed from af:selectOneChoice drop down on valueChangeListene

I am using af:selectOneChoice component which is getting populated with values from DB. when the page is loaded first time, I can see one blank entry in this component. I have valueChangeListener set on this. when i change the value, the blank entry is removed.
Can anyone help me with the reason or how can i retain that blank entry.

Hi I am using following code for jsp page:
<af:selectOneChoice id="xyz" valueChangeListener="#{abc.xyzChanged}" value="#{abc.strxyz}" autoSubmit="true" styleClass="formfield">
<f:selectItems value="#{abc.arrayList}"/>
</af:selectOneChoice>
Following is the code in BKB class which populates this drop down:
                    AttributeValuesDTO attributeValuesDTO =
                         (AttributeValuesDTO)attrList.get(i); //attrList is list of values fetched from DB
                    arrayList.add(
                              new SelectItem(
                                        attributeValuesDTO.getAttributeValue(),
                                        attributeValuesDTO.getAttributeValue()));
I think that adding an extra blank entry is feature of af:selectOneChoice (please correct me) however that extra blank entry is removed when i trigger an action on valueChangeListener for af:selectOneChoice.

Similar Messages

  • How do you remove old email addresses from the invitee drop down menu in Calendar

    How do you remove old email addresses from the invitee drop down menu in Calendar

    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Caches/com.apple.iCal/Previous Recipients.plist
    Right-click or control-click the line and select 
    Services ▹ Reveal
    from the contextual menu.* A folder should open with an item selected. Quit the application if it's running. Move the selected item to the Desktop, leaving the window open. Relaunch the application and test. If there's no change, quit again and put the item you moved back where it was, overwriting the one that may have been created in its place. Otherwise, delete the item you moved.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • Adding a *Not* Null Entry to a Data-Bound Drop Down List

    How do I add a not null entry to a data-bound drop down list? I am supposed to have something like this:
    <html:select property="Korisnik1" >
    <html:option value="0000">
         (Not null value)
    </html:option>
    <html:option value="-1">
    (Null value)
    </html:option>
    <html:optionsCollection label="prompt" value="index" property="Korisnik1.displayData" />
    </html:select >
    In case the value 0000 is marked the value should be inserted in to the database. The code above displays the value but insert doesn't work.

    I think that in this case that article is not what's required Shay as the question related to a "No Null" entry. The answer would be to add it into the list that is used to populate the list in the first place - generally by adding a "union select from dual" to the query that generates the list values.

  • Crystal report Chose from List or drop down value in parameter from UDT

    Hi Experts,
    I had face a issue while creating a report for my client in crystal report , I had create a report and in the parameter field I want to select the value from the chose from list or drop down value from the User define table.
    In parameter had written field as : Code@Select * from dbo. [@UDT] ;  but in the report filled I am not able to select the value.
    Please Help me ! Thanks in Advance. :

    HI
    Welcome to the Forum...
    You cannot put all the values in a single parameter field so you need to select each field for each parameter...
    Better you post it in this link for more reponses:
    Reporting and Printing

  • Since update, all CC apps no longer will launch from menu bar drop down

    Accepted prompt to update CC apps, and now the menubar drop down menu lists two versions of every app I've installed — one with "(2014)" after the name.
    And none of the apps will now launch from the menubar drop down CC app list.
    How I downgrade back to the CC version that actually worked fine?

    Does turning off OpenGL in the Performance Preferences and restarting Photoshop have any bearing on the issue?
    Please read this and provide the pertinent information:
    http://forums.adobe.com/docs/DOC-2325

  • When I select an option from the help drop down menu it just goes away. It does not go to the help option I chose.

    When I select an option from from the help drop down menu it just goes away. It does not go to the query I selected by hitting the keypad.

    Jody
    you don't tell us Device or OS?
    Quoted from  Apple's "How to write a good question"
       To help other members answer your question, give as many details as you can.
    Include your product name and specs such as processor speed, memory, and storage capacity. Please do not include your Serial Number, IMEI, MEID, or other personal information.
    Provide the version numbers of your operating system and relevant applications, for example "iOS 6.0.3" or "iPhoto 9.1.2".
    Describe the problem, and include any details about what seems to cause it.
    List any troubleshooting steps you've already tried, or temporary fixes you've discovered.
    ÇÇÇ

  • Acrobat 8 Professional 8.1.2 crashes When selecting "Rotate Pages" from the "Document" drop down men

    When selecting "Rotate Pages" from the "Document" drop down menu Acrobat 8 Professional 8.1.2 crashes. Every time, no error mesage. Have run "Repair Acrobat Installation" with no success. Any suggestions? Thanks

    I am also experiencing the same problem only recently.  I have used the program for almost a year without any problems except now.  Adobe Acrobat 8 standard, ver 8.1.5.
    Whenever I insert pages or rotate, I get an immediate shut down window, “Adobe Acrobat 8.1 ahs encountered a problem and needs to close.
    I am no longer able to use this program.  Abobe Acrobat 5.0 still works fine.  Does anyone have a solution?  I already did a repair and reloaded the program.

  • Since upgrading to Firefox 4 I've been unable to select search items from the google drop down box in the toolbar. Instead, I have to retype my search item completely as I also unable to select 'auto-complete' items as they appear.

    Since upgrading to Firefox 4 I've been unable to select search items from the google drop down box in the toolbar. Instead, I have to retype my search item completely as I also unable to select 'auto-complete' items as they appear.

    Known problem with the Google Toolbar extension. <br />
    http://www.google.com/support/toolbar/bin/static.py?page=known_issues.cs

  • Cannot remove autocomplete entry from address bar; have already cleared history, and entry is not in the drop-down menu of the address bar either.

    I am having problems removing an autocomplete entry from my address bar; I have tried clearing my history, so it's no longer in that, and I do not have it bookmarked either, so it's not getting the URL from that location either. The autocomplete entry isn't even showing up in the drop down menu, so I can't even scroll through that to delete it.
    Basically, I want to be able to type "st" and go to "store.steampowered.com"; however, despite numerous times of typing in "st" and then going down into the drop-down menu to choose "store.steampowered.com", the bar continues to autocomplete "steamtrades.com", which is exceptionally annoying because I do not have that website bookmarked, or in my history, yet it continues to autocomplete to that address, which I do not want it to autocomplete to, and cannot figure out how to remove because I've already cleared my history multiple times, do not have it bookmarked, and it is not showing up in the drop down of the address bar for me to go down and force delete it.

    Did you try to remove some letters from steamtrades.com to see if that bring this entry up in the drop-down list?
    If it is not in the history then it might be present with a typed=1 flag indicating that you have typed or pasted it in the location bar.
    You can use the SQLite Manager extension in Firefox to inspect the places.sqlite file to see if this entry comes up in the moz_places table.
    *SQLite Manager: https://addons.mozilla.org/firefox/addon/sqlite-manager/
    <pre><nowiki>SELECT datetime(visit_date/1000000,'unixepoch') AS visit_date, url, title, visit_count, frecency
    FROM moz_places, moz_historyvisits
    WHERE moz_places.id = moz_historyvisits.place_id AND url LIKE '%steamtrades.com%'</nowiki></pre>

  • Deleting addresses from New Message drop-down window

    Hello all,
    When I create a New Message in Mail, the FROM drop down menu contains several outdated addresses that I want to delete.  How do I do this?
    I am not asking how to delete previous recipient addresses from the TO window.  I know how to do that. 
    Also, I have already deleted all traces of the old addresses from Accounts.  Yet they stubbornly stay in the my drop down choices as accounts to send email FROM (ones which don't work). 
    Thanks,
    _John

    dwcop wrote:
    Is it possible to delete web addresses from drop down window, when using Safari on my iPhone. I have a bunch of web address i don't want and i can't seem to get my iPhone to save the ones I want. The drop down menu I am refuring to is the one that appears below the web address your typing in!
    Any web addresses you want saved, Simply add them as a Book mark
    iPhone: Using Bookmarks
    http://support.apple.com/kb/HT1673?viewlocale=en_US
    As far as removing sites you have been to and you don't want listed. perform the following steps
    1. Close out of all your Tabbed pages.
    2. Visit any site except the one you have bookmarked or don't want listed.
    3. Go to Settings - Safari -Clear History, Cookies, and Cache, Repeat one more time for good measure.
    4. Now launch Safari, It should not remember any of those sites you visited or searched for. And now you can browse freely. This needs to be repeated anytime you want to erase data search history.

  • Populating the data from table onto drop-down list.

    Hi all
    The following code i have used in trigger 'when-new-form-instance'
    DECLARE
    group_id RecordGroup;
    list_id Item := Find_Item('Lines.classification');
    status NUMBER;
    rg_name varchar2(10) := 'rgroup';
    BEGIN
    clear_list(list_id);
    group_id := Find_Group(rg_name);
    IF NOT id_null(group_id) then
    Delete_Group(group_id);
    End if;
    group_id := Create_Group_From_Query(rg_name,
    'select meaning from lookup_values where lookup_type='TC_CLASSIFICATION' and lookup_code in('BUSINESS','PERSONAL')');
    status := Populate_Group(rg_name);
    Populate_List(list_id, group_id);
    END;
    i have created a Record_Group from Object navigator(name:'rg_name').
    and used it in the above code.
    after this i try to run the form, i am not able to see the value which i drop-down list
    can any one suggest me abt this, and any changes i need to do in the property pallet,...
    Thanks
    Raj

    u3 wrote:
    No, Populate_List requires that the record group is created at runtime.Actually you're wrong ;)
    POPULATE_LIST works with both, record groups created at runtime AND at design time.
    Try the below code on SCOTT schema with a list item and a button trigger:
    Record Group created at design time
    DECLARE
         RG_NAME VARCHAR2(10) := 'RGROUP';
         V_DUMMY NUMBER;
    BEGIN
         CLEAR_LIST('LIST_ITEM1');
         V_DUMMY := POPULATE_GROUP(RG_NAME);
         IF V_DUMMY = 0 THEN
              CLEAR_LIST('LIST_ITEM1');
              POPULATE_LIST('LIST_ITEM1', RG_NAME);
         END IF;     
    END;
    Record group Created at Runtime
    DECLARE
         GROUP_ID RECORDGROUP;
         RG_NAME VARCHAR2(10) := 'RGROUP';
         QUERY_TEXT VARCHAR2(1000) := 'SELECT ENAME, TO_CHAR(EMPNO) FROM EMP';
         V_DUMMY NUMBER;
    BEGIN
         CLEAR_LIST('LIST_ITEM1');
         GROUP_ID := FIND_GROUP(RG_NAME);
         IF NOT ID_NULL(GROUP_ID) THEN
              DELETE_GROUP(GROUP_ID);
         END IF;
         GROUP_ID := CREATE_GROUP_FROM_QUERY(RG_NAME, QUERY_TEXT);
         CLEAR_LIST('LIST_ITEM1');
         V_DUMMY := POPULATE_GROUP(RG_NAME);
         IF V_DUMMY = 0 THEN
              CLEAR_LIST('LIST_ITEM1');
              POPULATE_LIST('LIST_ITEM1', RG_NAME);
         END IF;     
    END;It does work with me both ways, I suggest you test it.
    Tony

  • From database to drop down box

    Hi all,
    Suppose I have the following
    String query ="Select name, number from Person";
    I want to put all the "names" in a drop down box and all the "numbers" in a separate drop down box. When I do this:
    while(rs.next()){
    <select="person" onchange="showSelection">
    <option value="<%=rs.getString("name")%>"><%=rs.getString("name")%></option></select>
    I only get the value of the first name in my table. Can anyone help me?

    Hi
    I think you need to do some order. my suggestion is to create an Object that contains name and number like this:public class MyClass {
         String name;
         int number;
         public MyClass(String n,int num){
              setName(n);
              setNumber(num);
         //set and get methods for the data members...
    }next, roll over the ResultSet and create MyClass object each time and add it to a Vector or something like that. usually a drop down box displays many times and it will be very bad if you will query the data base each time you want to display it, thats why i suggest you to save this Vector in a bean or somewhere else (of course, if the data is static).
    than display the vector content like this:<select name="person" onchange="showSelection">
    <%     Enumeration e=vec.elements();
         while(e.hasMoreElements()){
              MyClass m=(MyClass)e.nextElement();
    %>          <option value="<%=m.getName();%>"><%=m.getName();%></option>
    <%     }%>
    </select>
    <%     e=vec.elements();
    %><select name="number" onchange="showSelection">
    <%     while(vec.hasNext()){
              MyClass m=(MyClass)vec.next();
    %>          <option value="<%=m.getNumber();%>"><%=m.getNumber();%></option>
    <%     }%>
    </select>pay attention on how you wrote the select tag: <select="person"...
    and not: <select name="person"...
    hope it helps
    mamtz
    BTW
    think of using struts and custom tags in jsp it will much easier to do this!!!

  • How do you add a multiple entries at once to a drop-down list box?

    I'm making a form for students to fill out and I want them to be able to pick from about 200 different courses. In the Field/List Items place, it would appear that you can only enter one item one at a time. I did this for 56 faculty,which took too much time, but for over 200 course titles, it would be much more convenient just to copy/paste them from an Excel spreadsheet, which is what I've tried doing. Any help or tips would be appreciated. I've attached a PDF of what I'm working on. The drop-down box is the one next to "Course." Thanks.

    Hi,
    The next version of LiveCycle Designer ES2 will allow user to copy and paste a long list of items into a dropdown or list box at design time. But until then your choices are limited.
    Paste them one at a time;
    You could set up a global variable in the (File/Form Properties) with the 200 items in the one variable. Then it would depend if your users have Acrobat/Reader v9 or earlier versions of Acrobat/Reader. John Brinkman has (several) blogs on this topic: http://blogs.adobe.com/formfeed/2009/01/populating_list_boxes.html
    If you are going with v9 then you can use the setItem script. However if you want your form to be compatible with earlier versions then you will need the addItem script.
    Also check out a sample by Steve Walker. http://forums.adobe.com/message/1939873#1939873 and  http://forums.adobe.com/message/2038932#2038932  The first one dealt with adding user entered data onto a dropdown, which is not exactly what you are after, but it will give you direction in populating a dropdown from an array.
    You would place the script in the docReady event of the dropdown, which would populate the dropdown every time the form is opened.
    Good luck,
    Niall

  • Pre-Populating Text fields from a Data drop down list using SQL Server

    I'm currently trying to update some of our internal forms which are word based or a basic PDF form you fill in by yourself.
    I'm connecting to our SQL server as there are databases stored there for an internal bit of software that hold information
    I can use to fill in parts the form.
    I have a data drop down list that is dynamically linked to the SQL databass and allows you to select a Project Number from that database, what
    I want to do after this is selected is to automatically populate some text fields with the Project name, Account handler and other fields held in the
    database.
    I've had a look online to see if there is a solution but haven't really found anythig that is similar (although I am new to LC so may have seen it
    and not realised) and my Java is non existant.
    Has anyone tried this and able to point me in the right directions?
    I'm using LiveCycle ES2 version 9.0.0.2 from Creative Suit 5.5 on Windows 7
    Cheers

    Hi,
    Actually this error does not cause any harm except a presentation inconvenience. In my multi-select prompt I am using variable expression with dynamic repository variable. Dashboard results are correct. Just variable's value does not appear on page (error Error Codes: G689FFB3:SDKE4UTF
    Expression: @{biServer.variables['CUR_CAL_PER_MONTH_NAME']}). Pushing "GO" button on the prompt fixing the error but it's actually second execution of the dashboard.
    Any ideas ??

  • Entries removed from cache when calling get()

    Hi. Have a problem where entries seems to be removed from the cache when calling get(). The problem occurs after the cluster has been idle (no calls to get or put) for a while. When I then call get for an entry that I know should be in the cache i can see, via an listener, that an entry is removed from the cache and the get call returns null.
    My cache is wrapped in a class that does not expose any remove methods so I know that there is no calls to remove. Below is a log showing the debug print from when the removal is done and a thread dump on the thread that does the remove.
    Attached you will find both a cache configuration and the code that produces the log below. Note that there is some code missing from the example but the missing code is only interfaces or datawrappers.
    Hopefully someone can help me solve my problem.
    Best Regards
    Marcus
    12539019 [] INFO ClientConnectionPortCacheImpl$DebugCacheListener - Entry removed - [1, null (null)]
    java.lang.Exception: Stack trace
    at java.lang.Thread.dumpStack(Unknown Source)
    at com.ongame.server.domain.casino.cluster.impl.ClientConnectionPortCacheImpl$DebugCacheListener.entryRemoved(ClientConnectionPortCacheImpl.java:121)
    at com.ongame.server.framework.cluster.cache.impl.coherence.CoherenceCacheFactory$CoherenceCacheDelegator$CacheEventAdapter.entryDeleted(CoherenceCacheFactory.java:212)
    at com.tangosol.util.MapEvent.dispatch(MapEvent.java:199)
    at com.tangosol.util.MapEvent.dispatch(MapEvent.java:164)
    at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:550)
    at com.tangosol.coherence.component.util.SafeNamedCache.translateMapEvent(SafeNamedCache.CDB:7)
    at com.tangosol.coherence.component.util.SafeNamedCache.entryDeleted(SafeNamedCache.CDB:1)
    at com.tangosol.util.MapEvent.dispatch(MapEvent.java:199)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$ViewMap$ProxyListener.dispatch(DistributedCache.CDB:22)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$ViewMap$ProxyListener.entryDeleted(DistributedCache.CDB:1)
    at com.tangosol.util.MapEvent.dispatch(MapEvent.java:199)
    at com.tangosol.coherence.component.util.CacheEvent.run(CacheEvent.CDB:18)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service$EventDispatcher.onNotify(Service.CDB:14)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:34)
    at java.lang.Thread.run(Unknown Source)<br><br> <b> Attachment: </b><br>coherence-java-example.txt <br> (*To use this attachment you will need to rename 455.bin to coherence-java-example.txt after the download is complete.)<br><br> <b> Attachment: </b><br>coherence-cfg-example.txt <br> (*To use this attachment you will need to rename 454.bin to coherence-cfg-example.txt after the download is complete.)

    Hi Marcus,
    Your configs clearly show that you cannot have eviction.
    From what you have described, you are almost certainly seeing eviction.
    I conclude that the config that is being used is not the config that you intend to get used. To verify this, you can look at the logs to see what config is getting used. I believe you will see what configuration is being used when that config file is loaded. For example, in version 3.2:
    2006-11-22 19:32:13.068 Tangosol Coherence DGE 3.2/367 <Info> (thread=main,
    member=1): Loaded cache configuration from resource
    "jar:file:/C:/java/opt/coherence320b367/tangosol/lib/coherence.jar!/coherence-cache-config.xml"
    Having seen this same problem before (encountering it myself and seeing others encounter it), we added that logging to be clear which config file was being used. If you use the command line tool, it will additionally show you the cache config for the cache that is being accessed when you type the "cache xxx" command (xxx being the name of the cache).
    Peace,
    Cameron.

Maybe you are looking for

  • How to get the output in the required format

    Hi, I have a table Months it has 2 columns month_id (number) and month_name(varchar2). I wish to get the o/p from a select query such that , when user chooses a specific month_id it should appear first and rest all months should come below it in asce

  • How to add new column in Report ME2L

    Dear Sir, We are using ME2L for various purposes . In the ME2L report we need to add 2 new columns i.e Item Delivery Date and WBS Element . Although in the standard ME2L report , after the basic list generation , there have been provided 2 icons for

  • Payment Advise - Email issue

    hi For payment advise ,  i have done configurtion in BTE to send mail to vendor. When i chkd the mail , there is no attachment found. Is it necessary to apply note 1033893 . If nt necessary what may be problem? Is there any changes to be done in FM  

  • Menu Over Video... Always Has To Restart

    For the last year I have constantly been having an issue where the content I am playing cannot be stopped (mostly video apps but sometimes music) and when I press the menu button, the menus appear but they are over top the content that will not stop

  • Multiple windows in my application

    Hi I�m trying to design a application that asks the user for a log in id and password first before entering the main application I�m no sure the best way of go about this any suggestions?? I was thinking of using Jtabbedpane but I�m sure there is a n