You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "PanQuanyi (JIRA)" <ji...@apache.org> on 2010/12/06 04:27:14 UTC

[jira] Created: (WW-3540) repopulateField config does not work correctly after conversion failed

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.


[jira] [Updated] (WW-3540) repopulateField config does not work correctly after conversion failed

Posted by "Lukasz Lenart (Updated) (JIRA)" <ji...@apache.org>.
     [ 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: 3.x
    
> 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: 3.x
>
>   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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira