commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Updated: (VALIDATOR-173) [validator] Change ValidatorUtils.getValueAsString to throw exception
Date Wed, 19 Jul 2006 13:22:27 GMT
     [ http://issues.apache.org/jira/browse/VALIDATOR-173?page=all ]

Niall Pemberton updated VALIDATOR-173:
--------------------------------------

    Component/s: Framework

> [validator] Change ValidatorUtils.getValueAsString to throw exception
> ---------------------------------------------------------------------
>
>                 Key: VALIDATOR-173
>                 URL: http://issues.apache.org/jira/browse/VALIDATOR-173
>             Project: Commons Validator
>          Issue Type: Improvement
>          Components: Framework
>         Environment: Operating System: All
> Platform: PC
>            Reporter: peter merikan
>            Priority: Minor
>
> If you misspell the name of a dependent property it is ignored by the validator.
> The validator uses the ValidatorUtil.getValueAsString method to get the value
> from the dependent property. The returned value is null because the property
> doesn't exist and the ValidatorUtil.getValueAsString method catches all
> exceptions (e.g. NoSuchMethodException)
> Shouldn't the validator throw a exception if a property doesn't exist? What if I
> change the name of a property and then correct the jsp but forgot to update
> validate.xml.

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message