[ https://issues.apache.org/struts/browse/WW-3175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yuan reassigned WW-3175: ------------------------ Assignee: Craig McClanahan Who can i assign this issue to? > Ajax Validation does not effective when Action implements Model Driven,and other Issues below > --------------------------------------------------------------------------------------------- > > Key: WW-3175 > URL: https://issues.apache.org/struts/browse/WW-3175 > Project: Struts 2 > Issue Type: Bug > Components: XML Validators > Affects Versions: 2.1.6 > Environment: Tomcat > Reporter: Yuan > Assignee: Craig McClanahan > Priority: Critical > > Ajax Validation does not be effective when Action implements Model Driven > but for the action not implements model driven, it works > Validator: > > > > Account is required!!! > > > > Action: > public class TestAction extends ActionSupport implements ModelDriven > { > /** > * @return user > */ > public TestUser getUser() > { > return user; > } > /** > * @param ň»╣user > */ > public void setUser(TestUser user) > { > this.user = user; > } > private TestUser user=new TestUser(); > > > public String execute() > { > return "success"; > } > > > /** > * @return > */ > public Object getModel() > { > // TODO Auto-generated method stub > return this.user; > } > > } > JSP: > <%@ page language="java" contentType="text/html; charset=GBK"%> > <%@taglib prefix="s" uri="/struts-tags"%> > <%@ taglib uri="/struts-dojo-tags" prefix="sx"%> > > > > > > > > >

Login

> > > > >
> > > > Issue1:When i click the button with blank input, it can show the validate error message > but when I input some message, and click, it still show "required" error message, > It seemed ajax validation is not effect ed for model driven > Issue2: > When i put File Upload control in jsp and use "required" validation rule, > the submit buttong can not be submited and show error in IE status bar > > Issue3: > When i put custom type convention in Model Driven action, > and use the beanClassname-conversion.properties > e.g. UserInfo-conversion.properties > and name is a property of UserInfo Class and have a custom type convertor > name=struts2.demo.UserNameConverter > When i use ajax validation and config in Validation XML like this: > > > > > > When i click submit button, it directly show alert box : Object Error > Issue4: > if Datetimepicker Tag set "required" Validation Rule in XML, > When i click submit button, it directly show alert box : Object Error > > > > > > > 1888-01-01 > 2008-01-01 > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.