Hi

The default implementation pulls the used locale from the servlet request (meaning the requested locale by the browser).
If you want to override that, we do it exactly as you do it.

Matt

Gatos wrote:
Hello,

How to set a default locale for the application?


It works for me, but I guess it should be more common:
@Override
 public Session newSession(Request request, Response response)
 {
  Session session = super.newSession(request, response);
  session.setLocale(new Locale("et"));
  return session;
 }



Thank you


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to