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
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
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
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
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
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
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,
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
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
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
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
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
> 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
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
14 matches
Mail list logo