Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » [Neon] NlsUtility.getDefaultLocale() gone
[Neon] NlsUtility.getDefaultLocale() gone [message #1725393] Thu, 03 March 2016 09:10 Go to next message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 573
Registered: October 2012
Location: Bern, Switzerland
Senior Member
In some of our classes in the shared project, we need to evaluate the default locale (and the code needs to correctly work both on server side as well as client side).

With Mars we used NlsUtility.getDefaultLocale() but this seems to have gone in Neon. What is the recommended way to find out which locale is being used in the current session both server and client side (and with client side we would probably need the "frontend client", i.e. browser locale)?

We found NlsLocale.CURRENT but its javadoc is not conclusive. Would this be the way to go?
Re: [Neon] NlsUtility.getDefaultLocale() gone [message #1725406 is a reply to message #1725393] Thu, 03 March 2016 10:21 Go to previous messageGo to next message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 573
Registered: October 2012
Location: Bern, Switzerland
Senior Member
The same question applies to AbstractServerSession.getLocale() which also seems to have gone.
Re: [Neon] NlsUtility.getDefaultLocale() gone [message #1726498 is a reply to message #1725406] Mon, 14 March 2016 10:13 Go to previous message
Judith Gull is currently offline Judith GullFriend
Messages: 75
Registered: February 2010
Member
Yes, please use NlsLocale.CURRENT instead of NlsUtility.getDefaultLocale() or AbstractServerSession.getLocale().
Previous Topic:[neon] Exception when setting scout.server.url from System-Property instead of config.properties
Next Topic:[neon] ScurityUtility, problem when deploying on IBM Websphere
Goto Forum:
  


Current Time: Thu Apr 25 13:03:09 GMT 2024

Powered by FUDForum. Page generated in 0.03114 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top