there are two ways.

one: write a validator: email.add(new ivalidator() {
validate(ivalidatable v) { if (!validemail(v.getvalue()) v.add(new
validationerror().setresourcekey("my.error")); }

two: do it in onsubmit handler of the form

form.onsubmit() { if (!validemail(email)) { error(getString("my.error")); }}

-igor


On Thu, Mar 20, 2008 at 9:52 AM, Fabien D. <[EMAIL PROTECTED]> wrote:
>
>  Thank you all for you responding speed :) Amazing
>
>  Okay i will check tomorrow for this issue.But if my condition is not take
>  care by Feedback
>
>  An other exemple, i want to check if the email of the user is already in my
>  database, and display a error message in my FeedbackPanel in this case.
>
>  How can i link my condition, the message and the panel?
>  --
>  View this message in context: 
> http://www.nabble.com/Display-of-own-message-in-FeedbackPanel-tp16182720p16183431.html
>
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  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]

Reply via email to