I am using ExtJS 3.1.1. I have a tab-panel in the center region and another panel in the west region of a window. On 'beforeTabChange' event I'm removing and adding new contents to both tab-panel and panel. When I use tomcat server this is working fine at all machines. When I use JBoss server and access from the same machine there is no problem. But when I access the war deployed in JBoss server from a remote machine, when switching from a particular tab to other tabs, we need to click twice on the new tab. While clicking for the first time on a new tab, the west panels contents are emptied and the process stops there. This is not a browser problem or OS problem (I checked). What could be the reason ?
1 Answers
Note : Do not down vote or delete (to Moderators) if this does not answer the Question. I do not have enough reputation to share a comment above.
You need to increase the Ext.Ajax.timeout
or more specifically Ext.Ajax.request
's timeout
value (see this) to a reasonable time that can process your request in a remote environment.
I had implemented an Ext.application to show my Gmail mails (using JavaMail API). Fetching data for the Grid had the same problem that you describe. On the first invocation, fetching of mail contents on the Server side took considerable time and hence the Grid would be empty. The next invocation would promptly bring up the data as I was caching the stuff on server side.
Also, have handlers for the failure of your Ajax.request which could help in identifying the issue.