Method filtering on validators
------------------------------
Key: WW-1908
URL: https://issues.apache.org/struts/browse/WW-1908
Project: Struts 2
Issue Type: New Feature
Affects Versions: Future
Reporter: Eric Chang
Priority: Minor
I was thinking that since ValidationInterceptor allows method filtering as it extends MethodFilterInterceptor,
is it possible to have this same filtering done for validators?
e.g.
<field-validator type="requiredString">
<param name="includeMethods">add, modify</param>
<param name="excludeMethods">delete</param>
<message key="Some Message"/>
</field-validator>
This way, we can have a controller that perform mutiple functions like adding, modifying etc,
and allowing different sets of validation for different methods.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|