java - How to dynamically check existing user in wicket -


in web application have register form new user. there 1 field username:

    textfield<string> username = new textfield<string>("username");     username.add(usernamevalidator.getinstance()); 

when user push button username validate. behaviour not user friendly. there options how validate dynamically , if there error in validation user cant push button ?

you can use the: onchangeajaxbehavior

  username.add(new onchangeajaxbehavior() {       @override      protected void onupdate(ajaxrequesttarget target) {         //do stuff here      }   }); 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -