You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/06/21 20:02:17 UTC

[jira] Created: (TAPESTRY-353) Validator API for easy re-validation of data

Validator API for easy re-validation of data
--------------------------------------------

         Key: TAPESTRY-353
         URL: http://issues.apache.org/jira/browse/TAPESTRY-353
     Project: Tapestry
        Type: Improvement
  Components: Framework  
    Versions: 4.0    
    Reporter: Howard M. Lewis Ship


It would be nice if there was a reasonable way to reuse a Validator to do business-logic level validation.  Perhaps add a method to the Validator interface:

public boolean isValid(Object object);

For background: I'm building a multi-page wizard that edits a common shared data (stored as an ASO).  At the end of the wizard, I need to check that all data from all pages is valid (the user is allowed to jump around in the wizard). I'm finding that I'm re-implementing a lot of validation checks in code, duplicating logic already associated with the fields (in the form of validator strings like "required,minLength=5").

What would be nice would be to have an easy way to re-run the validations, just to generate a boolean.  At the core of this is combining the current value for the component (possibly extracted right out of the business object) with the list of validators.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Updated: (TAPESTRY-353) Validator API for easy re-validation of data

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-353?page=all ]

Jesse Kuhnert updated TAPESTRY-353:
-----------------------------------

    Fix Version/s: 4.1.2

> Validator API for easy re-validation of data
> --------------------------------------------
>
>                 Key: TAPESTRY-353
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-353
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Howard M. Lewis Ship
>             Fix For: 4.1.2
>
>
> It would be nice if there was a reasonable way to reuse a Validator to do business-logic level validation.  Perhaps add a method to the Validator interface:
> public boolean isValid(Object object);
> For background: I'm building a multi-page wizard that edits a common shared data (stored as an ASO).  At the end of the wizard, I need to check that all data from all pages is valid (the user is allowed to jump around in the wizard). I'm finding that I'm re-implementing a lot of validation checks in code, duplicating logic already associated with the fields (in the form of validator strings like "required,minLength=5").
> What would be nice would be to have an easy way to re-run the validations, just to generate a boolean.  At the core of this is combining the current value for the component (possibly extracted right out of the business object) with the list of validators.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-353) Validator API for easy re-validation of data

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-353:
-----------------------------------

    Fix Version/s:     (was: 4.1.2)
                   4.2

> Validator API for easy re-validation of data
> --------------------------------------------
>
>                 Key: TAPESTRY-353
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-353
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Howard M. Lewis Ship
>             Fix For: 4.2
>
>
> It would be nice if there was a reasonable way to reuse a Validator to do business-logic level validation.  Perhaps add a method to the Validator interface:
> public boolean isValid(Object object);
> For background: I'm building a multi-page wizard that edits a common shared data (stored as an ASO).  At the end of the wizard, I need to check that all data from all pages is valid (the user is allowed to jump around in the wizard). I'm finding that I'm re-implementing a lot of validation checks in code, duplicating logic already associated with the fields (in the form of validator strings like "required,minLength=5").
> What would be nice would be to have an easy way to re-run the validations, just to generate a boolean.  At the core of this is combining the current value for the component (possibly extracted right out of the business object) with the list of validators.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org