You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/09/21 03:49:50 UTC

[jira] Commented: (VALIDATOR-237) Abstract Validation framework to Actions framework.

    [ https://issues.apache.org/jira/browse/VALIDATOR-237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529304 ] 

Paul Benedict commented on VALIDATOR-237:
-----------------------------------------

It would be nice to see a live example with source code.

> Abstract Validation framework to Actions framework.
> ---------------------------------------------------
>
>                 Key: VALIDATOR-237
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-237
>             Project: Commons Validator
>          Issue Type: New Feature
>          Components: Framework
>    Affects Versions: 1.4
>         Environment: All
>            Reporter: Bhupesh Naik
>            Priority: Minor
>
> Apache Commons validator can be ABSTRACTED to a common framework called ACTIONS framework.
>  
> The Actions framework will act in similar manner as validation framework but will be independent of the way in which actions are execute on the value.
>  
> Abstraction points.
> 1.Validation can be treated as any action
> 2.The value to be validated is treated as source value
> 3.The return value true/false can be treated as a target value
> 4.Source Value ---pass to--- > list of actions to be executed ----results in---> Target Value
>  
> We have already done this in our enterprise product, we use apache validation framework even for transforming values in our custom ETL framework.
>  
> Once the apache validator is abstracted as actions framework one can use the same to not only validate the source value but to transform the value or even in describing and modifying styles of controls in UI and much more. The advantage here is we use the same digester , loading of elements, extending forms and stuff, this code remains common.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.