What to use to lookup label for a given value and just render the label ?

Which component or function to best use to render a label as an outputText in a table regarding the value that is loaded from the iterator.
I'm searching for something like a lov but just to render the corresponding label as an outputText.
Does something exists in adf faces for that purpose.
Is selectOneChoice or showOneChoice the component to use ?
Is better to do this in a backing bean ?
Any recommandation will be mostly appreciate
Thanks

Hi,
let say in managed bean you have a list with values:public class MBean {
    public List getLanguages() {
        List langs = new ArrayList();
        langs.add("en");
        langs.add("sk");
        langs.add("fr");
        return langs;
}This   <af:panelGroup layout="vertical">
    <af:forEach items="#{MBean.languages}" var="lang">
      <af:outputText value="#{lang}"/>
    </af:forEach>
  </af:panelGroup>will display: en
sk
frNow let's make a lookup object. Add this map into your bean:     public Map getLangDesc() {
        Map myMap = new HashMap();
        myMap.put("en", "English");
        myMap.put("sk", "Slovak");
        myMap.put("fr", "French");
        return myMap;
    }and replace previous page content with:   <af:panelGroup layout="vertical">
    <af:forEach items="#{MBean.languages}" var="lang">
      <af:outputText value="#{MBean.langDesc[lang]}"/>
    </af:forEach>
  </af:panelGroup>The output is now English
Slovak
FrenchOf course lookup method should look different. This is just example. Now the map is recreated after each request.
Rado

