title: Refreshing a page to load a new locale
body: <p>I'm trying to make a JSF reload the locale (which is defined in the view)</p>
  
  <pre><code>&lt;f:view locale="#{admin.userLocale}"&gt;
      &lt;h:commandButton image="images/ukflag.gif" action="#{admin.returnToEnglish}" immediate="true" onclick="window.location.reload()" /&gt; 
      &lt;h:commandButton value="1" action="#{admin.returnToEnglish}" immediate="true" onclick="window.location.reload()" /&gt;
      &lt;h:commandButton value="2" action="#{admin.returnToEnglish}" immediate="true" onclick="history.go(0)" /&gt; 
      &lt;h:commandButton value="3" action="#{admin.returnToEnglish}" immediate="true" onclick="window.location.href=window.location.href" /&gt; 
      &lt;h:commandLink value="4"&gt;
          &lt;a4j:support event="onclick" reRender="GeneralConfigForm" action="#{admin.returnToEnglish}" /&gt;
      &lt;/h:commandLink&gt;
  &lt;/f:view&gt;
  </code></pre>
  
  <p>I tried all of the above buttons.
  They all do the same thing - They call the method the changes the locale, the page reloads but the new locale labels are not loaded correctly. 
  At this point, if I reload again the changes catch up and the locale is shown correctly.</p>
  
  <p>How do I make the buttons update the local earlier so the page will show the new locale when it is brought up?</p>
  
  <p>Thanks!</p>
  
  <p>P.S - On JSF 1.2</p>