commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (VALIDATOR-229) Make validation constants accessible for code outside the validation framework
Date Mon, 13 Feb 2017 00:01:41 GMT

     [ 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)

Mime
View raw message