This content has been marked as final. Show 7 replies
Store the preferred language in a cookie would be a fast solution for your requirement.
Hi Daniel Thanks for the reply,
if i store it in cookie, each time a u logs in to the portal, i have to ask user for his language preference right.
Actually we are integrating two Webcenter Applications into one single portal, Preference setting for language is in portal 2. when user sets his preference there, it should be reflected in both the portals, but the constraint here is language setting API i mentioned above stores user preference languge for each application,
i.e. when user selects language setting in portal 2, it persists, but the same is not reflected in portal 1.The obvious reason is MDS is different.
So my problem would be like , if user selects hiss language preference in portal 2 how to get the same prefernce in portal 1???
If I remember exists a way to load a MDSSession programmatically giving DB details.
You have to investigate a little MDS API and how to get a specific partition.
If I found some sample code I'll share to you.
Some code that can help you to know what MDS Classes to use for load a MDSSession:1 person found this helpful
PD: I'm still thinking that write/read cookie for language is the best/faster solution for a POC :).
Hi Daneil, Thanks that was helpful.
Cookie, you mean to set the user's locale in the cookie and use it across application from reading from it right?
Yes.1 person found this helpful
You have to write a cookie in the user storing the preferred language and read it in a ADF Phase Listener or filter to set the new Locale.
Thanks Daniel :-)
If i have to persists each user's preference?? is there anyother way to persist , other than using DB/File systems, i mean is there any api ??