By the way this JS file does the same job :
***
window.onload = initPage;
function initPage() {
/* on start up; assign checkUsername function to onblur */
document.getElementById("username").onblur = checkUsername;
/* disable register
Thanks Martin;
AjaxTimerBehavior doesn't tackle this issue
I solved the issue by using IAjaxCallDecorator.
Here is the code :
final TextField username = new TextField("username", new
Model());
username.setMarkupId("username");
username.setOutputMarkupId(true);
form.add(u
No.
The parsing on the client part (wicket-ajax.js) will not start until the
whole XML response is delivered.
You can use AjaxTimerBehavior to check whether the *slow* calculation is
finished and then deliver its response
2010/10/22 Altuğ Bilgin Altıntaş
> Hi all;
>
> username.add(new AjaxForm
Hi all;
username.add(new AjaxFormComponentUpdatingBehavior("onblur") {
@Override
public void onUpdate(AjaxRequestTarget target) {
String thisUsername = username.getModelObject();
username.add(new SimpleAttributeModifier("class",
"thinking"))