For example like this (very simplified): @Component private Form myForm; // links to <t:form t:id="myForm">
@Component private PasswordField password1; // links to <t:passwordfield t:id="password1"> Object onSuccess() { if (passwords unequal) { myForm.recordError(password1, "Passwords does not match"); return null; } // else proceed with persisting the user } HTH Olle 2008/12/15 Charles Mason <charlie....@gmail.com> > Hi All, > > I have a fairly straight forward bean edit form on a page. Its a > create new user form so, I want to check the user doesn't already > exist and that the two password fields match. I do this validation in > the onSubmit method but I am struggling to use the error reporting > mechanism to inform the user. > > How do I get access to the form component to generate the proper error > messages? > > > Charlie M > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Olle Hallin Senior Java Developer and Architect olle.hal...@crisp.se www.crisp.se