I never had this issue before. I just test and everything works right, can you share the whole stack trace?
DH http://www.gaonline.com.cn ----- Original Message ----- From: "Jonhy Pear" To: "Tapestry users" <users@tapestry.apache.org> Sent: Tuesday, November 10, 2009 3:27 AM Subject: Re: beaneditform question I'm experimenting your code but I'm blocked :( I have in my page.java @Property private String password; @Property private String confirmPassword; in my tml: <form t:id="userRegistrationForm" t:type="beaneditform" object="user" add="password, confirmPassword" exclude="id, active"> <p:passsword> <t:label for="password" /> <t:passwordfield t:id="password" validate="required" /> </p:passsword> <p:confirmPassword> <t:label for="confirmPassword" /> <t:passwordfield t:id="confirmPassword" validate="required" /> </p:confirmPassword> </form> But I get this error: Render queue error in BeginRender[user/New:userregistrationform.editor.propertyeditor]: The data type for property 'password' of org.code.sandbox.model.u...@d9973a is null. * * *Can you help me?* On Mon, Nov 9, 2009 at 4:13 PM, ningdh <ningd...@gmail.com> wrote: > I am sorry that "Object onValidate" should be "Object onValidateForm". > > DH > > ----- Original Message ----- > From: "João Pereira" > To: "Tapestry users" <users@tapestry.apache.org> > Sent: Monday, November 09, 2009 11:53 PM > Subject: Re: beaneditform question > > > Thank you. > > > On Mon, Nov 9, 2009 at 1:50 AM, DH <ningd...@gmail.com> wrote: > > > Hi > > > > Simple sample(t5.1): > > > > In tml: > > <form t:id="regForm" t:type="beaneditform" object="user" > > include="nick,firstName,lastName" add="password,retypePassword"> > > <p:password> > > <t:label for="password"/> > > <t:passwordfield t:id="password" validate="required"> > > </p:password> > > <p:retypePassword> > > <t:label for="retypePassword"/> > > <t:passwordfield t:id="retypePassword" validate="required"> > > </p:retypePassword> > > </form> > > > > In java: > > > > @Component > > private BeanEditForm regForm; > > > > @Property > > private User user; // your user entity > > > > @Property > > private String password; > > > > @Property > > private String retypePassword; > > > > Object onValidate() { > > if (!password.equals(retypePassword)) { > > regForm.recordError("password and retypepassword must be == "); > > return this; // meaning validation failed > > } > > return null; // validation successfully. > > } > > > > Object onSuccess() { > > user.setPassword(encodeutil.encode(password)); > > service.save(user); > > return successpage or other; > > } > > > > DH > > http://www.gaonline.com.cn >