on 01-11-2006 9:29 AM
Hello All,
I'm running an application outside a portal
and need to add a button for changing the language.
can anyone tell me how to do it with webDynpro?
Thanks for your time, Adi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nibu and Valery,
I seem to have a conflict here:
Nibu wrote:
"The only way to achieve this functionality is to forcefully log-off the user & relogin with the selected locale. <b>But if used for an authenticated application, the user needs to enter his credentials again</b>. In case of anonymous users, this works perfectly"
Valery wrote:
"...WD application must be configured with property Authentication=true"
Now I have a problem:
it only works when setting "Authentication=true",
but as Nibu said: it asks for users credentials each time I change the language - since this app is meant for anonymous users they are not suppose to see a logon screen.
any suggestions?
Hi Adi,
The priority of language selection in a wd application is like:
1) Language of the logged in user
2) Language of the browser
3) Language of the application Locale
4) Language of the system
5) Language of the JVM
So, if the application is authenticated, the language associated with the user is given the first priority. If it is not authenticated, it will then check for the language of the browser. If that is also blank, then only the application's locale would be considered. So for language selection to work for an unauthenticated application, any language preferences for the browser should be cleared. Only then the application would load with the specified language.
Hope this helps,
Best Regards,
Nibu.
Hello again nibu,
Thanks a lot for your time!
as for your last reply:
The language preferences for the browser is clear.
my problem is that it is working only when the WD application is configured with property "Authentication"= true.
because of it - it asks for users credentials each time I change the language.
do you have an explanation for needing to change the property to true?
is it working for you without setting that property?
are you running your application through a portal using the anonymous user?
thanks again, Adi
Adi,
It seems to be either a bug or "feature" of WD.
WD has a notion of scopes (request, application, session etc) with associated scope's variables, and there are several scopes that reflects "session" -- there is session associated with authenticated user, and separate session per client application (several of them may have single per-user session).
So my guess is that for some reason WD associates locale with per-user session object, rather then with per-application session. Hence you may observe behavior you mentioned -- client application locale survives application exit, but is refreshed after user exit.
Valery Silaev
EPAM Systems
Hi,
u can change the locale of application by setting the application properties u can find document at the above link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.