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 (Jira)" <ji...@apache.org> on 2023/06/28 07:00:00 UTC
[jira] [Updated] (WW-3540) repopulateField config does not work correctly after conversion failed
[ https://issues.apache.org/jira/browse/WW-3540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-3540:
------------------------------
Fix Version/s: 6.4.0
(was: 6.2.0)
> repopulateField config does not work correctly after conversion failed
> ----------------------------------------------------------------------
>
> Key: WW-3540
> URL: https://issues.apache.org/jira/browse/WW-3540
> Project: Struts 2
> Issue Type: Bug
> Components: Core Interceptors
> Affects Versions: 2.0.14, 2.2.1
> Environment: tomcat 6.0.29
> Reporter: PanQuanyi
> Priority: Minor
> Fix For: 6.4.0
>
> Original Estimate: 96h
> Remaining Estimate: 96h
>
> input.jsp content:
> <s:form action="validate"><s:textfield name="age" label="Age"></s:textfield><s:submit value="Submit"></s:submit></s:form>
> ValidateAction.java content:
> public class ValidateAction extends ActionSupport{
> private int age;
> public int getAge() {
> return age;
> }
> public void setAge(int age) {
> this.age = age;
> }
> @Override
> public String execute() throws Exception {
> return SUCCESS;
> }
> }
> ValidateAction-conversion.xml:
> <validators>
> <field name="age">
> <field-validator type="conversion">
> <param name="repopulateField">false</param>
> <message>age not valid configed in xml</message>
> </field-validator>
> </field>
> </validators>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)