struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Garcia (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WW-3715) Allow for dynamic validation xml files, by building validator cache based on action AND context
Date Thu, 01 Dec 2011 10:01:40 GMT
Allow for dynamic validation xml files, by building validator cache based on action AND context
-----------------------------------------------------------------------------------------------

                 Key: WW-3715
                 URL: https://issues.apache.org/jira/browse/WW-3715
             Project: Struts 2
          Issue Type: Improvement
          Components: XML Validators
    Affects Versions: 2.1.8
            Reporter: J. Garcia
            Priority: Trivial
             Fix For: 3.x


In order to be able to call from an action's validate method:

validatorManager.validate(this, "my-dynamic-context");

xwork's AnnotationValidatorManager should build its validator's key cache based on both clazz
(action) AND context. This allows to decide the xml validation file dynamically.

Attached patch for xwork-core-2.1.6 sources.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message