[ http://mc4j.org/jira/browse/STS-461?page=comments#action_11016 ] 
            
Ben Gunter commented on STS-461:
--------------------------------

Since binding does not occur until all validation errors (except those that 
occur during binding) are cleared it is not possible to repopulate a form with 
the values in the ActionBean when there are validation errors. It seems only 
logical to me that when a user submits a page that results in validation errors 
they should be presented with the page again just as they submitted it and 
given the opportunity to correct what they entered instead of having to start 
over. I understand that some people may disagree, and for those people there is 
the BeanFirstPopulationStrategy.

In any case, it would be bad form to change that now as it would cause grief 
for the majority of Stripes users at this point.

> Wrong default for the Population strategy?
> ------------------------------------------
>
>                 Key: STS-461
>                 URL: http://mc4j.org/jira/browse/STS-461
>             Project: Stripes
>          Issue Type: Bug
>          Components: ActionBean Dispatching
>    Affects Versions: Release 1.4.3
>         Environment: Windows/Linux, Tomcat 5.5.28
>            Reporter: Phil Sladen
>         Assigned To: Tim Fennell
>            Priority: Minor
>
> I had an event handler that updates a few action properties from the 
> submission, but then returns a validation failure. The form is redisplayed, 
> but with the property values that were submitted to the action, rather than 
> with the updated values in the action. Shouldn't the default population 
> strategy be to take values from the actionbean before the page parameters. 
> The current default appears to assume that pages are designed to submit to 
> themselves when they should be submitting to an action.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to