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

ASF subversion and git services commented on WW-4595:
-----------------------------------------------------

Commit 1b4868df3ed0a82098a34048e4a22333242667de in struts's branch 
refs/heads/support-2-3 from [~lukaszlenart]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=1b4868d ]

WW-4595 Resolves regression issue but keeping support for custom text provider


> Validators can no longer retrieve messages from property files for 
> ModelDriven objects.
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-4595
>                 URL: https://issues.apache.org/jira/browse/WW-4595
>             Project: Struts 2
>          Issue Type: Bug
>          Components: XML Validators
>    Affects Versions: 2.3.20
>            Reporter: Rob Stokes
>             Fix For: 2.3.25, 2.5
>
>
> I have a Action with a VistorFieldValidator for my ModelDriven object 
> (Model.class), prior to version 2.3.20 the RequiredStringValidator looked up 
> the message in the Model.properties file. Since 2.3.20 the validators can no 
> longer retrieve messages from property files for the ModelDriven object. The 
> DelegatingValidatorContext always returns the TextProvider for the Action 
> instead of the ModelDriven object in the makeTextProvider method.
> The DelegatingValidatorContext was changed in WW-4202.
> I would submit a patch but I'm not sure of the correct behavior.
> Example app with test case is here 
> https://github.com/RLStokes/struts2-modeldriven.
> The tests pass with struts 2.3.15.1 they fail with 2.3.20.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to