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

Hudson commented on WW-3432:
----------------------------

Integrated in Struts2 #452 (See [https://builds.apache.org/job/Struts2/452/])
    WW-3432 pushes messages variables to allow customize validation messages 
(Revision 1311945)

     Result = SUCCESS
lukaszlenart : 
Files : 
* 
/struts/struts2/trunk/plugins/oval/src/main/java/org/apache/struts2/oval/interceptor/OValValidationInterceptor.java
* 
/struts/struts2/trunk/plugins/oval/src/test/java/org/apache/struts2/oval/interceptor/OValValidationInterceptorTest.java
* 
/struts/struts2/trunk/plugins/oval/src/test/java/org/apache/struts2/oval/interceptor/SimpleFieldI18n.java
* 
/struts/struts2/trunk/plugins/oval/src/test/resources/org/apache/struts2/oval/interceptor/SimpleFieldI18n.properties
* /struts/struts2/trunk/plugins/oval/src/test/resources/oval-test.xml

                
> OVal plugin should add message variables
> ----------------------------------------
>
>                 Key: WW-3432
>                 URL: https://issues.apache.org/jira/browse/WW-3432
>             Project: Struts 2
>          Issue Type: Improvement
>    Affects Versions: 2.1.8.1
>         Environment: struts-oval-plugin 2.1.8.1 
>            Reporter: Nicolas Bohorquez Gutierrez
>            Assignee: Lukasz Lenart
>              Labels: oval, s2, struts
>             Fix For: 2.3.3
>
>
> In the method protected void addValidationErrors(ConstraintViolation[] 
> violations, Object action, ValueStack valueStack, String parentFieldname) of 
> org.apache.struts2.oval.interceptor.OValValidationInterceptor the 
> violation.getMessageVariables() should be pushed into the valueStack in order 
> to get access in the resource bundle to important validation context 
> variables like min length, max lenght, substring, expression, etc.
> thank you

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to