[jboss-cvs] jboss-seam/src/main/org/jboss/seam/international ...

Gavin King gavin.king at jboss.com
Sun Jul 8 07:23:08 EDT 2007


  User: gavin   
  Date: 07/07/08 07:23:08

  Modified:    src/main/org/jboss/seam/international   Messages.java
                        ResourceBundle.java
  Log:
  don't blow up when getting messages outside contexts
  
  Revision  Changes    Path
  1.5       +3 -1      jboss-seam/src/main/org/jboss/seam/international/Messages.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Messages.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/international/Messages.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- Messages.java	5 Jul 2007 18:27:12 -0000	1.4
  +++ Messages.java	8 Jul 2007 11:23:08 -0000	1.5
  @@ -20,7 +20,7 @@
   import org.jboss.seam.core.Interpolator;
   
   /**
  - * Support for an application-global resource bundle
  + * Access to interpolated messages via a Map
    * 
    * @author Gavin King
    */
  @@ -30,6 +30,8 @@
   @Install(precedence=BUILT_IN)
   public class Messages implements Serializable 
   {
  +   //TODO: now we have ELResolver, it doesn't *have* to be a Map...
  +   
      private static final long serialVersionUID = 1292464253307553295L;
      
      private transient Map<String, String> messages;
  
  
  
  1.4       +1 -1      jboss-seam/src/main/org/jboss/seam/international/ResourceBundle.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ResourceBundle.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/international/ResourceBundle.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- ResourceBundle.java	20 Jun 2007 17:45:56 -0000	1.3
  +++ ResourceBundle.java	8 Jul 2007 11:23:08 -0000	1.4
  @@ -9,7 +9,7 @@
   import org.jboss.seam.annotations.intercept.BypassInterceptors;
   
   /**
  - * Support for an application-global resource bundle
  + * A resource bundle aware of the selected locale
    * 
    * @author Gavin King
    */
  
  
  



More information about the jboss-cvs-commits mailing list