Re: [Stripes-users] Cleaning out the value after validation

2010-08-20 Thread Aaron Stromas
Hello, Just wanted to inform that this works fine. I'm using it on a handful of actions. There is one action that is misbehaving but I didn't have time to really dig in. Thanks again for coming up with it. -a On 12 August 2010 23:47, Iwao AVE! wrote: > I don't think you are misunderstanding. >

Re: [Stripes-users] Cleaning out the value after validation

2010-08-13 Thread Aaron Stromas
That is encouraging to hear. Thank you. -a On 13 August 2010 06:54, Marcus Kraßmann wrote: > Hi, > > just for your information: Today, we have successfully introduced this "per > action bean strategy" in our web application. We just changed two places so > that our default strategy is BeanFirst

Re: [Stripes-users] Cleaning out the value after validation

2010-08-13 Thread Marcus Kraßmann
Hi, just for your information: Today, we have successfully introduced this "per action bean strategy" in our web application. We just changed two places so that our default strategy is BeanFirst instead of RequestFirst (aka. "Default"). Anything else is exactly as described in the wiki. Hope y

Re: [Stripes-users] Cleaning out the value after validation

2010-08-12 Thread Iwao AVE!
I don't think you are misunderstanding. There are two possibilities I can think of. 1. the custom population strategy is not detected by Stripes. 2. you don't annotate the right action bean(s). Both sounds unlikely, I know, but further investigation would require detailed debugging and be diffic

Re: [Stripes-users] Cleaning out the value after validation

2010-08-12 Thread Aaron Stromas
I have a text field to type in the CAPTCHA text. When the text is entered incorrectly, I redisplay the form having cleared out the field in the event handler. When configured globally, the field is redisplayed empty. I was hoping for the same using this extension. Am I misunderstanding something?

Re: [Stripes-users] Cleaning out the value after validation

2010-08-12 Thread Iwao AVE!
I think that's all. Just wondering does the behavior change as you expect if you configure Stripes to use BeanFirstPopulationStrategy globally ? // Iwao Aaron Stromas wrote on 10/08/13 11:22: > On 12 August 2010 21:43, Iwao AVE! > wrote: > > Which do you mean by '

Re: [Stripes-users] Cleaning out the value after validation

2010-08-12 Thread Aaron Stromas
On 12 August 2010 21:43, Iwao AVE! wrote: > Which do you mean by 'does not work' ? > > a) the custom population strategy does not change the population > strategy for the action bean. > This. I annotated class with @CustomPopulationStrategy(BeanFirstPopulationStrategy.class) yet I observe the d

Re: [Stripes-users] Cleaning out the value after validation

2010-08-12 Thread Iwao AVE!
Which do you mean by 'does not work' ? a) the custom population strategy does not change the population strategy for the action bean. or b) changing population strategy does not do what you want. // Iwao Aaron Stromas wrote on 10/08/13 5:04: > I only now got round to try it out and it does not

Re: [Stripes-users] Cleaning out the value after validation

2010-08-12 Thread Aaron Stromas
I only now got round to try it out and it does not seem to work for me :-( -a On 16 July 2010 12:59, Iwao AVE! wrote: > Glad it helps :-) > Here's the new wiki entry as suggested: > > > http://www.stripesframework.org/display/stripes/Overriding+PopulationStrategy+per+ActionBean > > Corrections

Re: [Stripes-users] Cleaning out the value after validation

2010-07-16 Thread Iwao AVE!
Glad it helps :-) Here's the new wiki entry as suggested: http://www.stripesframework.org/display/stripes/Overriding+PopulationStrategy+per+ActionBean Corrections and/or improvements appreciated. // Iwao on 10/07/14 22:54 Aaron Stromas said the following: > This is great, Iwan! Thank you much.

Re: [Stripes-users] Cleaning out the value after validation

2010-07-14 Thread Aaron Stromas
This is great, Iwan! Thank you much. I would like to suggest adding it to the Stripes Wiki -a On 14 July 2010 03:51, Iwao AVE! wrote: > Hi Aaron, > > Aaron Stromas wrote on 10/07/14 3:44: > > Is there no way of avoiding the global change, > > to restricting its scope? > > The following post s

Re: [Stripes-users] Cleaning out the value after validation

2010-07-14 Thread Iwao AVE!
Hi Aaron, Aaron Stromas wrote on 10/07/14 3:44: > Is there no way of avoiding the global change, > to restricting its scope? The following post shows how to change the population strategy per action bean. http://article.gmane.org/gmane.comp.java.stripes.user/5316 ...and here's the one I have

Re: [Stripes-users] Cleaning out the value after validation

2010-07-13 Thread Aaron Stromas
I, actually, will be trying out changing the default strategy. The application is still small enough that even if something breaks, it can be mended without too much pain. Thanks. -a On 13 July 2010 16:08, Nikolaos Giannopoulos wrote: > Aaron, > > Freddy Daoud mentions in his book on pg 183 why

Re: [Stripes-users] Cleaning out the value after validation

2010-07-13 Thread Nikolaos Giannopoulos
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

Re: [Stripes-users] Cleaning out the value after validation

2010-07-13 Thread Aaron Stromas
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 wrote: > Ah, I hadn't thought of that. Indeed, having to change code would be > disastrous ;) > > Seriously, though: the change is global, so if yo

Re: [Stripes-users] Cleaning out the value after validation

2010-07-13 Thread Levi Hoogenberg
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 wel

Re: [Stripes-users] Cleaning out the value after validation

2010-07-13 Thread Aaron Stromas
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 wrote: > Yes, that's correct. Yet another reason to be discip

Re: [Stripes-users] Cleaning out the value after validation

2010-07-13 Thread Levi Hoogenberg
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 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 strat

Re: [Stripes-users] Cleaning out the value after validation

2010-07-13 Thread Aaron Stromas
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, Lev

Re: [Stripes-users] Cleaning out the value after validation

2010-07-13 Thread Levi Hoogenberg
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 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

[Stripes-users] Cleaning out the value after validation

2010-07-13 Thread Aaron Stromas
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. H