[ http://issues.apache.org/jira/browse/VALIDATOR-173?page=all ]
Niall Pemberton resolved VALIDATOR-173.
---------------------------------------
Resolution: Won't Fix
> [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]