The two different validators will already have different resource keys for
display of the feedback, why do you need to differentiate in #onError() ?
Sven
lucast lucastol...@hotmail.com schrieb:
Dear Forum,
I apologize if this question has come up before.
I have an email field and I want to
Hi Sven,
Sorry, I should have explained on the first post.
The reason I want to differentiate in #onError() is because if the address
is already registered then I want to have a modal window popping up with
further options such as retrieving the person's details and so on.
Where as if the email
Hi,
there is nothing preventing you to open a modal window from you validator.
If you don't want to see its validation feedback anyway, you should just move
the address registered checking into your #onSubmit().
Sven
lucast lucastol...@hotmail.com schrieb:
Hi Sven,
Sorry, I should have
Thanks Sven,
I'm afraid I don't know how to open a modal window from IValidator.validate
since as it stands it does not handle ajax (as far as my limited knowledge
goes).
I have moved email address validation to form.onValidate() and implemented
it in the following manner:
if ( !
how to open a modal window from IValidator.validate since as it stands it does
not handle
ajax (as far as my limited knowledge goes).
With AjaxRequestTarget.get() your validator can get hold of the current ART (if
present).
Or leave the EmailAddressValidator on the TextField and do the rest