It sure is possible. Looking at your use case my approach would be to implement those conditional validation on the "onValidateForm" method in your page / component class.
For example: public class Login { @Persist @Property private String userId; @Property private String password; @Component private Form form; @Inject private LoginAuthenticator authenticator; void onValidateForm() { if (! authenticator.isValidLogin(userId, password)) { form.recordError("Invalid user name or password."); } } Object onSuccess() { return PostLogin.class; } } On Thu, Oct 23, 2008 at 9:37 AM, Daniel Alonso Sanchez <[EMAIL PROTECTED]>wrote: > > Hi everybody, we are in a hurry in our project, because some requirements > made us to put somethin like Conditional Validations. > > For instance, input components (textfield, select, ...) will always have > format validations, but when the page will be invoked with a parameter, a > validation required is desired to be added to the set of validations per > field. > > Could this be possible? Is there anyway to do it without duplication the > pages? > > Please, if anyone knows how to do it or is just impossible, pleas, tell me > something as soon as possible. Thanks a lot in advance. > -- > View this message in context: > http://www.nabble.com/Conditional-Validation-in-t5-tp20126760p20126760.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >