Button action method is used to read a set of files in a folder and analyze it.It will take time depending upon the number of files in the folder.
My problem is that, if there is only few files(i.e if the action is completed in less than an hour) it will show the oncomplete alert correctly. but if there are more files and when the action takes more than 1 hr, the oncomplete message is shown before completion i.e after 45-50min , but at the console we see the action is still going on.
is there is any way to solve it???
is it because i have any values in any of xml's to show the response after 45-50min???
Plz help me.
Use "timeout" attribute of a4j:commandButton. It sets the time in ms to wait for response.
Note: HTTP standard limits simultaneous connections to server to two only. I would recommend not to use such long-running AJAX requests but use a4j:poll or rich:progressBar instead.