[
https://issues.apache.org/jira/browse/WW-2065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart closed WW-2065.
-----------------------------
Resolution: Fixed
Fix Version/s: (was: Future)
2.1.8
Assignee: Lukasz Lenart
Is already resolved as from revision 1799 ->
http://svn.opensymphony.com/fisheye/browse/xwork/trunk/src/java/com/opensymphony/xwork2/validator/validators/ValidatorSupport.java?r=1799
It's related to http://jira.opensymphony.com/browse/XW-593
> add support for OGNL to all field-validator params
> --------------------------------------------------
>
> Key: WW-2065
> URL: https://issues.apache.org/jira/browse/WW-2065
> Project: Struts 2
> Issue Type: New Feature
> Components: Expression Language
> Affects Versions: 2.0.9
> Reporter: Florent Ramière
> Assignee: Lukasz Lenart
> Priority: Minor
> Fix For: 2.1.8
>
>
> XWork bug reproduced here, please remove if appropriate
> ---
> Param values cannot contain ognl values, here is my current validator
> configuration.
> The ognl possibility in th message is very usefull, it is a pity we cannot do
> the same on the param side ...
> <field name="language.name">
> <field-validator type="requiredstring" short-circuit="true">
> <message>${getText("validator.requiredstring"}</message>
> </field-validator>
> <field-validator type="stringlength">
> <param name="maxLength">255</param>
> <message>${getText("validator.stringlength"}</message>
> </field-validator>
> </field>
> here is what I wish I could do
> <field name="language.name">
> <field-validator type="requiredstring" short-circuit="true">
> <message>${getText("validator.requiredstring"}</message>
> </field-validator>
> <field-validator type="stringlength">
> <!-- here is the requested change--> <param
> name="maxLength">${getText("maximum.length.language.locale")}</param>
> <message>${getText("validator.stringlength"}</message>
> </field-validator>
> </field>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.