[ http://mc4j.org/jira/browse/STS-76?page=all ]
Tim Fennell updated STS-76:
---------------------------
Comment: was deleted
> Simple Way to Apply Business Validation to a Field
> --------------------------------------------------
>
> Key: STS-76
> URL: http://mc4j.org/jira/browse/STS-76
> Project: Stripes
> Issue Type: Improvement
> Components: Validation
> Affects Versions: Release 1.0.1
> Reporter: Jordan Reed
> Assigned To: Tim Fennell
> Priority: Minor
> Fix For: Release 1.3
>
>
> Request for a simple way to apply some javacode for business validation to
> any unique field in the action bean.
> - Required/Structural Validation is handled through the validation annotations
> To do business validation there are two non-optimal choices right now:
> 1) Hijack type conversion to do business validation
> 2) Use the Validatable interface. But this requires that all
> annotation-driven validation passes to be called
> Example use case:
> Assume there is a funds transfer form where a user must enter a zip code and
> then the amount of money to transfer.
> Zip code has required followed by a regex validation.
> Amount will have required and type conversion to a number. Then it needs
> validation where it queries the DB to get back the total available funds and
> gives the user an error if it is too high.
> If the user fails to enter the zip code, this should not block validation of
> the amount from checking if the funds are there.
--
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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development