Hi Aaron, Thank you for the pointer. Will try it. regards, John
> Message: 5 > Date: Sat, 03 Jan 2009 08:38:55 -0700 > From: Aaron Porter <[email protected]> > Subject: Re: [Stripes-users] Values not being populated when using > forward resolution > To: Stripes Users List <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > 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 > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > > ------------------------------------------------------------------------------ > > > ------------------------------ > > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > > > End of Stripes-users Digest, Vol 32, Issue 2 > ******************************************** >
------------------------------------------------------------------------------
_______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
