Revision: 1117
          http://stripes.svn.sourceforge.net/stripes/?rev=1117&view=rev
Author:   bengunter
Date:     2009-03-12 01:16:03 +0000 (Thu, 12 Mar 2009)

Log Message:
-----------
For STS-668, it makes more sense to log the validation errors using the default 
locale instead of the locale selected by the request.

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/controller/DispatcherHelper.java

Modified: 
trunk/stripes/src/net/sourceforge/stripes/controller/DispatcherHelper.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/controller/DispatcherHelper.java  
2009-03-11 20:30:57 UTC (rev 1116)
+++ trunk/stripes/src/net/sourceforge/stripes/controller/DispatcherHelper.java  
2009-03-12 01:16:03 UTC (rev 1117)
@@ -507,7 +507,6 @@
 
     /** Log validation errors at DEBUG to help during development. */
     public static final void logValidationErrors(ActionBeanContext context) {
-        Locale locale = context.getRequest().getLocale();
         StringBuilder buf = new StringBuilder("The following validation errors 
need to be fixed:");
 
         for (List<ValidationError> list : 
context.getValidationErrors().values()) {
@@ -518,7 +517,7 @@
 
                 String message;
                 try {
-                    message = error.getMessage(locale);
+                    message = error.getMessage(Locale.getDefault());
                 }
                 catch (MissingResourceException e) {
                     message = "(missing resource)";


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to