Which version of Stripes are you using? It sounds like you would like to use 
the BeanFirstPopulationStrategy (the default in recent versions), but are using 
the former default, the name of which I can't remember. That, or you're missing 
a hidden field.

Op 23 jun. 2010 om 14:42 heeft "David Hamilton" 
<dhamil...@hermitagelighting.com> het volgende geschreven:

> I’m having a small problem with form validation.
> 
> I have a link that takes a parameter to populate a list of values show to the 
> user as part of a form. Works fine. I need to make sure that the user has met 
> certainly selection criteria before submitting the list. The validation logic 
> works fine, but when re-submitting the form, the parameter to the URL that 
> says how to populate the list is not pushed back, so the user is shown an 
> error message and an empty list.
> 
>  
> 
> Example :
> 
>  
> 
> <a href=”/displaylist?aging=1”>Show Recent</a>
> 
> …Displays list..
> 
> In the action bean I’m doing something along the lines of
> 
> @ValidationMethod(on="verify")
> 
> public void validateSelected(ValidationErrors errors)
> 
>                 {…//validation code (that works)}
> 
>  
> 
> When validation fails however, the user is sent back to:
> 
> <a href=”/displaylist”>
> 
> Which displays nothing.
> 
> I could track what list to load as a session variable, but is there a 
> better/more standard approach to situations like this?
> 
>  
> 
> Thanks,
> 
>  
> 
>  
> 
>  
> 
> David Hamilton
> 
> Web Coordinator
> 
> (615) 843-3337
> 
> Hermitage Lighting Gallery
> 
> www.hermitagelighting.com
> 
>  
> 
> ********************************************
> 
> Please do not print this e-mail unless necessary
> 
> 
> Printing email can cost more than you think. Learn more on our website: 
> http://www.hermitagelighting.com/printing_email.php
> 
> The information transmitted in this email is intended solely for the 
> individual or entity to which it is addressed and may contain confidential 
> and/or privileged material.  Any review, retransmission, dissemination or 
> other use of or taking action in reliance upon this information by persons or 
> entities other than the intended recipient is prohibited. If you have 
> received this email in error please immediately notify us by reply email to 
> the sender.  You must destroy the original material and its contents from any 
> computer.
> 
> ********************************************
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate 
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
> lucky parental unit.  See the prize list and enter to win: 
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to