[seam-commits] Seam SVN: r11971 - in branches/enterprise/JBPAPP_5_0: src/main/org/jboss/seam/international and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Jan 18 11:03:44 EST 2010


Author: manaRH
Date: 2010-01-18 11:03:44 -0500 (Mon, 18 Jan 2010)
New Revision: 11971

Modified:
   branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/I18n.xml
   branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/international/LocaleConfig.java
Log:
JBPAPP-3292

Modified: branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/I18n.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/I18n.xml	2010-01-18 15:43:02 UTC (rev 11970)
+++ branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/I18n.xml	2010-01-18 16:03:44 UTC (rev 11971)
@@ -17,6 +17,10 @@
          A JEE application consists of many components and all of them must be 
          configured properly for your application to be localized.
       </para>
+      
+      <note>
+      	<para> Note that all i18n features in Seam work only in JSF context.</para>      
+      </note>      
 
       <para>
          Starting at the bottom, the first step is to ensure that your database 

Modified: branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/international/LocaleConfig.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/international/LocaleConfig.java	2010-01-18 15:43:02 UTC (rev 11970)
+++ branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/international/LocaleConfig.java	2010-01-18 16:03:44 UTC (rev 11971)
@@ -20,6 +20,8 @@
 import org.jboss.seam.annotations.Scope;
 import org.jboss.seam.annotations.Startup;
 import org.jboss.seam.annotations.intercept.BypassInterceptors;
+import org.jboss.seam.log.LogProvider;
+import org.jboss.seam.log.Logging;
 import org.jboss.seam.util.Strings;
 
 /**
@@ -48,6 +50,8 @@
    private String defaultLocale;
 
    private List<String> supportedLocales;
+   
+   private static final LogProvider log = Logging.getLogProvider(LocaleConfig.class);
 
    @Create
    public void initLocaleConfig()
@@ -138,6 +142,7 @@
       }
       catch (IllegalStateException e)
       {
+         log.warn("JSF is not properly initialized, see http://jira.jboss.org/jira/browse/JBSEAM-4401");
          // just in case, for units and the like
          // if we can't do it, it just wan't meant to be
          return null;



More information about the seam-commits mailing list