Need Value and labed different for a dynamic Dropdown in an ADF page

Hi,
We have an ADF page with a drop down.
This is populated dynamically.
We have created using the below code.
Issue: what we need is that each value the Label set should be different.
Code : presently hard coded
In the Java file for the page we had the following code:
===========================================================
String haircolor;
SelectItem[] haircolorSelectItems;
ArrayList haircolorlist = new ArrayList();
public PatientAdvSearch() {
haircolorlist.add(new SelectItem("Black"));
haircolorlist.add(new SelectItem("Blonde"));
haircolorlist.add(new SelectItem("Red"));
haircolorlist.add(new SelectItem("Others"));
haircolorlist.add(new SelectItem("Grey"));
SelectItem[] haircolors = (SelectItem[]) haircolorlist.toArray(new SelectItem[0]);
haircolorSelectItems = haircolors;
public void setHaircolor(String haircolor) { this.haircolor = haircolor; }
public String gethaircolor() { return haircolor; }
public SelectItem[] getHaircolorSelectItems() {
return haircolorSelectItems;
===========================================================
And the JSPX will have the following code.
<af:selectOneChoice binding="#{backing_PatientAdvSearch.selectOneChoicerace11}"
id="selectOneChoicerace11"
unselectedLabel="&lt;Select>">
<f:selectItems value="#{backing_PatientAdvSearch.haircolorSelectItems}" />
</af:selectOneChoice>
===========================================================
This populates both Lable and Value for the Select Item with one value.
We need two different value.
How do we go ahead with that.
Thanks

Yes.. actually i am also facing the same prob...
i need value and label to be different for dynamic dropdown.
Please help in case any one has faced the same issue.

Similar Messages

  • I need send and receive emails for edge server 2010

    i have exchnage 2010 in our orgnization now working fine , i can send and receive emails for hub and also we have tmg and fortigate firewall(200B) , already install and configuration edge server(configure edge subscribtion file and edge sync) but still message
    sent form hub and also receive form hub , what to do to receive from edge ? please help me i have 3 month search to fix his problem.

    Hello,
    I recommend you use the Test-EdgeSynchronization cmdlet to check if the subscribed Edge Transport servers have a current and accurate synchronization status. If you have configured EdgeSynchronization successfully, please delete send connector
    on Hub transport server.
    Please uncheck "anonymous users" on receive connector for Hub server.
    Please follow the ExchangeITPro's suggestion to check DNS MX record.
    Cara Chen
    TechNet Community Support

  • PR value and PO different

    All,
    Suppose I raised a PR for a non stock item ( No material code) .
    I put price approx. as 1000 and as per this value level , it has gone through the release procedure .
    After converting PR to PO , Purchase dept find that the actual value is 50,000.
    For value 50,000 , Release matrix for PR is different .
    1.So any way is there to restrict this kind of problem , where requestor can put approx value in PR as very less so that it will not go thru actual approval level.?
    2. Any tolerance limit we can put in PO for this ?
    3.Pls suggest a better way ?
    regards,

    Hi,
    The price on the requisition has to be available for input because the system needs this to check the value against the release strategy.
    If you were using material masters for everything then the price would be taken from the std or MAP price from the accounting view and so you could then protect the field and stop people from putting in whatever they want.
    BUT if the requisition is for a non material purchase (or for a material with no accounting view) the system HAS to have a value entered manually.
    This is of course open to abuse but there are no real alternatives.
    If you had a tolerance, what would you be comparing the price they entered against?
    So in my experience we have used a simple report that checks all POs created from requisitions daily and highlights any that have a price on the PO that is than X% higher than the price on the requisition. (we exclude material requisitions from it where the price is taken from the accounting view).
    This is cjecking after the event but at least there is enough time to intervene and stop the order if there is something wrong.
    Steve B

  • Do I need antivirus and firewall software for my MacBook Pro?

    New to the world of Mac. Just purchased MacBook Pro notebook. Will be using for basic personal use (internet browsing, sending and receiving e-mails, MySpace activity, and using Final Cut Express for creating videos). Do I need to purchase and install third party antivirus and firewall software? I see some information in the discussion forum that this is not really necessary with Mac/Leopard OS X.
    Also tried to search Apple site to see if Apple "recommended" certain antivirus software, but could not find anything specific in that regard.
    If antivirus software is recommended for use, would like to hear what other users recommend for purchase. Thanks

    Krwest
    Welcome to the world of Mac - I hope you will like it here
    I came from the Windows world some years ago and have never regretted the switch - on the contrary. I love the ease of use, stability and security of OS X.
    There are a lot of opinions regarding whether you should use antivirus and/or third party firewall on a Mac.
    I was used to having all the security I could, so to speak, on my Windows machines, and with good reason - my antivirus program stopped "nasties" on more than one occasion.
    With OS X I have never quite felt the need to install antivirus. One reason for this is that there are very few, if any, viruses or other "nasties" in the wild for OS X. Another is that OS X works differently from Windows and is less vulnerable (but not invulnerable!).
    Regarding firewall, I have found OS X own firewall to be sufficient since I also have a router with built in firewall on my network.
    That said, there are those who suggest that we should install an antivirus program if most of those we communicate with run Windows. This is in order to avoid unintentionally spreading viruses to them, viruses that may not affect us but might affect a Windows machine.
    In addition, OS X in not invulnerable, and there are those who think Apple might be more open to peoples interest in writing "nasties" for OS X if the market shares increase enough. Then again - it is all speculation and no one knows what the future brings.
    I am very security conscious, but would tend to agree with those who suggest that a third party firewall and an antivirus program is not strictly necessary.
    Should you still want to have added security, I would suggest antivirus and stick to OS X own firewall.
    Two excellent antivirus programs for OS X are ClamAVX (free) and Intego VirusBarrier X5 (pay) (Intego also has firewall and anti-spam solutions). They put little strain on the computer and are considered among the best.
    http://www.clamxav.com/
    http://www.intego.com/
    All the best,
    Espen

  • How to restrict values and apply condition for a characteristic in a query.

    Hi,
    I have to add two customer class(characteristic) fields to my query which is available as a navigational attribute in my multiprovider ( from which my query is built ).
    One field should give the values directly from master data. The values would be PV, CV, IT, OT. The other field should give only PV and CV based on the condition - Except CV, all others (ie. IT and OT) should be converted as PV.
    I like this to be achieved in the query level since i dont want to disturb the underlying cubes in the multicube.
    So i have two questions.
    1. How to bring two fields in the query for the same characteristic.
    2. How to achieve the condition in a characteristic for second customer class field mentioned above.
    Could somebody help me in solving this?
    Thanks in advance,
    Somenath

    Hi Somenath,
    you are absolutely right;)
    Besides the Third step
    Try to add two new Selections to your Structure as
    New Selection1 -> Set the Customer Class value to fix 'PV'
    New Selection2 -> Set the Customer Class value to fix 'CV'
    <b>you have to add</b>
    New Selection3 -> Set the Customer Class value to fix 'IT'
    New Selection4 -> Set the Customer Class value to fix 'OT'
    Fourth step
    Hide these four selections
    Fifth step: Add a new formula to your Structure
    (Customer Class == New Selection3)* New Selection1(Customer Class == New Selection4)* New Selection1(Customer Class == New Selection1)* New Selection2+Customer Class == New Selection2)* New Selection2
    Hope it helps
    Gabor
    ps: experts maybe suggest easier way...

  • Need back and forward functions for moves

    I have a working tictactoe game with implemented back and forward moves buttons, but i don't have any idea how to create the two functions using linked lists. can anyone please suggest these functions and provide some code snippets?

    Java4Geek wrote:
    that's the problem! i'm not using anything for move storing (yet) because I am confused about what exactly needs to be stored for a move. should be something like a node of (player, player's move, opponent's move)?why would you want to store the move AND the opponent's move in a single node? (not saying you're wrong, just wondering why you'd want to do that.)
    Think about the information that you'd need to know in order to go backward or forwards.
    Would you need to know which player made the move?
    Would you need to know what the player's move was?

  • Need Monday and Friday  dates for 12 weeks.

    Hi All,
    I need a core java class which takes a curdate as argument and gives the oupt put as only monday and friday dates from that date for 12 weeks.
    For example..if u enter the date 07/06/2005.
    The ou put:
    07/06/2005 07/08/2005 and it should skips the sat&sunday.
    o7/11/2005 07/15/2005
    07/18 -07/22
    07/25 -07/29
    08/01 -08/05
    08/08 -08/12
    08/15 -08/19
    like this why because i need to diplay the data in the form of buckets.between these dates.Please help.

    Take a look at java.util.Calendar. It has all the methods you need to make your own class for this.

  • Help, need drivers and EC update for MSI GT 740 / 1727 Gaming notebook.

    I've searched high and low and have not been able to find drivers for the gt 740 / 1727 laptop.  I needed to rebuild and no longer have my driver disk.  I'm installing windows 7 x64. I was able to find and update the bios on the MSI site, but no EC update( mines from 2009)
    I have not been able to install the Invidia gts 250m drivers as well despite trying multiple versions from the nvidia site.   
    David

    Quote from: Svet on 24-November-11, 15:16:01
    is it barabone or retail?
    Its a barebones.
    David

  • Need smtp and pop3 host for hotmail

    do you know what is adress for hotmail outgoing server
    like smtp.mail.yahoo.com for yahoo

    Properties.put("mail.smtp.host","www.hotmail.com");
    ... is correct, but if you are permitted to make a connection I'd be surprised. Well, no you can't, the buggers won't let you. You need to use Pop3 + yahoo and be a registered user, eg;-
    Store.connect("pop.mail.yahoo.com", -1, "yourIDname", "yourPassword");

  • Need biometrics and masstorage drivers for Satellite A105-SP4088

    Hi.
    I need the biometrics and masstorage drivers.
    Can someone say when i can download this drivers?
    I search at all page of the Toshiba supports.
    Recently formated my notebook. I don't have CD with drivers.
    Thank,
    Raul Yahtnel

    Do you need drivers for Windows XP???
    If yes then maybe this little info could be helpful for you.
    After installing Windows XP there could be a yellow exclamation mark by a "PCI Memory Controller" or "Mass Storage Controller" in the device manager. This hardware will only supported by Windows Vista.
    Therefore there is no Windows XP driver.
    I agree about biometrics driver this could be a fingerprint reader.
    Cheers

  • Need Users and ACL permission for KM Reports

    Hello Experts,
    Need you help for one requirement , in which i need to provide a list of users with ACL permission of each report from KM. There is huge amount of reports so it is quite time consuming to get each report open & to check the ACL and user from KM.
    It there is any thing , so that i can get the list of user with the ACL permission for each reports?
    Any help will be appreciated with points.
    Regards
    AK

    Hi AK,
        I misunderstood your query,if you just want to check the permission of all reports then you can use the default permission report available in the content Administration->KM Content->toolbox->reports->permission report.
    http://help.sap.com/saphelp_nw04/helpdata/en/fe/5290412facac5fe10000000a1550b0/frameset.htm
    If you could not find the report contact basis team to do the configuration
    http://help.sap.com/saphelp_nw04/helpdata/en/07/dad131443b314988eeece94506f861/frameset.htm
    Naga

  • Need sound and webcam drivers for Satellite A660-156

    hi all,
    my hard disk was physically damaged and replaced by new one. All data and setting were copied.
    But I found that no sound and webcam drivers are installed. I successfully had found them and installed, but still no changes. See sound icon with 'no sound' indication, click on it to fix the problem, but no problems have been found.
    Offered to see additional info or close the window. On Toshiba website found two sound drivers, but it doesn't help.
    Any idea how to fix that problem?
    Thnx in advance!

    Hmm I think you shoud ochekc if you have installed all the drivers in the right order:
    Here is the one which i found in one thread:
    1 Windows 7 64bit
    2 QFE KB974332
    3 QFE KB974431
    4 QFE KB974571
    5 QFE KB975467
    6 QFE KB975806
    7 QFE KB978258
    8 QFE KB977620
    9 QFE KB975777
    10 QFE KB972270
    11 QFE KB977609
    12 QFE KB979099
    13 QFE KB978251
    14 QFE KB971468
    15 QFE KB975560
    16 QFE KB977074
    17 QFE KB978207
    18 QFE KB978506
    19 QFE KB978262
    20 QFE KB976422-x64
    21 Registry Patch for System Restore V1.00.00
    22 PlayReady PC Runtime 1.3
    23 TOSHIBA Bulletin Board 1.6.07.0
    24 TOSHIBA ReelTime 1.6.06.0
    25 Intel Chipset SW Installation Utility 9.1.1.1024
    26 Intel Management Engine Interface V6.00.40.1215
    27 NVIDIA Display Driver 189.58
    28 Intel Turbo Boost Technology Driver 1.1.1.1007
    29 Intel Rapid Storage Technology Driver 9.5.7.1002
    30 TOSHIBA Supervisor Password Utility 1.63.0.9C
    31 TOSHIBA HW Setup Utility 1.63.0.22C
    32 TOSHIBA Flash Cards support utility 1.63.0.6C
    33 TOSHIBA Value Added Package 1.3.4_64
    34 Realtek Audio Driver 6.0.1.6069
    35 NVIDIA HD Audio Driver 1.0.9.1
    36 Broadcom Wireless LAN Driver V5.60.48.35_DrvOnly
    37 Synaptics Touch Pad Driver V15.0.8.1
    38 TOSHIBA HDD Protection 2.2.0.4
    39 Bluetooth Stack for Windows by Toshiba v7.10.10(T)
    40 Realtek LAN Driver V7.013.0112.2010
    41 Jmicron Card Reader V1.00.44.01
    42 ENE CIR Driver (if available) V3.2
    43 YUAN DVB-T/ATSC Tuner Driver (if available) 2.3.3.31
    44 TOSHIBA Sleep Utility 1.4.1.1
    45 TOSHIBA eco Utility 1.2.11.64
    46 Intel Proset 13.1.1.0.1.s64
    47 TOSHIBA HDD/SSD Alert 3.1.64.6
    48 TOSHIBA Service Station 2.1.40
    49 HDMI Control Manager 2.0.0.5.64
    50 TOSHIBA Remote Control Manager 3.0.1.0
    51 TOSHIBA PC Health Monitor 1.6.0.64
    52 TOSHIBA Fingerprint Utility 1.0.2.27
    53 ConfigFree 8.0.29
    54 TOSHIBA Web Camera Application V1.1.1.15
    55 TOSHIBA Face Recognition 3.1.3
    56 TOSHIBA Network Device ID Registry Setting Tool 3.0.32.4-7
    58 PatchFiles PCIIDEREG-1.1
    59 PatchFiles TosVolRegulator_x64_1.1

  • Satellite Pro A200 PSAFCA: Need Lan and display driver for XP

    Hey
    please help me!
    I have just installed XP on my new satalite pro, but i have had trouble with the drivers.
    At the moment I have installed most but from this site i can't seem to find a driver that will help my network card, nor my video NIVIDIA drive...
    any suggestions would be very valuable

    The Satellite Pro A200 PSAFCA is not known to me. I know only the Satellite Pro A200 PSAE1, PSAE4 and PSAE7. So could you please confirm your Pro A200 series?!
    If you cannot find the single XP drivers on the Toshiba page I would recommend checking the LAN and the graphic chip which is installed on the motherboard and use the XP drivers from the chip manufacture.
    If you need an graphic driver I would recommend using the drivers from the www.omegadrivers.net or www.laptopvideo2go.com site
    Regards

  • Help needed, Oracle and PreparedStatement setNull for VARCHAR problem

    Using the JDBC drivers included with JDK 1.3, I am encountering a strange problem when trying use a PreparedStatement with a NULL parameter in a VARCHAR column. When running the code below (user_id is an integer and login is a nullable varchar) the program will simply wait and wait and wait.
    import java.sql.*;
    public class OracleNullTest {
         public static void main(String [] args) {
              try {
              String odbcName = args[0];
              String dbUserName = args[1];
              String dbPassword = args[2];
              int id = Integer.parseInt(args[3]);
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              Connection con = DriverManager.getConnection("jdbc:odbc:"+odbcName, dbUserName, dbPassword);
              PreparedStatement ps = con.prepareStatement("Insert into junk(user_id, login) values(?,?)");
              ps.setInt(1,id);
              ps.setNull(2,Types.VARCHAR);
              ps.executeUpdate();
              ps.close();
              con.close();
              } catch (Exception e) { e.printStackTrace(); }
    If I change the 'ps.setNull(...)' to 'ps.setString(2,"test")' things work fine. Furthermore, I've changed the VARCHAR column to a TIMESTAMP and setting it to null works fine. The above code works fine on DB2 and SQL Server so only Oracle is anatagonizing me.
    Any insight or help is greatly appreciated.

    The ODBC driver has nothing to do with java. What you are using in java is a JDBC driver.
    Various microsoft products install a ODBC Oracle driver. Oracle also provides a driver that is installed with the Oracle Client install.
    I have seen reports that suggest the MS driver as good as the Oracle driver, consequently that could be source of your problem.

  • Need audio and modem drivers for Tecra A6

    Hi there,
    I couldn't find the drivers (audio+modem) Tecra A6 EZ6411 for WXP SP2.

    Hi
    and why you dont visit the Toshiba driver page and download the right drivers???
    The Toshiba driver page provides XP drivers for Tecra A6 PTA60E and for Tecra A6 PTA61E.
    If you dont know what Tecra you exactly have please check the label at the bottom of the unit!!!!
    I hope and think that everything is clear now.
    Have a nice day ;)

Maybe you are looking for