Aaron,
Freddy Daoud mentions in his book on pg 183 why
BeanFirstPopulationStrategy isn't the default...
i.e. even though it is often the preferred strategy in that it uses
values set in the action bean first and if that fails uses the request
parameters... it wasn't introduced until 1.4 and 1.5.x still has
DefaultPopulationStrategy as default due to unknown / possible backward
compatibility issues.
I wonder though, if you haven't come across this issue before then
either you haven't discovered this unwanted behaviour in your other
action beans that might fail initial validation or you don't have other
action beans that fail initial validation... either way this can only
help your code... unless you are relying on the
DefaultPopulationStrategy for some reason... .
Lastly, I understand that you might be worried that something might
break if you have built your App implicitly leveraging
DefaultPopulationStrategy but it would appear that any re-testing would
not be for naught as one day it "should" be the default... .
I would have expected that a major release like 1.5 would have changed
this... hopefully 1.6 will... ;-)
--Nikolaos
Aaron Stromas wrote:
I wanted to be sure I'm not busting out of framework if there is a way
not having to do so. Thanks again,
-a
On 13 July 2010 15:03, Levi Hoogenberg <levihoogenb...@gmail.com
<mailto:levihoogenb...@gmail.com>> wrote:
Ah, I hadn't thought of that. Indeed, having to change code would
be disastrous ;)
Seriously, though: the change is global, so if you really, really
want to avoid changing the population strategy you'll have to use
a workaround. One thing I can think of (and there probably are
other ways as well) is not to use a stripes:text (or text-field?
it's been a while) and handle the population yourself (a simple EL
expression could do the trick).
Op 13 jul. 2010 om 20:44 heeft Aaron Stromas <passog...@gmail.com
<mailto:passog...@gmail.com>> het volgende geschreven:
Testing is not the worrying bit. What if changing the strategy
indeed affects something else? It would have to be recoded. Is
there no way of avoiding the global change, to restricting its scope?
On 13 July 2010 14:36, Levi Hoogenberg <levihoogenb...@gmail.com
<mailto:levihoogenb...@gmail.com>> wrote:
Yes, that's correct. Yet another reason to be disciplined
when it comes to automated testing :)
Op 13 jul. 2010 om 20:23 heeft Aaron Stromas
<passog...@gmail.com <mailto:passog...@gmail.com>> het
volgende geschreven:
Thanks for the suggestion. I wasn't aware of if before. From
what I was able to gather, if I do change the population
strategy, it's a global change for the whole application. It
might affect something else, if I do so and I'll need to do
regression testing, correct?
-a
On 13 July 2010 14:00, Levi Hoogenberg
<levihoogenb...@gmail.com <mailto:levihoogenb...@gmail.com>>
wrote:
You can change the population strategy to /bean first/;
then, nulling out the value will work.
On Tue, Jul 13, 2010 at 7:55 PM, Aaron Stromas
<passog...@gmail.com <mailto:passog...@gmail.com>> wrote:
Greetings,
In Stripes once the validation of the value in the
text field fails, the value is preserved in the
field. Normally it is a good thing, but I need that
value cleared out. I tried to set the value of the
property to null but it did not help, the value got
repopulated with the old value. How can I force the
Stripes to "forget" it? TIA,
--
Aaron Stromas
Mobile: +1 703 203 9169
------------------------------------------------------------------------------
This SF.net <http://SF.net> email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first <http://sprint.com/first> --
http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
<mailto:Stripes-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
This SF.net <http://SF.net> email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first <http://sprint.com/first> --
http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
<mailto:Stripes-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/stripes-users
--
Aaron Stromas
Mobile: +1 703 203 9169
------------------------------------------------------------------------------
This SF.net <http://SF.net> email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first <http://sprint.com/first> --
http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
<mailto:Stripes-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
This SF.net <http://SF.net> email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first <http://sprint.com/first> --
http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
<mailto:Stripes-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/stripes-users
--
Aaron Stromas
Mobile: +1 703 203 9169
------------------------------------------------------------------------------
This SF.net <http://SF.net> email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first <http://sprint.com/first> --
http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
<mailto:Stripes-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first <http://sprint.com/first> --
http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
<mailto:Stripes-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/stripes-users
--
Aaron Stromas
Mobile: +1 703 203 9169
------------------------------------------------------------------------
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users
--
Nikolaos Giannopoulos
Director, BrightMinds Software Inc.
e. nikol...@brightminds.org
w. www.brightminds.org
t. 1.613.822.1700
c. 1.613.797.0036
f. 1.613.822.1915
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users