You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2017/02/13 00:01:41 UTC
[jira] [Resolved] (VALIDATOR-229) Make validation constants
accessible for code outside the validation framework
[ https://issues.apache.org/jira/browse/VALIDATOR-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb resolved VALIDATOR-229.
----------------------------
Resolution: Won't Fix
Just create a subclass and use that to override the method with a public version
> Make validation constants accessible for code outside the validation framework
> ------------------------------------------------------------------------------
>
> Key: VALIDATOR-229
> URL: https://issues.apache.org/jira/browse/VALIDATOR-229
> Project: Commons Validator
> Issue Type: Improvement
> Components: Routines
> Affects Versions: 1.4.0 Release
> Reporter: Florian Rampp
> Fix For: Validator2
>
>
> In ValidatorResources, the method getConstants() is protected. But I want to access the validation constants from other parts of the software, e.g. to set the maxlength attribute of fields in a jsp, etc.
> So, it would really be reasonable to make this method public!
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)