You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Wes Wannemacher (JIRA)" <ji...@apache.org> on 2009/04/16 21:55:06 UTC

[jira] Closed: (WW-1908) Method filtering on validators

     [ https://issues.apache.org/struts/browse/WW-1908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes Wannemacher closed WW-1908.
-------------------------------

    Resolution: Won't Fix

I don't know if you'll get any traction on this, I believe there is a way to accomplish something similar within the action configuration... More likely, you can use annotations like @SkipValidation on methods to keep the validation framework from validating data when they are called. Since there are currently ways to skin this cat, I'm going to close as 'won't fix', but if you want to provide a patch to get this functionality, reopen this issue and attach it. We're much more likely to add new features when the JIRA issue comes with the patch to make it happen :)

> 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: 2.0.6
>            Reporter: Eric Chang
>            Priority: Minor
>             Fix For: Future
>
>
> 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.