title: Refresh view with Spring WebFlow transition
body: <p>I'm trying to add localisation to my web app which is built with Spring WebFlow and facelets. I want to add support for english and french. I've created my two messages_fr.properties and messages_en.properties files.</p>
  
  <p>My template which I use for all my jsf pages has the following code to define the messages bundle and two links to switch between french and english.</p>
  
  <pre><code>&lt;f:loadBundle basename="messages" var="msg" /&gt;
  ...
  &lt;h:commandLink id="changeLocaleFr" action="changeLocale"
  class="flag fr"&gt;
      &lt;f:param name="ln" value="fr" /&gt;
  &lt;/h:commandLink&gt;
  &lt;h:commandLink id="changeLocaleEn" action="changeLocale"
  class="flag en"&gt;
      &lt;f:param name="ln" value="en" /&gt;
  &lt;/h:commandLink&gt;
  </code></pre>
  
  <p>I've set up a session local resolver</p>
  
  <pre><code>&lt;bean id="localeResolver" class="org.springframework.web.servlet.i18n.SessionLocaleResolver" /&gt;
  </code></pre>
  
  <p>and a local change interceptor</p>
  
  <pre><code>&lt;bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"&gt;
      &lt;property name="paramName" value="ln" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>which I added to my flow handler mapping</p>
  
  <pre><code>&lt;bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping"&gt;
      &lt;property name="flowRegistry" ref="flowRegistry" /&gt;
      &lt;property name="interceptors"&gt;
          &lt;list&gt;
              &lt;ref bean="localeChangeInterceptor"&gt;&lt;/ref&gt;
          &lt;/list&gt;
      &lt;/property&gt;
      &lt;property name="order" value="0" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>In my flow I have a global transition for changeLocale</p>
  
  <pre><code>&lt;global-transitions&gt;
      &lt;transition on="changeLocale" /&gt;
  &lt;/global-transitions&gt;
  </code></pre>
  
  <p>All this is almost working. When I click on one of the links, the locale is changed. But I don't see the changes immediatly, I have to manually refresh or navigate to another view to rerender the page with the new langage being used. How can I make the changes appear immediatly after clicking on the link ?</p>