struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PanQuanyi (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-3540) repopulateField config does not work correctly after conversion failed
Date Mon, 06 Dec 2010 03:27:14 GMT
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.2.1, 2.0.14
         Environment: tomcat 6.0.29
            Reporter: PanQuanyi
            Priority: Minor


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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message