You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2015/11/12 14:57:11 UTC

[jira] [Commented] (WW-2191) Make validateAnnotatedMethodOnly the default and support client-side method-only validations

    [ https://issues.apache.org/jira/browse/WW-2191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15002127#comment-15002127 ] 

Lukasz Lenart commented on WW-2191:
-----------------------------------

So this can resolved with setting {{private boolean validateAnnotatedMethodOnly}} to {{true}} be default, right?

> Make validateAnnotatedMethodOnly the default and support client-side method-only validations
> --------------------------------------------------------------------------------------------
>
>                 Key: WW-2191
>                 URL: https://issues.apache.org/jira/browse/WW-2191
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - CodeBehind
>            Reporter: Ted Husted
>             Fix For: 2.5
>
>
> A common use case for validation annotations is to use different validations per action method. However, in 2.0.x, the default is to combine the validations. A better default would be "true". 
>                 <interceptor-ref name="validation">
> 				   <param name="validateAnnotatedMethodOnly">true</param>                
>                     <param name="excludeMethods">input,back,cancel,browse</param>
>                 </interceptor-ref>
> Also, per-method client-side validation does not seem to be supported. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)