-
1. Re: Ajax request time out
ilya40umov Jan 7, 2011 2:15 AM (in response to ravi.kuchika)Yes, ajax requests have a timeout.
1) Look at the following links:
http://api.jquery.com/jQuery.ajax/
http://api.jquery.com/jQuery.ajaxSetup
You can try ajaxSetup in order to set greater ajaxTimeout for all requests.
2) You can try a4j:queue. It has timeout attribute too. Look at this:
http://livedemo.exadel.com/richfaces-demo/richfaces/queue.jsf?tab=info&cid=1197809
-
2. Re: Ajax request time out
icedguardian Jan 24, 2012 5:47 AM (in response to ilya40umov)Great question and an almost satisfying answer BUT I have not been able to expand the timeout over one hour with the help of a4j:queue. Is this intended? Or have I done anything wrong? The structure of my code is like this:
<a4j:queue id="queSupressAjaxRequestTimeout"
name="suppressAjaxRequestTimeout" timeout="7200000" />
<a4j:commandButton id="btnExport" value="Export"
actionListener="#{bean.exportVerySlowly}"
status="statusPanel" eventsQueue="suppressAjaxRequestTimeout"
reRender="pnlExportWrapper, pnlExportConfirmationWrapper" />
The a4j:commandButton and a4j:queue are talking to each other. Reducing the timeout works. But expanding it...
Yes, I know, if I need an ajax request running that long, something else is wrong. Unfortunately refactoring is no resolution right now.
I hope anbody can help me. I am quite desperated... Has anymody gained any experience with this topic?
-
3. Re: Ajax request time out
icedguardian Feb 13, 2012 7:43 AM (in response to icedguardian)No idea? Nobody?