File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes WEbSphere Portal Server 6.0 - Locale Problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "WEbSphere Portal Server 6.0 - Locale Problem." Watch "WEbSphere Portal Server 6.0 - Locale Problem." New topic

WEbSphere Portal Server 6.0 - Locale Problem.

Kumar Anupam

Joined: Oct 30, 2004
Posts: 19
Hello Everbody.

We have below issue in our application .... The prompt suggation is really appreciated. Many thanks in advance.

We have a processor which does below taks
This processor
1) Gather parameter from request,
2) Check is Language Toggling Triggered (Language could be en_US / zh_TW)
If yes
3)Create Locale
4) by using LocaleAccessorController.setLocale(locale) setting up the locale.

The LocaleAccessorController can be used to set a special locale into the navigational state and thus into a URL.
Note: A locale retrieved from such a URL takes precedence over user preferred locales or locales defined on the user’s browser

We have another Processor to which the consequent request goes and retrives the Locale value from PortletRequest.
When locale is fetched from portLetRequest.getLocale(), it is always returning en_US as Locale.(Which is default Locale set from the application.)

Now question here is -

1) Is there any setting that we have to do in our Portal environment that make LocaleAccessorControllereffective. If yes, which is that?
2)Is their any other solution to this problem.

Thanks & Regards<br /> <br />Anupam
I agree. Here's the link:
subject: WEbSphere Portal Server 6.0 - Locale Problem.
It's not a secret anymore!