Cheers/Euxaristw ;) Y. -----Original Message----- From: Andreas Andreou [mailto:[EMAIL PROTECTED] Sent: 08 April 2005 12:02 To: Tapestry users Subject: Re: Custom ValidationDelegate
Dear Gianni, you can certainly go ahead and try your suggestion. It will work and it would be a nice, OO and reusable solution. Another solution would be to : 1) Add a message property in the .page 2) Conditionally include the message in the .html 3) Update / Set the message string in the listener method that gets invoked on submit. But I would really go on with the solution you proposed. Keep in mind that you can always pass as many additional parameters as you want to your validation bean. Take a look at http://jakarta.apache.org/tapestry/doc/DevelopersGuide/spec.bean.html and at http://jakarta.apache.org/tapestry/doc/DevelopersGuide/spec.set-property .html Andreas Yiannis Mavroukakis wrote: >Bear with my stupid questions...I'm currently using StringValidator to >validate user input and display error messages. Beyond that, what I >need to do is to validate the user input against a database ( for user >account creation ). So, for example if the username already exists I >want to display this on the page. Is this the correct way to go about >things (i.e. extend BaseValidator?) > >Much appreciate your patience.. > >Yiannis. > >Note:__________________________________________________________________ >This message is for the named person's use only. It may contain >confidential, proprietary or legally privileged information. No >confidentiality or privilege is waived or lost by any mistransmission. >If you receive this message in error, please immediately delete it and >all copies of it from your system, destroy any hard copies of it and >notify the sender. You must not, directly or indirectly, use, disclose, >distribute, print, or copy any part of this message if you are not the >intended recipient. Jaguar Freight Services and any of its subsidiaries >each reserve the right to monitor all e-mail communications through its >networks. >Any views expressed in this message are those of the individual sender, >except where the message states otherwise and the sender is authorized >to state them to be the views of any such entity. >_______________________________________________________________________ >_ This e-mail has been scanned for all viruses by Star Internet. The >service is powered by MessageLabs. > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__________________________________________________________________ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
