Ryan Gravener-3 wrote:
> 
> I think you are overcomplicating things.  Validate the users input, if
> two users want the same name within 1 second of each request you
> probably have bigger problems to deal with.  

So you think my current solution (extending "AbstractValidator") is OK?
But I still need to catch nonunique exceptions when saving all user inputs. 




> Anyhow,  when submit is
> called, if you get a nonunique exception.  Catch in dao/service and
> throw an exception wicket can handle and present.
> Ryan Gravener
> http://bit.ly/no_word_docs
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

Can you be a little bit more specific? After I catch a nonuqniue exception,
how should I change the page markup to present an error message? Any 
examples/references  will be helpful.


-- 
View this message in context: 
http://www.nabble.com/User-name-validation---how-to-check-database-to-find-if-a-name-has--already-been-taken--tp25614625p25615006.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to