struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefaan Dutry (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-2191) Make validateAnnotatedMethodOnly the default and support client-side method-only validations
Date Fri, 05 Jan 2018 21:27:02 GMT

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

Stefaan Dutry commented on WW-2191:
-----------------------------------

[~lukaszlenart]
Is this issue still relevant?

* The component is the Codebehind Plugin, which was dropped in version {{2.5}} .
* The fix version for this issue states {{2.5.x}} though
* issue stated as duplicate, WW-4566 , is marked fixed

> 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.x
>
>
> 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.4.14#64029)

Mime
View raw message