struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4018) Revert parse param back
Date Mon, 18 Mar 2013 20:51:15 GMT

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

Lukasz Lenart commented on WW-4018:
-----------------------------------

Right now there are dedicated attributes to define expressions:
{code:java}
@IntRangeFieldValidator(message = "Default message", key = "i18n.key", shortCircuit = true,
minExpression = "${minValue}", maxExpression = "${maxValue}")
{code}

Which solution is better?
                
> Revert parse param back
> -----------------------
>
>                 Key: WW-4018
>                 URL: https://issues.apache.org/jira/browse/WW-4018
>             Project: Struts 2
>          Issue Type: Sub-task
>          Components: XML Validators
>    Affects Versions: 2.3.12
>            Reporter: Lukasz Lenart
>            Priority: Minor
>             Fix For: 2.3.13
>
>
> Maybe it is a better solution instead having bunch of additional params to keep expressions.
> {code:java}
> @IntRangeFieldValidator(message = "Default message", key = "i18n.key", shortCircuit =
true, min = "0", max = "42")
> @IntRangeFieldValidator(message = "Default message", key = "i18n.key", shortCircuit =
true, min = "${minValue}", max = "${maxValue}" parse="true")
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message