webtier@glassfish.java.net

Re: [webtier] JSF 2.0: locale change only after page refresh

From: <webtier_at_javadesktop.org>
Date: Wed, 13 Jan 2010 10:54:59 PST

Sorry, you lost me there.

If I'd want a PhaseListener type listener method I'd create it with a signature like:

   public void xxx(PhaseEvent e)

and reference to it with:

   <f:view afterPhase="#{bean.xxx}">


But as the page https://javaserverfaces.dev.java.net/nonav/docs/2.0/pdldocs/facelets/f/view.html says, the method signature for a reference like:

   <f:view locale="#{bean.xxx}">

should be like:

   public String/Locale getXxx()


And the method signature should be no problem as it is called succesfully. (I tried the listener one too and the call worked but I did not succeed in changing the page language.)

Or did I miss something here?
[Message sent by forum member 'napu' (panu.korpela_at_sovelto.fi)]

http://forums.java.net/jive/thread.jspa?messageID=380719