struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Chang (JIRA)" <>
Subject [jira] Created: (WW-1908) Method filtering on validators
Date Thu, 03 May 2007 05:48:43 GMT
Method filtering on validators

                 Key: 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?

		<field-validator type="requiredString">
			<param name="includeMethods">add, modify</param>
			<param name="excludeMethods">delete</param>
			<message key="Some Message"/>

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.

View raw message