Hi John,
Are you by any chance passing "result" into your ActionBean from your form? If so, you're probably seeing DefaultPopulationStrategy in action. DefaultPopulationStrategy causes Stripes to fill form field values from request parameters before checking the ActionBean even if the value attribute exists (although I'm not sure why the value attribute doesn't override.)

Try switching to BeanFirstPopulationStrategy. That will fill form fields with values from the ActionBean first.

Aaron

John Emmanuel wrote:
Hi,

I am using stripes 1.5.
Values from my actionbean are not being populated when I use a ForwardResolution (which I believe, is the default behavior). They are being populated correctly when
I use a RedirectResolution.flash().

To illustrate this using the quickstart example that ships with the distribution -

 $actionBean.result renders correctly on the page.
However if I use <stripes:text name="result" value="${actionBean.result}" /> the text field renders empty on ForwardResolution. If i change that to RedirectResolution.flash(this),
however, the value shows up.

Am I missing something here. Could somebody please direct to docs that explain this
behavior or be kind enough to explain whats happening?

I went through the lists and found many people seeing the same problem

http://thread.gmane.org/gmane.comp.java.stripes.user/618
http://thread.gmane.org/gmane.comp.java.stripes.user/4994
http://thread.gmane.org/gmane.comp.java.stripes.user/5341

regards,
John Emmanuel
------------------------------------------------------------------------

------------------------------------------------------------------------------
------------------------------------------------------------------------

_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to