Revision: 1085
          http://stripes.svn.sourceforge.net/stripes/?rev=1085&view=rev
Author:   fdaoud
Date:     2009-03-02 14:00:41 +0000 (Mon, 02 Mar 2009)

Log Message:
-----------
BeanFirstPopulationStrategy becomes the default in Stripes 1.6

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/config/DefaultConfiguration.java
    trunk/upgrading.txt

Modified: 
trunk/stripes/src/net/sourceforge/stripes/config/DefaultConfiguration.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/config/DefaultConfiguration.java  
2009-03-01 16:21:44 UTC (rev 1084)
+++ trunk/stripes/src/net/sourceforge/stripes/config/DefaultConfiguration.java  
2009-03-02 14:00:41 UTC (rev 1085)
@@ -48,7 +48,7 @@
 import net.sourceforge.stripes.localization.DefaultLocalizationBundleFactory;
 import net.sourceforge.stripes.localization.LocalePicker;
 import net.sourceforge.stripes.localization.LocalizationBundleFactory;
-import net.sourceforge.stripes.tag.DefaultPopulationStrategy;
+import net.sourceforge.stripes.tag.BeanFirstPopulationStrategy;
 import net.sourceforge.stripes.tag.DefaultTagErrorRendererFactory;
 import net.sourceforge.stripes.tag.PopulationStrategy;
 import net.sourceforge.stripes.tag.TagErrorRendererFactory;
@@ -174,7 +174,7 @@
 
             this.populationStrategy = initPopulationStrategy();
             if (this.populationStrategy == null) {
-                this.populationStrategy = new DefaultPopulationStrategy();
+                this.populationStrategy = new BeanFirstPopulationStrategy();
                 this.populationStrategy.init(this);
             }
 
@@ -366,7 +366,8 @@
     /**
      * Returns an instance of a PopulationsStrategy.  Unless a subclass has 
picked another
      * implementation, will return an instance of
-     * {...@link net.sourceforge.stripes.tag.DefaultPopulationStrategy}.
+     * {...@link net.sourceforge.stripes.tag.BeanFirstPopulationStrategy}.
+     * @since Stripes 1.6
      */
     public PopulationStrategy getPopulationStrategy() { return 
this.populationStrategy; }
 

Modified: trunk/upgrading.txt
===================================================================
--- trunk/upgrading.txt 2009-03-01 16:21:44 UTC (rev 1084)
+++ trunk/upgrading.txt 2009-03-02 14:00:41 UTC (rev 1085)
@@ -151,3 +151,18 @@
       -> ActionResolver (and implementations thereof)
       -> BootstrapPropertyResolver
       -> UrlBuilder
+
+   -> The default PopulationStrategy is now BeanFirstPopulationStrategy 
instead of
+      DefaultPopulationStrategy. This may cause backward compatibility issues 
if
+      you were relying on the behavior of DefaultPopulationStrategy. You can 
revert
+      back to this behavior by configuring the population strategy in web.xml:
+      
+      <init-param>
+        <param-name>PopulationStrategy.Class</param-name>
+        
<param-value>net.sourceforge.stripes.tag.DefaultPopulationStrategy</param-value>
+      </init-param>
+      
+      On the other hand, if you had the above configuration present in web.xml 
but with
+      BeanFirstPopulationStrategy, it is no longer required since it has 
become the
+      default. Leaving it there would be redundant, but would cause no harm.
+


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

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to