Re: [Stripes-users] Problem with Internationalization of StripesResources

2009-11-18 Thread Evgeny Shepelyuk
Hello One more note. The tag takes info from REQUEST's locale, while fmt tags are affecting and taking locale info from RESPONSE's locale. So i think the issue should be raised in JIRA. -- Regards, Evgeny Shepelyuk --

Re: [Stripes-users] Problem with Internationalization of StripesResources

2009-11-18 Thread Evgeny Shepelyuk
Hello, With stripes:messages seems it's impossible at all. While rendering the tag takes locale from request.getLocale() that returns locale set by LocalePicker. And fmt:setLocale doesn't affect locale of request that is used for rendering tag. Either this is bug in implementation of stripes

Re: [Stripes-users] Problem with Internationalization of StripesResources

2009-11-18 Thread bluedogmilan
Hi Evgeny, your suggestion corrected the behaviour of : now it displays the strings in the language set by and can be modified on the fly in different parts of the page. Back to original problem, the doesnt care of the locale set by the fmt tag. Ive tried to google the problem and, going to th

Re: [Stripes-users] Problem with Internationalization of StripesResources

2009-11-17 Thread Evgeny Shepelyuk
Hello > Hi Evgeny and hi everyone reading, > i've tried all the day to find a workaround but it seems that the > fmt:setLocale is not a solution. > I ended my tests with this basic try that demonstrates that, given two > resources named MyResource_it.properties and MyResource.properties, you cant

Re: [Stripes-users] Problem with Internationalization of StripesResources

2009-11-17 Thread bluedogmilan
Hi Evgeny and hi everyone reading, i've tried all the day to find a workaround but it seems that the fmt:setLocale is not a solution. I ended my tests with this basic try that demonstrates that, given two resources named MyResource_it.properties and MyResource.properties, you cant switch on the fl

Re: [Stripes-users] Problem with Internationalization of StripesResources

2009-11-17 Thread Evgeny Shepelyuk
Hello, I haven't tried it by myself but maybe you can use JSTL fmt:setLocale tag in your JSP to set locale partially for part of page ? > > Thank you Evgeny for the quick response. > > I did as u told me and everything worked as expected. > Now I can build a > LocalizableMessage message = new L

Re: [Stripes-users] Problem with Internationalization of StripesResources

2009-11-17 Thread bluedogmilan
Thank you Evgeny for the quick response. I did as u told me and everything worked as expected. Now I can build a LocalizableMessage message = new LocalizableMessage("msg"); and see the correct string rendered in tag accordingly to the navigationLanguage associated to a User. I have now anothe

Re: [Stripes-users] Problem with Internationalization of StripesResources

2009-11-17 Thread Evgeny Shepelyuk
Hello, As i understood probabaly you need to implement own LocalePicker and then register it in your web.xml. This is sample code public class MyLocalePicker implements LocalePicker { public Locale pickLocale(HttpServletRequest request) { //here goes your code to detect locale based o

[Stripes-users] Problem with Internationalization of StripesResources

2009-11-17 Thread bluedogmilan
Hi everyone, its a noob question but something is getting me out of the correct path. I need to internationalize a page, the user will see an English or German phrase according to the language choosen by clicking a flag: he clicks a flag, my UserData bean fills its "choosenlocale" field with the