on 05-13-2010 9:16 AM
Hi ,
I need to use Resourcebundles for a Java bean .
Can some one let me know how to access the user locale.
Right now I am using this piece of code
IUser user = UMFactory.getAuthenticator().getLoggedInUser();
Locale IbLocale = user.getLocale();
//get resource bundle
rb = ResourceBundle.getBundle("com.sap.cdev.tmro.lm.provider.requestdispatcher.station.tooltip", IbLocale);
Any better suggestions for accessing user locale are welcome.
Thanks.
Ismail.
Hi,
please try following code
IWDClientUser user = WDClientUser.getCurrentUser();
if (user != null) {
Locale locale = user.getSAPUser().getLocale();
}
Thanks, Mikhail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.