Similar Messages

  • Stop it from using photo black ink for black text printing and where has the color ink gone?

    My HP Photosmart Prem C310 series all in one is using the Black Photo ink cartridge for text printing instead of the XL Black that I put in it for text printing. How can I get it to use the right cartridge for printing? Also, even though I have NOT printed ANY photo's and very few pages of text the new set of color cartridges I put in it a few months ago are almost empty. Why? How could they be almost empty when I have NOT printed anything in color? This is getting ridiculous replacing ink cartridges every few months WHEN I HAVE NOT BEEN PRINTING ANYTHING!!!
    The set of ink cartridges that came with it lasted for several months. Since then I've gone through two sets in less than a year. That's 3 sets of ink cartridges when I have only printed 3 photo's when I first set it up. And have only used les than a 1/4 of one package of printing paper. I've only put paper in it twice. Each time it was about a 1/4 inch or 3/8 of an inch thick stack of paper in the tray. I've even tried shutting the printer down when its not being used for a long period of time but the ink is still disapearing. Where is it going? Why is it going there? How do I stop it? This is rediculous. I may as well junk the thing even though it still works because I cant aford to keep feeding it ink when its just sitting there doing nothing most of the time.
    Thank you
    This question was solved.
    View Solution.

    I just got another email from HP about this problem wanting to know what I found for a solution to this problem. From all of the suggestions from the HP tec support all of them pretty much kept saying the same thing. That it is my fault that it's using so much ink because I have it on the wrong settings. One tec did slip and say that it doesn't matter what settings you have it on it will always use the Photo Black cartridge for printing plain black text and it doesn't matter if you have a X-Large Black cartridge in it for text printing because it was made to always use the Photo Black for text and even use some of the colors to blend with the black to make it stand out. Why anybody would need this when just printing shipping labels and things like that I don't know.
    Any who, The only solution for this problem is,,,, junk the printer and get a different brand & model of printer. Research it before buying to find out how much ink it wants to waste and if it will still print black text if it only has a black cartridge in it. I was going to get rid of mine by giving it to a friend since they don't have a printer. But since I want to keep him as a friend I decided not to give it to him. Since it cant be traded in for a different one even though it still works, Its going to the target shooting range the next time I go out shooting. Maybe I'll take a few video's clips of it getting blasted to pieces with a Ruger 10-22 .22 cal. rifle with 25 shot clips, a Ruger Mini-14 Ranch Rifle shooting .223 cal with a 30 shot clip, a Chinese SKS 7.62 with a 30 shot clip. And maybe use my Ruger P89 9mm pistol and put a couple 15 round clips of 9mm in it. If there's anything left I'll finish it off with a few 3" magnum loads of #2 steel shot with my 20 gauge shotgun.  Then I think I'll do the same thing to my Westinghouse 46" flat screen HDTV that just died.
       Then maybe I'll come back and post the video's of my "solution to this printers problem". It may not fix the problem, but it will be an entertaining way of getting rid of the problem.

  • Can i use a thunderbolt display for my macbook pro and hp laptop with windows 7 and what adapters will i need

    Can i use a thunderbolt display for my macbook pro and hp laptop with windows 7 and what adapters will i need

    Hi jayhrab,
    Currently, the system requirements listed for an Apple Thunderbolt Display are:
    Thunderbolt-enabled Mac computer, including MacBook Air, MacBook Pro, Mac mini, and iMac
    OS X v10.6.8 or later
    Apple - Thunderbolt Display - Read the tech specs.
    Regards,
    - Brenden

  • What can I do? I've forgotten my password and dont remember the answers to my sercurity questions, and no longer have access to the email account i used for backup. How do I get my icloud password reset?

    What can I do? I've forgotten my password and dont remember the answers to my sercurity questions, and no longer have access to the email account i used for backup. How do I get my icloud password reset? Please help. Thanks in advance.

    Please see Kappy's User Tip here:
    https://discussions.apple.com/docs/DOC-4551

  • Good afternoon.  Product Adobe Muse serial number requests. What to do?  I paid for a month, but I work in the trial version.  If you can not make out, it will no longer use the services.

    Good afternoon. Product Adobe Muse serial number requests. What to do? I paid for a month, but I work in the trial version. If you can not make out, it will no longer use the services.

    There are many threads on same topic, please follow the suggestion mentioned here :
    https://forums.adobe.com/message/6486790#6486790
    Thanks,
    Sanjit

  • Can log into FaceTime it then asks what I want to use as contact so I select email address it says verifying then asks for apple if again and just keeps repeating the process

    Can log into FaceTime it then asks what I want to use as contact so I select email address it says verifying then asks for apple if again and just keeps repeating the process

    Hello Magsbingham
    You may find the troubleshooting steps in the article below helpful.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    -Griff W.

  • HT204053 What's the best way to set up a family of devices in order to use one apple id for purchases on itunes and the app store?

    we are trying to face time between devices, but it won't work whn multiple devices are tied to one apple id.
    How do you designate one id to pay for purchases and one so that we can facetime from device to device?

    The ID used for purchasing is in Settings>Store.  This ID does not need to be the same one used for other services such as FaceTime, iMessage, etc. (in fact you're far better off if you use separate Apple IDs for these other services).  To change the ID used for iMessage, go to Settings>Messages>Receive At, tap the ID at the top, sign out, then sign back in using a separate (and unique) ID.  You can similarly change the ID used for FaceTime in Settings>FaceTime.  To sycn data with iCloud such as calendars, contacts, etc., without merging your data across devices, set up different iCloud account with different Apple IDs for each device.  You can go to Settings>iCloud and turn off syncing for your data, and when prompted, choose to keep the data on the device.  Then scroll to the bottom and tap Delete Account.  Then set up a new iCloud account using a different Apple ID for each device and turn data syncing back on in Settings>iCloud.
    This article may be of interest: http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/.

  • On imac 10.6.8 using current version of Aperture.  How can I access the Aperture Library  on my external hard drive that I use with time machine for backup?  I can only access the application but not the library..

    On imac 10.6.8 using current version of Aperture.  How can I access the Aperture Library  on my external hard drive that I use with time machine for backup?  I can only access the application but not the library..

    Go into Time Machine (the program not the bundle on the extrnal disk) and using Time Machine's browser go to the Folder where the library lives. You could look in the library bundle in Time Machine but that won't really tell you much,
    If you want to make sure it truely has backed up your library you will need to restore it and open the restored library with Aperture.
    If all this still has you confused you need to read up on Time Machine in order to get a feel for how it works, for what it is doing and for how to restore files from it.

  • I am using Mavericks. I had a list of VIPS and used it extensively. Now it has disappeared and VIPs on the menu bar is faded. There is nil response to VIP in help. Can you tell me what has happened?

    I am using Mavericks. In Mail I had a list of VIPS and used it extensively. Now it has disappeared and VIPs on the menu bar is faded. There is nil response to VIP in help. Can you tell me what has happened?

    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Mail/V2/MailData/VIPSenders.plist
    Right-click or control-click the highlighted line and select
    Services ▹ Show Info in Finder (or just Show Info)
    from the contextual menu.* An Info dialog should open.
    Does the dialog show "You can read and write" in the Sharing & Permissions section?
    In the General section, is the box labeled Locked checked?
    What is the Modified date?
    If you don't have read and write access to the item, change the settings as directed here. Note, however, that if one file has wrong access settings, most likely others do as well. If the item is locked, unlock it.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • What is a recommended Graphics card for G4MDD running tiger and sometimes..

    What is a recommended Graphics card for G4MDD running tiger and sometimes 9.2.2
    I really need to have both in accelerated mode, looking at my stats I currently have 9000 PRO with 64mb ram... don't need it for games but high end graphics applications currently using Starta Pro 2.5.3 on 9.2.2 which for my current purposes is afficient

    The 9600 runs like crap in OS 9.2.2 with any ATI software you can find because ATI never wrote OS 9 drivers for the 9600. OS 9 ATI software does not recognize the card. You get a basic 2D monitor output that is soft, dull, slightly off-color, and cannot be enhanced with the Monitor's Control Panel calibration utility.
    If you spend any amount of time in OS 9.2.2 or you want to use OS 9.2.2 for any of your old games (even 2-D video clip type games), don't get the 9600.
    I have a 9600 installed in my MDD G4 and now have an original Radeon for Mac PCI video card installed as well. When I want to use any of my OS 9 games, I move the DVI cable from my LCD monitor over to the old Radeon card and restart.

  • HT5706 I have not used my apple tv in a few years, and just got it out of the bag. I connected it up, and it cannot set date, time.  it also does not interact with the remote.  Could it be as simple as a new batter is needed for remote?

    I have not used my Apple TV in a few years, and just got it out of the bag to use on a new TV.  I connected it up to power and with an HDMI cable toTV.  It attempts to set date and time and cannot.  I cannot get the remote to interact with the box also.  Could it be something as simple as needing a new battery?

    Hi kybriar,
    Thanks for using Apple Support Communities.  This article has steps you can take to troubleshoot the remote itself:
    Troubleshooting the Apple Remote
    http://support.apple.com/kb/ht1722
    For the issue of setting the date and time, these articles may help:
    Apple TV: Basic troubleshooting
    http://support.apple.com/kb/ht1551
    Reset Apple TV by unplugging it from the power outlet, waiting about five seconds, then plugging it in again.
    Power off your TV, wait five seconds, then power it back on.
    Apple TV (2nd and 3rd generation): Troubleshooting Wi-Fi networks and connectionshttp://support.apple.com/kb/TS4546
    Ensure that Apple TV is within range of your Wi-Fi router or base station.
    Confirm that your Wi-Fi router and cable/DSL modem are connected to power and turned on.
    Make sure other devices (computers, iPhone, iPad, for example) are able to connect to the Wi-Fi network and access the Internet.
    Check your Wi-Fi network settings on Apple TV:
    Select Settings > General > Network > Wi-Fi and press the center button on the remote to display nearby networks.
    Choose your Wi-Fi network from the list.
    If your Wi-Fi network uses a password, make sure you are entering it correctly.
    Restart your Apple TV by selecting Settings > General > Restart.
    Try restarting your Wi-Fi router or modem by turning it off and then on again.
    If possible, connect an Ethernet cable and verify your Internet connection. If you can connect to the Internet using an Ethernet connection, verify that your Apple TV is using the latest software by selecting Settings > General > Software Update. If your Apple TV can be updated, install the update and then try the steps again.
    Cheers,
    - Ari

  • We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a

    We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer."C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>". Current Situation: The above command line parameter when executed is working as expected in a User's Workspace. When executed in a command line on the Application Server is working as expected. But, the same is not working while executing it from Deployed environment.Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2. Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • I want to use my new netbook for my ipod charger and storage

    How do I use my new netbook for my ipod charger and storage?

    I gave full info for how to do this setup in this thread with screen shots..
    https://discussions.apple.com/thread/4817218?tstart=30
    Any of it you don't follow just ask.
    The TC is really a complex thing to use, when you don't do it as Apple designed it.. and in fact on your iMac an external drive will be cheaper, faster and more reliable than a TC. But I guess you already have it so may as well use it.

  • HT4061 as of lately my iCloud mail box as been full of junk mail ....... in iCloud preferences you can only send 99 different address directly to trash?  what Virus & Malware do you recommend for my iMac, iPad and iPhone ............ thank you !!!!

    as of lately my iCloud mail box as been full of junk mail ....... in iCloud preferences you can only send 99 different address directly to trash?  what Virus & Malware do you recommend for my iMac, iPad and iPhone ............ thank you !!!!

    as of lately my iCloud mail box as been full of junk mail ....... in iCloud preferences you can only send 99 different address directly to trash?  what Virus & Malware do you recommend for my iMac, iPad and iPhone ............ thank you !!!!

  • I have just started using iPhone 4s and cannot find out how to delete unwanted photos. I have used iPhone 3 gs for last 2 years and had no problem with this. Phone is connected to i cloud. Help please.

    I have just started using iPhone 4s and cannot find how to delete photos. Have used iPhone 3 GS for last 2 years and not had this problem. I have iCloud for my Apple family and don't know if this is causing problem. Help please.

    Log in to icloud.com with your Apple ID. Once you're logged in, click on your name on the upper right corner. Click Advanced and then Reset Photo Stream. This will delete all your photos in the album Photo Stream in your iPhone 4S so make sure you have backed up (copy to Camera Roll or new folder) all those that you want to keep.
    This is the only way to do it with iOS 5 (not the beta releases)
    http://iphone-and-i.blogspot.com/

Maybe you are looking for

  • How to SaveAs a pdf document?

    How to SaveAs a pdf document via javascripting using "Acrobat 8.0"? Kindly advise me with examples. Thanks

  • OOB Approval Workflow does not update WorkflowStatus column as "In Progress"

    Dear Experts, Any advice will be most appreciated. Here is the scenario Repository: document library Workflows: OOB Approval Workflow is turned on User Action: User uploads multiple documents (say 5 or 10) to the document library the workflow status

  • Apple TV "Loading" Photostream never completes

    Good day all, I am running Apple TV version 5.2.1 Selecting "photos / photo stream / my shared photo streams / insert name of stream here shared by me" as the screen saver, then preview results in a "LOADING" message that never goes away. I have the

  • DB adapter with different  db instance

    Hi, I need to configure different db instance into the same data base adapter. I've one instance for publisher schema and another one for subscriber schema . In the adapter.ini there are parameters only for OAI (publisher schema) db_bridge_schema1_ho

  • Cannot import in lightroom 5

    I'm having difficulty importing "some" files into Lightroom 5.  These are files located on my computer.  They were originally in my external drive, so I copied them to the desktop. Still can't import.  The program goes through the motion, then an err