Re: How to tackle Ajax Flooding

2009-12-09 Thread smallufo
Wow , thanks for this great tip ... But I have problem applying to Gmap2 : I hope when user clicks the map , the map won't be able to receive any requests until the onClick() finishes... But it seems this doesn't work... Is there anything I missed ? gmap2.add(new ClickListener() { @Override

Re: How to tackle Ajax Flooding

2009-08-31 Thread nino martinez wael
Is it something like this? http://www.nabble.com/No-behavior-listener-found-td20325302.html 2009/8/30 Tom Wollert tom.woll...@googlemail.com: Hello there, I have a problem with my Wicket Application, which is quite Ajax heavy. Certain ajax calls take some time as they start an import,

Re: How to tackle Ajax Flooding

2009-08-31 Thread Tom Wollert
Thanks for the replies, so I have to write my own Javascript... no problem I guess, was hoping for a cleaner way so to speak. Any idea about disabling the postponing when the ajax channel is busy? Specifically I have on my website an area where the user sends multiple requests in very rapid

Re: How to tackle Ajax Flooding

2009-08-31 Thread Tom Wollert
The only idea I can come up with is to keep state of my model on client side, but that would require alot of javascript :/

Re: How to tackle Ajax Flooding

2009-08-31 Thread nino martinez wael
Heh, the whole idea with ajax are that it are asynchronous :) 2009/8/31 Tom Wollert tom.woll...@googlemail.com: The only idea I can come up with is to keep state of my model on client side, but that would require alot of javascript :/

Re: How to tackle Ajax Flooding

2009-08-31 Thread Pedro Santos
- area where the user sends multiple requests in very rapid succession - model on client side - alot of javascript Do you consider to choice an diferent framework for thi especific project? Take a look at: http://ptrthomas.wordpress.com/2008/09/04/wicket-and-gwt-compared-with-code/ On Mon, Aug

Re: How to tackle Ajax Flooding

2009-08-31 Thread Igor Vaynberg
add(new ajaxbutton(button) { getajaxcalldecorator() { return new iajaxcalldecorator() { decoratescript(script) { return this.enabled=false;+script; } decorateonfailurescript(script) { return script+;this.enabled=true;;} decorateonsuccessscript(script) { return

Re: How to tackle Ajax Flooding

2009-08-31 Thread Michael O'Cleirigh
Hi Tom, It sounds like you are doing too much in your heavy Ajax requests. You should consider changing how it works so that the process can be started by the Ajax request but does not need to block other ajax requests while waiting for the results. You can use a progress bar to denote to

Re: How to tackle Ajax Flooding

2009-08-31 Thread Jason Wang
Tom Wollert wrote: Hello there, I have a problem with my Wicket Application, which is quite Ajax heavy. Certain ajax calls take some time as they start an import, however the button can still be clicked and sends another ajax call (which is delayed for quite some time). Is it possible to

How to tackle Ajax Flooding

2009-08-30 Thread Tom Wollert
Hello there, I have a problem with my Wicket Application, which is quite Ajax heavy. Certain ajax calls take some time as they start an import, however the button can still be clicked and sends another ajax call (which is delayed for quite some time). Is it possible to disable the button while

Re: How to tackle Ajax Flooding

2009-08-30 Thread Igor Vaynberg
you can use an ajax call decorator to disable the button via javascript when it is clicked. -igor On Sun, Aug 30, 2009 at 2:55 PM, Tom Wollerttom.woll...@googlemail.com wrote: Hello there, I have a problem with my Wicket Application, which is quite Ajax heavy. Certain ajax calls take some