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 (Commented) (JIRA)" <ji...@apache.org> on 2012/04/10 16:51:16 UTC

[jira] [Commented] (WW-3432) OVal plugin should add message variables

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

Lukasz Lenart commented on WW-3432:
-----------------------------------

Docs must be updated as well

http://struts.apache.org/2.x/docs/oval-plugin.html
                
> 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