Locale management with Seam cartridge
-------------------------------------

         Key: EJB-90
         URL: http://jira.andromda.org/browse/EJB-90
     Project: EJB Cartridge
        Type: Improvement

 Environment: AndroMDA 3.3-SNAPSHOT + Seam cartridge
    Reporter: Olivier THIERRY
 Assigned to: Vance Karimi 
    Priority: Minor


In the Seam 2.0 documentation you can read the following lines about the way 
locale is set in a Seam session :

Seam just delegates to JSF to determine the active locale:
• If there is a locale associated with the HTTP request (the browser locale), 
and that locale is in the list of
supported locales from faces-config.xml, use that locale for the rest of the 
session.
• Otherwise, if a default locale was specified in the faces-config.xml, use 
that locale for the rest of the session.
• Otherwise, use the default locale of the server.

So to add internationalization support to a Seam application, you have to add 
default and supported locales in the faces-config.xml file. Something like that 
:

<locale-config>
         <default-locale>en</default-locale>
         <supported-locale>fr</supported-locale>
         <supported-locale>es</supported-locale>
</locale-config>

Unfortunately, this is not possible with Seam cartridge as it is now. There are 
no properties to do this in Seam cartridge namespace and there is no 
merge-point in the face-config.xml.vsl template. So the only way to do it is to 
add it manually in the cartridge and rebuild it. I suggest one could add 
"default-locale" and "supported-locales" (a comma separated list of locales) 
properties in Seam cartridge namespace.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Reply via email to