Re: User name validation - how to check database to find if a name has already been taken?

2009-10-01 Thread Nicolas Melendez
> >> > -igor > >> > > >> > >> Thanks, it works like a charm. I did not know I could show an error > >> message > >> by calling "Component.error" and then use a filter to catch all error > >> messages targeting a

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-30 Thread Igor Vaynberg
gt;> >> Thanks, it works like a charm. I did not  know I could show an error >> message >> by calling "Component.error" and then use a filter to catch all error >> messages targeting a specific FormComponent. >> >> >>

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-30 Thread Paul Huang
d to have a wizard and implement the "record_status" check process as you suggested to make sure that the database is always consistent. -- 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--tp256146

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-30 Thread Nicolas Melendez
> > } > > > > -igor > > > > Thanks, it works like a charm. I did not know I could show an error > message > by calling "Component.error" and then use a filter to catch all error > messages targeting a specific FormComponent. > > > -- > Vie

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-30 Thread Paul Huang
Thanks, it works like a charm. I did not know I could show an error message by calling "Component.error" and then use a filter to catch all error messages targeting a specific FormComponent. -- View this message in context: http://www.nabble.com/User-name-validation---how-

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-27 Thread Flavius
onal 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 th

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-25 Thread Igor Vaynberg
form { onsubmit() { try { users.persist(getmodelobject()); } catch (usernamealreadyexistsexception e) { error("error.username.exists"); } } } -igor On Fri, Sep 25, 2009 at 9:05 AM, Ryan Gravener wrote: > I think you are overcomplicating things.  Vali

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-25 Thread Paul Huang
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-u

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-25 Thread Ryan Gravener
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. Anyhow, when submit is called, if you get a nonunique exception. Catch in dao/service and throw an exception wicket

User name validation - how to check database to find if a name has already been taken?

2009-09-25 Thread Paul Huang
Hello, I would like to get your suggestion about how to validate a user name input by checking if the name has already been taken (exists in the back-end database); and how to show feedback messages right next to the input field if it has. Typically, when a user registers to a website, he needs t