Click outputlink reset the locale

i have a problem here.
when i change my language(locale) and then click the outputlink. it goes to the page with the default locale.
<h:outputLink value="mypage.jsp">
    <h:outputText value="#{bundle.create}"/>
</h:outputLink>  set locale
FacesContext context = FacesContext.getCurrentInstance();
String language = e.getComponent().getId();
context.getViewRoot().setLocale(new Locale(language));get locale and get bundle
ResourceBundle resources = ResourceBundle.getBundle("lang.Resources", FacesContext.getCurrentInstance().getViewRoot().getLocale());can somebody help me to find out a solution?
thanks alot!!!!

There is an example of this in the Core JavaServer Faces book on page 270 (Geary,Horstmann). It looks like you are doing it correctly, but the example in the book has additional information. There would be some legal ramifications with me posting it, so maybe you can pick up the book up at your local book store?
BTW - The Complete Reference: JavaServerFaces (Schalk,Burns) is REALLY helpful for learning JSF. I have both books, and each has their strong points. My opinion is that the one by Schalk has more practical examples for developers.
Sorry I can't be of further help.

Similar Messages

  • Dynamic button change color on click and reset the unclicked buttons

    Hi,
    I have have 3 buttons created dynamically from JSON file.
    When I click on any of them the color is changed to red. (this is good).
    But when I am going to click another button the previous red that I have clicked earlier doesn't change to it's grey statement, except from the last button which is the only one that works (is changing between red and grey).
    If for the JSON make variable for the index e.g.(0,1,2) is working, but I want to make it work without index it. I want to make it with symbol's attr.
    here is the files if someone can give it a try.
    Dropbox - hover.rar

    At stageCreationComplete I have it as a function, but it doesn't work correct.
    I want to know why.
    The problem is that when I use getJSON, it creates the ChildSymbols and keeps in memory only the last record (index).
    So, I believe that I need to count the indexes of the JSON files and store it perhaps.
    What I mean.
    My JSON structure:
      {     "title" : "Central",
            "category": "",
        "image": "images/thumbs/models/central.png",
        "large": "auto-2f-kent-large/0.png",
            "frame": "frames-large/0.png",
             "jsonf": "auto2fk.json"
      {     "title" : "Telescopic",
            "category": "",
        "image": "images/thumbs/models/telescopic.png",
        "large": "auto-2f-til-large/0.png",
            "frame": "frames-large/0.png",
             "jsonf": "auto2ft.json"
      {     "title" : "Glass",
            "category": "",
        "image": "images/thumbs/models/glass.png",
        "large": "auto-glass-large/0.png",
            "frame": "frames-large/0.png",
             "jsonf": "autoglass.json"
    it has 3 index. And on ChildSymbol I give the attr as .attr("id", item.title);
    If I make index.length it will give me 3 as number.
    But if I make item.title.length it will count the letters of its Word, the result will be (7,10,5).
    How Can I make it to count the word itself an give me 3 as a result?

  • HT204053 I have an old apple id that is no longer valid coming up on my iphone and is now now allowing me access to emails because i do not have a valid password. when i click to reset the password and ask for an email - the email never arrives to any of

    i have an old apple id coming up on my iphone. i do not have a valid password and every attempt to reset it either by email or by questions does not work. When i select email to reset i do not receive an email in any of my mail boxes. when i select ask questions - my answers do not match
    please help

    If you're talking about an old iCloud ID, you have to delete the old account, provide the password for the old ID when prompted to turn off Find My iPhone, then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How do I reset the local time?

    IOS 7 has set the time on my IPad to California time and I'm in Michigan,  How do I change the time?

    Settings>General>Date and Time>Time Zone

  • How do I recover/reset the administrator password in OS X Server

    I have a customer who apparently has a single Administrator acount in OS X Server (10.5X, I believe). They "can't remember" their password. I understand the password reset utility in the workstation version, but I recall reading this has huge consequences for a file server. Is there any safe way to do this?

    Hi
    "I recall reading this has huge consequences for a file server"
    Strange? I have never known of or ever heard of any such consequences.
    "Is there any safe way to do this?"
    Yes. There are a number of methods you could use but probably the easiest/simplest is to insert the Server Installer Disk, reboot and hold down the 'C' key. Just as you would on the Client OS, use the Password Reset Utility to reset the local administrator's password. You should also reset root's (System Administrator) password at the same time as this would have been syncrhonized when the default local administrator account was first created. Restart the Server when you're done. Login as normal using the password you've just reset.
    HTH?
    Tony

  • HT204085 What is "local items"keychain and its password, how can i reset the password if i forgot the password

    What is "local items"keychain and its pasword. how can i reset the password if i forget the password?

    I just fixed the same problem.  Here's what to do. 
    Click on the finder, then scroll across to the GO on the top menu bar, but also hold down the option or alt key while you do this.
    scroll down the go menu to library and highlight library.
    the library folder will open
    go to the keychains folder and open it
    in the keychains folder, then click and drag the blue folder that has all the letters and numbers for a title like "A2CEEE274-....."
    drag this folder to the desktop
    now restart your machine
    when the machine restarts, you should see the keychains folder still open with a new folder in it that looks just like the one you dragged out onto the desktop
    throw the one on the desktop out in the trash
    You just reset the keychain folder so the new mavericks update could recognize it correctly, by the way apple customer support mentioned the reason this was happening was due to the update, and this is the standard fix.  The apple keychain access pw should be your apple id or logon password. 
    Good luck!!!
    STEVE FARRELL

  • HT5312 I am trying to reset my security questions, I cannot locate the option for a rescue email address with My Apple Id. When I click on the button to reset the security questions, it states it is sending an email to the primay email address, but it doe

    I am trying to reset the Security Questions as I have forgotten them, when I have logged into My Apple Id, and click on the button to reset the Security Questions, it states it is sending an email to the Primary Email address. I do not have the option to input a Rescue Email address, the only option I have is to input an Alternate Email address, which I have done so.
    Also when I have tried to book an appointment throuth Online Support, I have not successful, I have rung a telephone number provided by the Mac Store in Perth, Australia and the reply provided is that we are closed. I was given to understand that Apple provided 24/7 Support to their users.

    Hot N Spicy wrote:
    I am trying to reset the Security Questions as I have forgotten them,
    Forgotten Security Questions / Answers...
    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
    Or Email Here  >  Apple  Support  iTunes Store  Contact
    More Info >  Apple ID: All about Apple ID security questions
    Note:
    You can only set up and/or change a Rescue Email Before you forget the questions/answers

  • When i want to return to my home page I click on the home icon and it resets the page to my home page but also open a blak tab which i don't want how can I stop this as i have too many tabs open.

    When I want to return to my home page after looking at a website I click on the home icon and it resets the page to my home page but also open a blak tab which i don't want.How can I stop this as I have too many tabs open and have to close all of them.

    You may have an unwanted extension that is modifying sites (or the toolbar area). Try this:
    Disable ALL nonessential or unrecognized extensions on the Add-ons page. Either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable.
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Does that flush the tab?
    Please report back on anything suspicious you find so others can learn about its bad behavior.

  • When i use pogo, on the risk game for instance, when i click on a game room, a window pops up and immdediately reduces in size, this size only shows part of the battle screen; i have tried resetting the zoom feature, no luck.

    i have seen this before on my home PC (on a lap top now) it is impossible for me to correct so i have to use IE to play pogo (i dont like IE it is slower) i click on a game, i go to a game room, and a window normally pops up showing the tables. normally i click on a seat and it takes me to a new window and the game board. NOW, when this first window pops up, it is aboout 1/4 size of my screen, but immediately reduces in size to about 1/6 of my screen. wnen the game loads, i cannot view the whole screen only part of the screen, as if it is zoomed in. I tried your suggestion and reset the zoom, no help.... i changed the zoom level manally.... no help.
    this also happens in scrabble and most other games. it is related to the java i am sure, but it only happens on firefox. How do i correct this. I have uninstalled, and reinstalled firefox. i have had this happen on the older version of firefox. it happens on multiple computers so it isnt just one computer.
    HELP!!!!!
    please

    I should have explained further. The game opens in a new window over to the upper left of my screen, leaving the original page underneath. I tried minimizing it so that I could get to my toolbar and did the View > Zoom > Reset. This has no effect. The lower portion of the game is still not showing. Using other browsers the window or frame of the game is much larger, therefore everything shows.

  • HT1414 I restored my ipod, and when i click on back up, it asks me for a password and i forgot that password. Is their any way to reset the password? I need that back up immediately!

    My little sister restore my ipod 5th generation and i want to restore from my last back up. It says, "Enter the password to unlock ipod touch back up". I forgot the password. Is their a way of reseting the password or taking it off?? Please help. (im doing this form my imac)

    Either:
    - Do not restore form that backup
    - Copy the backup file to PC and "crack" the password. and then use that password to restor on your Mac.
    Where iTunes backups are stored on your computer
    The folder where your backup data are stored varies depending on the computer's operating system. Make sure the backup folder is included in your periodic data-backup routine.
    iTunes places the backup files in the following places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Note: To quickly access the Application Data folder, click Start, and choose Run. Type %appdata% and click OK.
    Windows Vista and Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    Note: To quickly access the AppData folder, click Start. In the search bar, type %appdata% and press theReturn key.

  • I bought an IPhone 3gs and tried to reset the APN but when I click on settings then General they tell me to click on the "Network" tab but there is not a tab for "Network"? After Network, I was supposed to go to Cellular Data Settings?

    I bought an IPhone 3gs and tried to reset the APN through Strait Talk Wireless but when I click on settings then "General" tab they tell me to click on the "Network" tab but there is not a "Network" tab? After Network, I was supposed to go to Cellular Data Settings but I can't find the Network tab under the General tab. I watched videos and every IPhone I saw had the Network tab but mine don't, can anyone please help this old man fix this new technology, so I can use the Internes and MSM?Thanks, jerry b <><

    Hey electrikn,
    Thanks for the question. If your iPhone 3GS has been updated to iOS 6, this setting had moved:
    Set network options: Go to Settings > General > Cellular
    via http://manuals.info.apple.com/MANUALS/1000/MA1658/en_US/iphone_ios6_user_guide.p df
    Thanks,
    Matt M.

  • Apple ipad2 is recognized bei itunes in "wartungszustand". when i click reset on itunes and itunes tries to reset the ipad i get the information not possible with code 3194

    Apple ipad2 is recognized bei itunes in "wartungszustand". when i click reset on itunes and itunes tries to reset the ipad i get the information not possible with code 3194

    See if this helps : http://support.apple.com/kb/TS3694#error3194

  • I have just changed to Firefox from IE. When i pull up my home page which is the BBC.co.uk I have always to reset my local region as it always defaults to London. I didn't have this problem with IE. Can you please supply a solution, thank you

    I have just changed to Firefox from IE. When i pull up my home page which is the BBC.co.uk I have always to reset my local region as it always defaults to London. I didn't have this problem with IE. Can you please supply a solution.

    I fixed it!!! Following advice from similar posts, I searched the hard drive for "sessionrestore.js" in my Firefox Profiles folder (you'll need to enable viewing of hidden files in Windows Explorer (Tools > Folder Options > View (then select Hidden files option) then Apply to all folders) to do this). I then shut down Firefox, deleted the file and restarted - my home page was correct and it didn't try to open my old session! Some other posts suggested deleting everything called "sessionrestore" in that folder, but I didn't need to.

  • I see a 40 second delay each time I click in the Local Files pane after working in the Edit pane.

    I'm running Dreamweaver CS4.  I have a PHP file that's about  12,000 lines and each time I want to upload changes to the server, I stop editing in the Edit pane and click in the Local Files pane, at right, so I can select the file I've been working on the then do a synchronize. But it takes about 40 seconds, while a spinner goes around, before focus is transferred to the Local Files pane and I can select my file and synchronize.  It's as if Dreamweaver wants to do spell check or some kind of format check on all 12,000 lines before it lets me go to the Local Files pane.
    If I do a CTRL-SHIFT + U to upload I still see the same 40 second delay before the upload starts.
    Does anyone know what might be causing this?
    Thanks

    Just for interest sake, what is the size of the file that has 12,000 lines of code?  Have you tried asking in some php forums or newsgroup if this file can be stream-lined to make it smaller and/or efficient?
    I don't know why DW goes to sleep for 40 seconds but you might want to clear the DW preference file to see if that makes any difference.  D W Powers wrote a tutorial on how to do this but I can't find his page.  Alternatively, you can try this link:
    <http://www.dmxzone.com/go/16740/clearing-dreamweaver-s-cache/>
    <http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html>
    Good luck.

  • How to trobleshoot an ipod touch. yesterday i tried to reset the setting then after i click reset it suddenly shut and after a few minutes an apple logo came out. It cannot be open anymore until now. what will i do.please help me thank u

    how to trobleshoot an ipod touch. yesterday i tried to reset the setting then after i click reset it suddenly shut and after a few minutes an apple logo came out. It cannot be open anymore until now and the logo is still their. what will i do.please help me thank u

    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.
    - 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              

Maybe you are looking for

  • Vendor text of PO line item replication from SRM to ECC.

    All experts, Users are entering the more informations for individual line item in to Vendor text field available in to SRM Purchase order. Client requirement is to replicate the Vendor text from PO in SRM to PO in ECC. Right now system is replicating

  • DATE POPUP PROBLEM

    Hello Team, I have a report that is based on a sql like this: select Name, htmldb_item.hidden(1,ACID)ACID, htmldb_item.hidden(2,IN_ID)INID, decode( (SELECT wfm.data_type FROM wfm_tab1 wfm 'STRING',HTMLDB_ITEM.text(3, value,10), 'DATE',HTMLDB_ITEM.DAT

  • Can't open jpg

    I have a .jpg file that I can open in Windows, and in Lion (10.7.5) Preview but won't open in Mountain Lion (10.8.2) Preview.  I can open it in Gimp, and save it as a .jpg with another name.  That file is about half the size as the original, and will

  • Xcelsius integration with BPC - MS Versions - Error

    Hi I am trying to integrate xcelsius tool  with  BPC MS version.i am  getting below error when i test teh webservice.... can anyone  help on this? Server Error in '/OSoft' Application. Parser Error Description: An error occurred during the parsing of

  • Migration from PC-Mac not working

    Any suggestions on how to transfer files from a Windows 7 PC (HP pavilion dv5) to my new Macbook Pro?. I downloaded Migration assistant on my PC and it starts transferring data then after about 20-30 minutes it just crashes on the PC saying 'migraton