What is the signature of bean.userLocale? It must match the signature
defined here:
https://javaserverfaces.dev.java.net/nonav/docs/2.0/pdldocs/facelets/f/view.html
void afterPhase(javax.faces.event.PhaseEvent))
--Lincoln
On Tue, Jan 12, 2010 at 8:35 AM, <webtier_at_javadesktop.org> wrote:
> Hi!
>
> I'm upgrading a small (working) programme from JSF 1.2 and JSP to JSF 2.0
> and Facelets.
>
> My problem is that locale change which is referenced on the Facelet page as
>
> <f:view locale="#{bean.userLocale}">
>
> works only after the page is manually refreshed (after the locale change
> form has been submitted).
>
> I have tried various methods with no success yet:
> - form button with immediate="true" and context.getViewRoot().setLocale(new
> Locale("xx", "YY")) in managed bean code
> - normal form without immediate="true"
> - an ajax button with <f:ajax execute="userLocale" render="@all"/>
>
> Googling for this turned up a couple of similar problems but no working
> solutions.
> [Message sent by forum member 'napu' (panu.korpela_at_fcspartners.fi)]
>
> http://forums.java.net/jive/thread.jspa?messageID=380291
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"