Re: sending ajax response part by part

2010-10-24 Thread Altuğ Bilgin Altıntaş
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

Re: sending ajax response part by part

2010-10-24 Thread Altuğ Bilgin Altıntaş
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

Re: sending ajax response part by part

2010-10-22 Thread Martin Grigorov
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

sending ajax response part by part

2010-10-22 Thread Altuğ Bilgin Altıntaş
Hi all; username.add(new AjaxFormComponentUpdatingBehavior("onblur") { @Override public void onUpdate(AjaxRequestTarget target) { String thisUsername = username.getModelObject(); username.add(new SimpleAttributeModifier("class", "thinking"))