[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

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] stripes:select doesn't update value correctly

2009-11-17 Thread Sven Kiesewetter
Hi, I've got a problem with a stripes:select tag. I'm using it to show a customer a list of items in his shopping cart. The amount of each item can be selected via a dropdown. The code looks like this: ... other stuff ... ${statusSelect.count} ... more other stuff ... Now, my problem

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, 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] stripes:select doesn't update value correctly

2009-11-17 Thread Poitras Christian
Is it possible that your population strategy is set to net.sourceforge.stripes.tag.DefaultPopulationStrategy (default value)? If so, I suggest you use net.sourceforge.stripes.tag.BeanFirstPopulationStrategy. You can add this to your web.xml StripesFilter configuration: PopulationStrategy.Clas

Re: [Stripes-users] stripes:select doesn't update value correctly

2009-11-17 Thread Sven Kiesewetter
Thank you, that was exactly the information I needed! Sven On Tue, Nov 17, 2009 at 3:01 PM, Poitras Christian < christian.poit...@ircm.qc.ca> wrote: > Is it possible that your population strategy is set to > net.sourceforge.stripes.tag.DefaultPopulationStrategy > (default value)? > ** > If so,

Re: [Stripes-users] stripes:select doesn't update value correctly

2009-11-17 Thread Freddy Daoud
By the way, BeanFirstPopulationStrategy will be the default in Stripes 1.6 so you won't need any configuration. Cheers, Freddy http://www.stripesbook.com Sven Kiesewetter http://www.stripesframework.org/display/stripes/Configuration+Reference - - - - Christian - - - From: Sven Kiesewetter

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

[Stripes-users] GlobalError & tag

2009-11-17 Thread Potgieter, Derick D
Hi All, I need some help on using the addGlobalError(new SimpleError("error")) function outside of a validation method or i`m just missing the point. When I use the following code: @ValidationMethod(on = {"createIntro"}) public void validateAccess(ValidationErrors errors) throws Exceptio

Re: [Stripes-users] GlobalError & tag

2009-11-17 Thread Ben Gunter
In the former case, which works, you're calling getContext(). getValidationErrors().addGlobalError(..). In the latter case, which does not work, you're calling getContext().getMessages().add(..). Messages are displayed by and errors are displayed by so it's not surprising that the error does not

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

[Stripes-users] GlobalError & tag

2009-11-17 Thread Potgieter, Derick D
> Hi All, > > I need some help on using the addGlobalError(new SimpleError("error")) > function outside of a validation method or i`m just missing the point. > > When I use the following code: > > @ValidationMethod(on = {"createIntro"}) > public void validateAccess(ValidationErrors erro

[Stripes-users] http://www.stripesframework.org/

2009-11-17 Thread Rusty Wright
The web site seems to be down; I'm getting the ISP's web page that says "This domain is under construction." -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report desi