I posted a similar question long time ago in this list. -> Nobody cares.

So I developed my own custom tag to do it. What I did is populating the
collection with locale keys in the label of the LabelValueBean and then get
the exact message from the property file. If you want it, I can send you a
copy of it.

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 01, 2003 5:24 AM
Subject: Wanted best practice for i18n'd optionsCollection


> Hi all,
>
> I've successfully used the applications.properties method of isolating my
> messages, prompts etc. so I can use different locales in my struts pages.
I
> have some static select fields and I'm wondering what would be the best
way
> to use something like the optionsCollection to work with different
locales.
>
> As near as I can tell I might:
>
> - Create a custom tag that builds the collection for a particular locale
and
> sticks it into the Application Context if it is not already there.  Then
put
> a reference in my page context for the "generalized" collection property
to
> reference.
> - Then use OptionsCollection to display the collection of select options.
>
> I've not been able to figure out the best way to do this since there
doesn't
> seem to be locale information for the optionsCollection tag.
>
> Any suggestions would be gratefully appreciated!
>
> Thanks in advance,
>
> Bob
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to