Setting getViewRoot().setLocale(new Locale("zh","CN")) didn't work

Hi guys,
I tried to set the viewRoot locale to zh_CN specifically like below:
FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale("zh","CN"))but the page still displaying english instead of chinese.
Do I really need to set the <f:view > in the jsp page like below:
<f:view locale="#{sessionScope.currentLocale}">I thought JSF will automatically get the locale which I set specifically?

I specify as follows:
<locale-config>
<default-locale>en</default-locale>
<supported-locale>en</supported-locale>
<supported-locale>es</supported-locale>
<supported-locale>fr</supported-locale>
<supported-locale>nl</supported-locale>
<supported-locale>pt_BR</supported-locale>
<supported-locale>zh_CN</supported-locale>
<supported-locale>zh_HK</supported-locale>
          <supported-locale>en_AU</supported-locale>
</locale-config>
          <message-bundle>ApplicationResources</message-bundle>

Similar Messages

  • When I try to reset my iPad mini it keeps asking for  a passcode! have tried restoring, connecting to iTunes and looked for the 'set up as new iPad' notification, but nothing is working? can anyone help please?

    I know my passcode is correct but when I try to reset my iPad mini it keeps asking for  a passcode! have tried restoring, connecting to iTunes and looked for the 'set up as new iPad' notification, but nothing is working? can anyone help please?

    If the iPad was running iOS 7,  iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • HT204053 I have different icloud and iTunes id's and I want to do homesharing for all my devices. I'm trying to set up a new iMac but homesharing is not working. SHould it be the itunes or iCloud id?

    I have different icloud and iTunes id's and I want to do homesharing for all my devices. I'm trying to set up a new iMac but homesharing is not working. Should it be the itunes or iCloud id?

    Welcome to the Apple Community.
    Preferably your iTunes account, but it shouldn't really matter for getting homesharing turned on, as long as it's a valid ID.

  • I tried to backup my bookmarks to move them to new computer, but it didn't work. I deleted the moved folder and now when I try to opn Firefox it says i must first close the existing firefox process or restart the system.

    I removed and reinstalled Mozilla and I still get this message. I am assuming that when I deleted the folder that had the bookmarks, something got screwed up in the program. I don't understand why completely deleting the program, downloading it again, and reinstalling it, does not resolve the problem? Also , I want to know how to do this properly, so that I can have my Favorites on the new computer.

    Sounds like a "hang at exit" problem. There are several possible causes for that error. See:
    * How to stop the running Firefox process
    ** In Task Manager, does firefox.exe show in the '''<u>Processes</u>''' tab?
    ** See: http://kb.mozillazine.org/Kill_application
    * What may cause Firefox to hang at exit
    ** http://support.mozilla.com/en-US/kb/Firefox+hangs (see "Hang at exit" section)
    ** http://kb.mozillazine.org/Firefox_hangs
    ** https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding
    * You may need to try Firefox Safe Mode
    ** You may need to use '''Safe Mode''' to locate the problem: http://support.mozilla.com/en-US/kb/Safe+Mode
    **Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes '''<u>before</u>''' starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    ** If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling '''<u>one at a time</u>''' until the problem reappears. '''<u>You MUST close and restart Firefox after EACH change</u>''' via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.
    ** See the following for more information
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+plugins
    *** http://support.mozilla.com/en-US/kb/Basic+Troubleshooting

  • I just tried to syncronise my iPhone, but it didn't work. HELP me please! does anyone knows what's wrong?

    I just got a new phone, I made a backup from my old one and tried to intsall the new.
    But it didn't work, is this a system default or is this my phone?

    Based on your incredibly detailed description of exactly what the chain of events was, including the exact text of all the error messages you received and what state the phone is in now, I'd say the problem is tied to the opposition of the Sun and Mars in the consellation Orion.
    Sacrifice a small woodland animal to the gods and make a pilgrimage to Stonehenge. That should take care of it.

  • My iPod touch 5th Gen iOS 8.1 won't turn on, charge and CONNECT TO iTUNES. Maybe this is because of the new release ios 8.1 where after the update it went recovery mode then i didn't restore, i set up a new ipod. What's wrong? Is ths bcoz of ios 8.1?

    My iPod touch 5th Gen iOS 8.1 won't turn on, charge and CONNECT TO iTUNES.
    Maybe this is because of the new release ios 8.1 where after the update it went
    recovery mode then i didn't restore, i set up a new ipod.
    What's wrong? Is ths bcoz of ios 8.1?

    How do you do that
    lllaass wrote:
    Try:                                               
    - iOS: Not responding or does not turn on          
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable              
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

  • My itunes account was disabled for some reason.  I changed password in iforgot and still didn't work.  I could log in but not make purchases from the store so I set up a new login/account .  Is there any way to move my music to the new account?

    My itunes account was disabled for some reason.  I changed password in iforgot and still didn't work.  I could log in and see my music but not make purchases from the store or even redeem an itunes gift card so I set up a new login/account with another email account of mine. On the new account I can redeem my gift card and download items onto my ipad2.  Is there any way to move my music to the new account?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • I lost the lan ethernet connection of an older windows 7 pc to my 3 Terabyte router when adding a new local printer to the pc. How do i set this up again so the PC is recognized and can get to the internet again through the time capsule?

    I recently added a new printer to a 2005 vintage PC that is running windows 7. It used to go through a router in my wifes upstairs office to the time capsule by wired ethernet (cat5) but when I added her new local printer thought I would network it, big mistaked, lost all my ethernet connection and she cannot get to the internet. Wireless not an option. How do i set up again the ethernet connection and i will only USB the printer locally this time for the windows pc?
    Tried windows diagnostics, and besides telling me to reset everything and turn router off and on etc. I am in an endless loop.
    Other Mac products are not impacted by this issue.

    I see no direct connection.. a printer and the computer setup for internet are not related.
    But it sounds like the router in the wife's office is now in the wrong mode..
    If you have an existing main router replace the second router for a switch .. that is the easy way.
    Otherwise you need to bridge the router if it has that option.. most do not. Or use wan bypass.. where you turn off the dhcp server in the router and fix its ip to match the range of the main router.. this is the hassle of using router as a switch.
    BUT I am making a huge number of assumptions.
    What I need is the full network layout.. a quick picture would help.
    I need main modem.. main router.. (maybe same box or different).. make model and current IP address and how dhcp is setup.
    I need secondary router.. if that is what it is, IP and settings.
    I want the printer type and model. How it is connected.
    BTW I much prefer to see a network printer plugged into the network rather than usb.. it is only a matter of sorting the IP settings and driver pointing to the network rather than local.
    Or you should think of it as a broken washing machine and call the technician.. who could fix the whole lot in an hour.

  • Instructions on the Apple site to do this but it didn't work. How do I revert back to the original set up? All files still on local hard disk

    I moved the itunes folder to an external hard drive but it didn't work, so I want to revert back to original set up. All the files are still on the local hard disk. I have tried to reverse the steps I used previously but when I try to play a track it says original file could not be found. If I navigate to the itunes music folder and select a track direct from there it opens itunes and plays so I know the music is still on the computer I just can't figure out how to get it to play direct from itunes.
    Any help or advice would be greatly appreciated.
    Cheers

    In case you use "Clear history when Firefox closes" or otherwise clear history:
    *do not clear the Browsing History
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/remove-recent-browsing-search-and-download-history
    Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.

  • HT4859 When setting up my new phone, the setup assistant didn't appear. Where do I find "restore from back up?"

    When setting up my new phone, the setup assistant didn't appear.  Where can I find the "restore from icloud back up" option so I can transfer all my information?

    You have to erase the phone an go back through the setup again.  Go to Settings>General>Reset and tap Erase All Content and Settings.  Then go back through the setup screens again and when given the option, choose Restore from iCloud Backup (see image below).  Be sure you are connected to wifi and your charger as this will take some time to finish.

  • HT4314 When i set up my new iPad it didn't pick up the progress on some of my game center games is there a way to fix this

    When I set up my new iPad as a new product with iTunes it didn't pick up the progress of some of my game center games, Anyone know how to fix this?
    It also didn't load my photos either,
    Thanks in advance for any help.

    Firefox 4.0 on WinXP shows the Menu bar by default, the orange Firefox button appears when the Menu bar is hidden. Right-click the Menu bar and de-select the Menu bar item by clicking on it.

  • HT4859 Think I set up my new iPhone in correctly and didn't get chance to set up from last Back Up of old iPhone - so didn't pull my Apps and previous messages across. Any way I can start again.

    Think I set up my new iPhone in correctly and didn't get chance to set up from last Back Up of old iPhone - so didn't pull my Apps and previous messages across. Any way I can start again so everything comes across?

    No

  • HT5787 Help...I used what I thought was my password but it didn't work so I reset it....tried the new one and it doesn't work...I have reset and set up a new password for the fourth time this evening and still I can't get in?!!!! What am I doing wrong? Th

    I reset it again and it won't work in iTunes.. I have downloaded several apps before but now it just keeps saying retry.....but strangely my new password got me into this forum site?   Help..have I done something in settings?

    Did you try the one working module in both ram slots? If it worked in both slots then the other module is faulty. If the known good module didn't work in both slots then try the other module in both slots. By a process of trial and error you'll be able to determine if you've just got a bad module or a failed ram slot.

  • I am setting up my new iPad mini.  I managed most of it, but the contacts, and some of the apps didn't transfer.  How do I accomplish this?

    I am setting up my new iPad mini from my iMac.  I have backed up my old ipad so all info has been saved and sinced. I did not get my contacts and apps when the download, or sinc was complete.  How do I add them?  BTW, the instructions given while installing during the get started portion instructed me to use the start as new option.  Thanks

    You can search within your music folder on your pc, or within documents folder for a music folder.
    In any case, you would need to sync with itunes
    IOS: Syncing with iTunes
    http://support.apple.com/kb/HT1386
    Apple - Support - iPad - Syncing
    http://www.apple.com/support/ipad/syncing/
    If the music was purchased from the itunes store, you can also download it directly from there to the ipad.

  • Why does setting up a new eprint address procedure reach a dead end?

    UPDATE 2012 03 08 Thursday
    About 30 minutes after posting this message, I starting trying again. I was having the same problems. Eventually, I started to get suggestions for names - a list of about 6 - after clicking CHECK. But, then when I would try those names - they didn't work. Then I tried the name I had originally wanted - and bingo! The dialog box returned a message saying the name was available. There was also a SAVE button in the dialog window. I saved it, the dialog window closed, and the intial page refreshed automatically showing the new address.
    Yay! But, should I have had to go through all of that? And then, logging back into these forums! There were renewed difficulties. I had to - once again - change my password. Which I had to do to post my original message below.
    Anyhow, I still think this process needs to be addressed. It shouldn't be so troublesome.
    ORIGINAL POST
    I am trying to personalize the eprint email address for my HP Officejet 7500A Wide format printer.
    ( Although, I think the model has nothing to do with the problem in general. )
    I had little trouble signing in to the eprint centre and forums. Yay!
    ( I had some trouble, but that's another story.)
    Step 1. I found the page for setting up a new address. My initially issued address is displayed correctly. (hidden here by me) And I clicked the 'Change' button. (under arrow)
    Step 2. I saw my initial address correctly in the dialog box and window that popped. (above arrow)
    (There are some browser display problems with that dialog window, but, again, that's another problem.)
    Step 3. I enter a 'new' address conforming to the naming rules. And, click 'Check' button.
    Step 4. A useless 'dialog' window appears. There's no message - no 'save' - no 'accept' - no 'change' button...the only option is to click the X and close the window.
    (Yes, I tried various names. Yes, I tried waiting various times. No, I'm not an idiot.)
    Step 5.I saw my original address is unchanged.
    I tried the 'Refresh' button.
    My browser window refreshes.
    The address is the same.
    Step 6. I clicked 'Refresh' again. I checked my email for confirmation of the change or a request to authorize a change or something that would make sense.
    ( I started to think bad things.)
    Step 7. I searched the various forums, with various keywords without any luck. So, here we are. A new post.
    Any constructive help in solving this problem will be appreciated. I have very high to superior computer and networking skills, so uninformed gibberish about 'firewall' 'browser' 'personal hygiene' or similar, will be ignored. TY

    Hi HW,
    The PBX is a Panasonic TA308. There is no special interface to the PBX,  the  line port on the SPA3102 is simply plugged into an extension, like another phone. Anyone calling that extension will have the call routed through the SPA & PAP2 to the remote phone.
    The whole setup is totally seamless, & transparent to the user. As we are on a local network there is virtually no latency. There is a slight tendancy to echo,  but the echo suppression mostly takes care of that.
    THis has been a good exercise, and once I got my head around what I was trying to do, with your help,  it was pretty easy.  I think the hook flash timing would be the thing which gives most users a problem, as it seems to vary widely around the world. I was surprised at the difference between the US and NZ (.1 & .9 to .07 & .13).  There didn't seem to be any other critical differences.
    Now I am the local expert on VoIP   "In the Kingdom of the blind, the one-eyed man is King."

Maybe you are looking for