[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-dev
Subject: [jira] [Commented] (WW-4595) Validators can no longer retrieve messages from property files for Mode
From: "Hudson (JIRA)" <jira () apache ! org>
Date: 2016-02-25 19:57:18
Message-ID: JIRA.12933195.1453415328000.147951.1456430238271 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/WW-4595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15167760#comment-15167760 \
]
Hudson commented on WW-4595:
----------------------------
SUCCESS: Integrated in Struts-JDK7-master #430 (See \
[https://builds.apache.org/job/Struts-JDK7-master/430/]) WW-4595 Resolves regression \
issue but keeping support for custom text (lukaszlenart: rev \
e2c6b42b827764746713ecc0e0c7561c68c41984)
* core/src/test/java/com/opensymphony/xwork2/validator/VisitorFieldValidatorTest.java
* xwork-core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction.properties
* core/src/main/java/com/opensymphony/xwork2/validator/DelegatingValidatorContext.java
* core/src/test/resources/com/opensymphony/xwork2/TestBean.properties
> 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
> Assignee: Lukasz Lenart
> 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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic