[ 
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

        

Reply via email to