GetLabel() doesnt work JSF 1.2 RI it returns ""

im creating a Custom Validator method and want to insert the Label of the HtmlInputText into the error message.
The problem is that
public void validateCyrilicType(FacesContext facesContext, UIComponent uiComponent, Object value)
          HtmlInputText text=(HtmlInputText)uiComponent;
//      text.getLabel(); is aways "" is this a bug im using JSF 1.2 RI . why getLabel is not working ?
i have a label attribute in the JSF tag in the page.

I see. Here is the code from Sun RI 1.2_04 that gets the label (from MessageFactory.java):
     static Object getLabel(FacesContext context,
                                        UIComponent component) {
        Object o = component.getAttributes().get("label");
        if (o == null || (o instanceof String && ((String) o).length() == 0)) {
            o = component.getValueExpression("label");
        // Use the "clientId" if there was no label specified.
        if (o == null) {
            o = component.getClientId(context);
        return o;
    }Given this, it appears that one of the following scenarios is occurring. First, before the getLabel() method is invoked, the bundle is loaded into the namespace. Another possibility is that the value expression is returned and whatever consumes the message at a later time does the evaluation. A little further investigation reveals it is the latter. They use a special subclass of FacesMessage, BindingFacesMessage which resolves the ValueExpression. So in this way they delay the evaluation of the label until the bundle has been loaded.

Similar Messages

  • Run-as Doesnt Work

    Hi,
    I´m using a custom user manager and the principals.xml file to declare the roles/groups and the authentication and authorization works fine.
    However, i've added a servlet with a run-as tag and it doesnt work. The request.isUserInRole() method returns false.
    Can anybody help me?
    Thanks.
    Luiz

    hi guys,
    just fixed this .... your service should run on the same account as you have logged. By default all the service runs as a Local System Account.
    Thanx...
    Deepak

  • Command Link with Datatable doesnt work

    I had read the previosu posts stating that commandLink with the datatable will be corrected with the new version of Jsf- 1_1_01 .I installed the new version and the commandLink doesnt work inside a datatable still

    try initialising the List attached to the dataTable
    in the constructor or use an outputLink
    -DevioutputLink is similar to <href in jsp.It cannot implement the actionListener and action parameters which a commandLink does. Using a constructor for initializing is fine but when i want it to implement certain method then it creates a problem.

  • ItemDisabled doesnt works in f:selectItem of h:selectOneMenu

    Here is the dropdown in which itemDisabled="true" doesnt works for f:selectItem
    <h:selectOneMenu id="manufList" value="#{manufacturerBean.selectedManufacturer}" >
    <f:selectItem itemLabel="New" itemValue="New" itemDisabled="true" />
    <f:selectItems value="#{manufacturerBean.manufacturerList}" />
    <a4j:support action="#{manufacturerBean.loadManufacturerDetails}" event="onchange" reRender="manufName,manufDescription,manufSource,btnSave,btnDelete" />
    </h:selectOneMenu>
    Any pointers/suggestions will be appreciated
    Regards
    Bansi

    Forgot to mention in my earlier posting ................
    I have observed itemDisabled="true" works in Firefox browser but not in IE.
    Even in Firefox browser the item is disable only onChange i.e. pick different value form the list. I want the item to be disable as soon as the page loads
    The dropdown is the first component in my JSF page and it does CRUD operation. The first value in the dropdown is "New".
    When users pick "New" value from the dropdown it facilitates Create operation
    If users pick a value othet than "New" from the dropdown then all other fields are dynamically populated facilitating "Update" operation
    As picking "New" value from dropdown results in "Create" operation so its role based and needs to be disabled as follows
    <f:selectItem itemLabel="New" itemValue="New" itemDisabled="#{manufacturerBean.hasRole}" />
    which unfortunately doesnt work as soon as the page loads
    I am setting the value for property "hasRole" in the Constructor of backing bean as shown below
    public ManufacturerBean() {
         System.out.println("Inside Manuf Constructor");
    UserInfo userInfo = UserInfoHolder.getUserInfo();
    userRoles = userInfo.getUserRoles();
              Iterator it = userRoles .iterator();
         while (it.hasNext()) {
         // Get element
         userRole = (UserRole) it.next();
         roleName = (String) userRole.getNamsRole().getName();
         if (roleName.equals("NAMS Admin"))
              hasRole=true;
         else
              hasRole=false;
    Any pointers/suggestions will be highly appreciated
    Regards
    Bansi

  • MSI GF4 Ti-4200 doesnt work with WindowsXP

    I can't get the MSI display tools to work - it crashes,
    the vbios.dll doesnt load, it also crashes.
    the tv in doesnt work ,it crashes
    the tv out doesnt work ,it crashes.
    all the supplied software also crashes "application has encountered an error and cannot continue. sorry for any inconvenience"
    the intervideo software (windvr, wincoder, winproducer) and MSI PVI software all crashes as well.
    what's the deal with this stuff?  ?(
    I have a Dual AMD athlon Tyan thunder k7 motherboard,
    MSI Ti-4200-VTD video card and MSI tv anywhere card.
    is there any resolution for this?

    I'm sorry gfilitti if I don't have my system listed, but I thought my question was pretty simple...
    Has ANYONE been able to make the InterVideo WinProducer 2 software, that comes with the retail version of the MSI G4Ti4200-VTD64 card, work successfully under the Windows XP Home or Pro operating system?
    If the answer is YES, then I will begin investigating why my system can't.
    If the answer is NO, then I only ask for other people's recommendations of what software WILL work in place of that. I NEED those functions to work. That's why I paid extra for the VIVO.
    All we've heard so far in this thread are NO votes. I would like to see just how widespread this is. If I can find ONE person who claims it works fine on his/her computer under Windows XP, then my NEXT question would be if they had to do anything different to make it run, or was it just a straight install? Did they add the program patch available from the MSI website? See where I'm going with this?
    If you would REALLY like my system details, here ya go...
    ========================================
    CASE - ANTEC SX1000II with 4 internal 8cm fans
    POWER SUPPLY - ANTEC 400W "True Power" w/dual fans
    MOTHERBOARD - MSI 645E MAX (MS-6547 Ver 2.0)
    BIOS - AMI Ver 3.2 (10/21/02)
    PROCESSOR - PENTIUM 4 2.0aGHz (Rev/Step 2/4(9) )
    MEMORY - 1 Corsair 512MB DDR RAM (Winbond chips)
    DISABLED IN CMOS - FLOPPY Controller, AUDIO Device, MODEM Device, Serial Port B, MIDI Port, and GAME Port
    AGP SLOT - MSI G4Ti4200-VTD64 - IRQ 16
      DRIVER: MSI 31.00
      CAPTURE DRIVER -  nVidia 1.08
    SLOT 1 - Creative SB0090 Audigy Sound Blaster - IRQ 17
      DRIVER - Creative 3.0.0.18 9/20/02
    SLOT 1 - Creative SB1394 FireWire Controller - IRQ 18
      DRIVER - MS 5.1.2535.0 7/1/01
    SLOT 2 - NIC #1 D-Link DFE-530TX Ethernet - IRQ 18 (LAN)
      DRIVER - REALTEK RTL8139 5.396.0530.2001
    SLOT 3 - Adaptec 29160N Ultra160 SCSI Controller - IRQ 19
      DRIVER - Adaptec 6.2.0.0 3/19/2002
    SLOT 4 - EMPTY
    SLOT 5 - MSI SYSTEM D-Bracket
    SLOT 6 - NIC #2 NetGear FA312 Ethernet - IRQ 18
      DRIVER - Windows XP Pro native driver
    NOTE:
    NIC #1 is for home LAN
    NIC #2 is for Alcatel SpeedTouch External DSL modem
    SCSI DRIVES:
    ID 0 - COMPAQ (Seagate) ST318451LW, 18GB, 15K RPM
    ID 1 - QUANTUM Typhoon Atlas II, 18GB, 10K RPM
    ID 2 - Seagate ST39103LW, 9G, 10K RPM
    ID 3 - Plextor CD-RW PX-W1219S
    ID 4 - Toshiba DVD-ROM SD-M1201
    ID 5 - EPSON Perfection 1640SU Flatbed Scanner
    ATA/ATAPI DRIVES:
    Primary Master - No Connection
    Primary Slave - No Connection
    Secondary Master - MATSHITA LS-120 Ver F523
    Secondary Slave - No Connection
    USB DEVICES:
    DIAMOND SupraMAX 56K V.92 Model:SUP2920
    Generic Flash Memory programmer and other assorted USB devices on occasion.
    MONITOR - HITACHI SuperScan Pro 21 w/5-BNC input
    ========================================
    BTW, I would think when investigating a program's FLAT refusal to run, that the MOST important things aren't listed in these signature files. It has to do with what ELSE is running at the same time. Which services are running and which are NOT? What memory resident programs are loaded at boot-up? Any service packs installed? How about any security patches from Microsoft? Which anti-virus software (if any)? Which DirectX version? Personal firewall? Etc., etc.
    Granted, the hardware DOES have a factor, but I feel all of these are MORE important factors than the speed or brand of a persons hardware. I look at the signitures more as bragging rights than anything else.
    Now, this is just my opinion and may not reflect the feelings of the more sane people around me.  
    Cheers!

  • Macbook pro 15" mid 2010 i spilled water on keyboard now it wont power on if the battery is connected and the keys on keyboard doesnt work it works fine with no battery and external keyboard if i order a battery and new keyboard will every else work again

    macbook pro 15" mid 2010 i spilled water on keyboard now it wont power on if the battery is connected and the keys on keyboard doesnt work it works fine with no battery and external keyboard if i order a battery and new keyboard will every else work again lik it did before

    If you have records that show that you've taken your MacBook Pro in for a year to fix the machine, I would escalate the problem to Apple Customer Relations - unfortunately I don't have a number for Spain.
    It would only seem logical to me that if you've been trying to have the machine repaired during the time that the 'recall' was in effect that you should be eligible for a new logic board. But only customer relations will be able to make that call.
    Good luck - take the issue as high up the food chain as you can and see what happens.
    Clinton

  • On Safari, ipad connects to the internet.  But when in applications such as Keynote, I try to e-mail presentattion it doesnt work.

    I am a teacher and have my own iPad with a data plan.  We also have a router in teh classroom for wifi, and it has a very strong signal.  On Safari, the ipads can connect to the internet.  But when in applications such as Keynote and HTML Egg, I try to e-mail presentat. or post website to web, it doesnt work.  I tried re-setting the proxies and the router, no luck.  Please Help!  I am a teacher and want my students to be able to post their websites on to the web, and e-mail themselves and their parents their Keynote Presentations.

    Try this. Turn your iPad Off. Then disconnect the power going to the router for 30 seconds or longer. Then replug the power to the router (allow it to initialize) and turn On the iPad. Hopefully everything will connect. If not, see below.
    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • I've just installed CS6 creative suite mainly for photoshop CS6. It comes with camera raw 7.0.something, but need something newer to use my canon 6d. When I download camera raw 8.5 and install the raw converter doesnt work anymore, wont even open or isnt

    I've just installed CS6 creative suite mainly for photoshop CS6. It comes with camera raw 7.0.something, but need something newer to use my canon 6d. When I download camera raw 8.5 and install the raw converter doesnt work anymore, wont even open or isnt available anymore in the plugin list. Tried to reinstall everything for a few times, but nothing helps.

    When I search for updates the raw converter doesnt get update automaticly. Frustrating, is costing me the whole morning.

  • I am locked out of my computer (macbook air) I just got it back from the apple store and they reset it. I put in a new password, and now it doesnt let me log in anymore. Command R doesnt work, all i hear is a sound, but nothing happens.

    I just got it back from the apple store and they reset it (becuase it kept shutting down and not turning back on).
    I put in a new password because i needed to start over from factory settings, but now it doesnt let me log in anymore. (I don't know if this is because it doesnt accpet my password, or I forgot my password in less than 5 minutes, or because when i typed in my new password, i typed it in wrong twice)
    Command R doesnt work, all i hear is a sound, but nothing happens.

    What I don't understand is why it is rejecting a password I am creating.
    Perhaps the password you are creating is too short, or has characters that are not allowed, or is not secure enough because it is a word in a dictionary.
    FileVault may have standards for what it considers an acceptable password. If the password is part of the 128-bit encryption scheme, it might have to be 16 characters, for example. (Don't know if that is true, but it's a possibility.) Check your documentation for password requirements.

  • Scrolling and rightclicking with magic mouse doesnt  work anymore

    Suddenly scrolling and rightclicking with magic mouse doesnt work any more. Left clicking and cursor moving works normal. I have checked the system preferences for the mouse and find nothing strange or unchecked. Any ideas?

    Also tried the universal access thing. Doesnt work.

  • People Cannot Hear Me When I make Calls on iPhone 4, Bought a new iPhone 4, uploaded all of my own information from the backup, and it still doesnt work, help!

    I went in to apple, they couldnt figure it out, I am on AT&T so I was figuring on going into their store today and seeing if its something with the network, if not I am going back to apple, but this is literally a brand new phone i bought yesterday, not refurbished or anything, brand new, does anyone know why this isnt working? Everything else works fine, the mics both work, its just when I make calls or someone calls me the mic doesnt work.

    When you see the same issue on more than one hardware device, it means that the problem is likely to exist outside of the hardware.  Two things to investigate would be the software/firmware on the backup and issues with the cellular network.  It's probably safe to rule out the cellular network as well.
    First, make sure that you have imported copies of all the information (pictures, videos, documents) on the device.  Do this thorough itunes, and the applications (photographic and document processing) on your computer.  Perform a firmware update then restore the device as new.  If the problem persists, then you may actually have the worst luck and discovered two devices with an identical issue.
    Read each of the steps before initiating the DFU.
    !.  Connect the iPhone to any computer running a fully updated version of iTunes.
    2. Press and hold both "home" and "sleep/wake" buttons
    3. After eight seconds let go of only the sleep/wake button.
    4. Keep holding the home button until you see a popup mesage in iTunes.
    5. Read all all the popups, then use iTunes to update the iPhone's software.
    If the popup fails to show, repeat steps 2 through 4

  • My iphone 4 is stuck on the reboot logo, ive ried holding both home and power to shut it off snd then keep holding home to let you plug it into itunes but it doesnt work. what do i do?

    my iphone 4 is stuck on the reboot logo, ive ried holding both home and power to shut it off snd then keep holding home to let you plug it into itunes but it doesnt work. what do i do?

    Did you try rebooting the iPad? You will need to have some battery power for this.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    This may be helpful
    iPhone, iPad or iPod touch: Not responding or does not turn on
    Frozen or unresponsive iPad - Apple
    iPad: Unable to update or restore

  • My GX630 doesnt work properly on Windows Vista 64 bit

    Hi,
      I have problem with my GX630, its doest work properly at W Vista 64 bit, exactly Sleep mode ... its imposible to awake my computer nd I have to turn it off and than on to wake it up ...
      those buttons Turbo nd Eco mode doesnt work.
      sometimes happen that i get blue error screen and reset but I dont know why ... it wrotes something with some .dll file ...
    some people told me that its error is caused by that thing that there are no drivers for 64 vista yet ...
    I would be pleased if someone could help me up to this topic or to my email (removed to protect user privacy) or ICQ (115-378-414)  thank to all of you Jabu

    "sometimes happen that i get blue error screen and reset but I dont know why ... it wrotes something with some .dll file ... "
    What is the BSOD error code? What .dll ? Write down the exact error.
    Do you OC your notebook?
    "some people told me that its error is caused by that thing that there are no drivers for 64 vista yet ... "
    Install Drivers from MSI web:
    http://global.msi.eu/index.php?func=downloaddetail&type=driver&maincat_no=135&prod_no=1513
    "those buttons Turbo nd Eco mode doesnt work."
    You need SCM: http://global.msi.eu/index.php?func=downloaddetail&type=utility&maincat_no=135&prod_no=1513
    But x64 bit is N/A.
    Why you use x64bit version anyway? Why not 32bit?

  • I purchased an app namesd FLV Explorer and it doesnt work and it keeps crashing and i sent a report to itunes so they can refunde my money back but they wont answer me back :( please help me :(

    and it doesnt work and it keeps crashing and i sent a report to itunes so they can refunde my money back but they wont answer me back please help me

    We are all itunes users just like you.  We cannot refund anything.
    There are no refunds, but you can try contacting itunes support.  Click "Support" at the top of this page, then click the link under "Contact Us"

  • My macbook seems to be going crazy. At certain points (and for hours) I get the oh snap page on chrome, safari doesnt work, macbook wont let me create any files or for example upload music to itunes. I restored my mac so im sure its not a malware problem.

    My macbook seems to be going crazy. At certain points (and for hours) I get the oh snap page on chrome, safari doesnt work, macbook wont let me create any files or for example upload music to itunes. I restored my mac so im sure its not a malware problem. The only thing that solves it is switching off and on , but sometimes I have to do that for 6-7 times before its ok or wait for a few hours. Some help please

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

Maybe you are looking for