Re: Some i18n issues

2005-09-15 Thread Ivan Rodriguez
I think the *cleanest* way is to format data at presentation layer (jsp). Last example from Laurie is quite correct and clean, if it is too long code let get a try with JSTL and Struts-EL taglibs () Michael Ewers escribió: Hi, To avoid misunderstandings: My goal is to have a DynaActionForm

Re: Some i18n issues

2005-09-15 Thread Michael Ewers
Hi, To avoid misunderstandings: My goal is to have a DynaActionForm definition's "initial"-value translated in a locale specific manner so that e.g. the -tag displays a initial="1,001.00" as a "1.001,00" in German locale Browsers. After reading some struts-code I think that the best (meaning

Re: Some i18n issues

2005-09-14 Thread Niall Pemberton
From: "Laurie Harper" <[EMAIL PROTECTED]> > Michael Ewers wrote: > > Can anyone see a reason why the html:text implementation in struts-html.tld > > doesn't support a formatKey attribute? > > I guess because there are already ways to format values which can be > composed with so it doesn't *need*

Re: Some i18n issues

2005-09-14 Thread Laurie Harper
Michael Ewers wrote: Can anyone see a reason why the html:text implementation in struts-html.tld doesn't support a formatKey attribute? I guess because there are already ways to format values which can be composed with so it doesn't *need* to support it. If there's some reason that approach

Re: Some i18n issues

2005-09-14 Thread Michael Ewers
Can anyone see a reason why the html:text implementation in struts-html.tld doesn't support a formatKey attribute? To whom can I send patches that I write? Thanks, Michael. > That doesn't allow the use of the Struts HTML tags though, since you > can't use a tag in a tag attribute... This will w

Re: Some i18n issues

2005-09-14 Thread Laurie Harper
That doesn't allow the use of the Struts HTML tags though, since you can't use a tag in a tag attribute... This will work, though: A little cumbersome, and not the only way. You can also do it without a nested if you don't mind creating a scripting variable. L. Ivan

Re: Some i18n issues

2005-09-14 Thread Ivan Rodriguez
"> Michael Ewers escribió: The problem is that the tag doesn't have a formatKey-attribute and I want the initial value to be displayed in a text-field, not as a pure html-output. In other words: I need struts to make a "" out of a "...initial="1000" with German locale set in browser. Thans,

Re: Some i18n issues

2005-09-14 Thread Michael Ewers
--- Ursprüngliche Nachricht --- > Von: Laurie Harper <[EMAIL PROTECTED]> > An: user@struts.apache.org > Betreff: Re: Some i18n issues > Datum: Wed, 14 Sep 2005 11:20:17 -0400 > > And for the validator issue, you can localize your validation rules by > defining a seperate set f

Re: Some i18n issues

2005-09-14 Thread Michael Ewers
The problem is that the tag doesn't have a formatKey-attribute and I want the initial value to be displayed in a text-field, not as a pure html-output. In other words: I need struts to make a "" out of a "...initial="1000" with German locale set in browser. Thans, Michael. > You have to use an i

Re: Some i18n issues

2005-09-14 Thread Laurie Harper
And for the validator issue, you can localize your validation rules by defining a seperate set for each locale. I don't know if there's a way to make the standard, included validations locale-aware but you can define alternates where necessary if not. Also, Struts 1.3 will introduce an 'extends

Re: Some i18n issues

2005-09-14 Thread Ivan Rodriguez
You have to use an initial value of "1000". Then where you print this initial value, at your jsp, use formatting options: formatKey="format.number" /> format.number is an entry in you MessageResources.properties For german MessageResources_de.properties: format.number=#0.

Some i18n issues

2005-09-14 Thread Michael Ewers
Hi, I'm new to this group so first of all I'm pleased to have the opportunity to ask questions here. My question(s): 1) I'm trying to write an application that supports i18n with Struts. I use DynaActionForm for my forms, so I defined them with initial values, e.g.: I have Germa