File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes Change JForum Locale in real time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Change JForum Locale in real time" Watch "Change JForum Locale in real time" New topic
Author

Change JForum Locale in real time

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi, i have integrated JForum in my webapp, I create and edit users out of JForum, and all found ok, but i want know how i can change Locale value in real time, to user do click in JForum link and JForum appear in the previus select language. Now i change lenguage value in DB, and if user change it, and restart web browser (restart session web browser) JForum appear in new language. but i want can change the Locale value IN SAME SESSION.

Somebody can help me?, thanks!
[originally posted on jforum.net by MiLLeN]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I see this post http://www.coderanch.com/t/578473

THen, i add to SessionFacade my personal method:


And i try to get my set Language in my webapp Spring context in services method of JForum class.



But say me one NullPointerException error, Why?, How i can fix?. is why my webapp Spring context is not possible to access from JForum?, if is possible... how?

Thanks!
[originally posted on jforum.net by MiLLeN]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Change JForum Locale in real time
 
Similar Threads
Best practice for i18n/locale selection?
Unbanning - Is this a bug or not?
Problem changing languages struts 1.2.9
Override request headers
i18n