Details
Description
Use case demonstrated by attached demo application. Steps to reproduce:
1. Deploy application to Tomcat 5
2. Open application in IE6 or Firefox 2.0
3. There will appear an outputText saying 'Please wait...' and a commandButton
Right when the application is started a custom Thread is executed in the background (which simulates a server-side action). After a certain period of time the
Renderable bean's requestRender method is called (Thread's sleep time is set to 10 ms) in order to send an update to the client. This can be adjusted in
TestWindowHandler.java
4. It now takes up to 20 sec until the update is sent to the client, even though the Thread's sleep time is set to 10 ms.
5. Change the sleep time to i.e. 3000
6. The initial update will be sent to the client at the correct time
Note that in firebug "block/receive-update-views" is waiting for about 10-20 sec and an update is first received by the following request.
1. Deploy application to Tomcat 5
2. Open application in IE6 or Firefox 2.0
3. There will appear an outputText saying 'Please wait...' and a commandButton
Right when the application is started a custom Thread is executed in the background (which simulates a server-side action). After a certain period of time the
Renderable bean's requestRender method is called (Thread's sleep time is set to 10 ms) in order to send an update to the client. This can be adjusted in
TestWindowHandler.java
4. It now takes up to 20 sec until the update is sent to the client, even though the Thread's sleep time is set to 10 ms.
5. Change the sleep time to i.e. 3000
6. The initial update will be sent to the client at the correct time
Note that in firebug "block/receive-update-views" is waiting for about 10-20 sec and an update is first received by the following request.
-
Hide
- Test_AjaxPush.war
- 5.84 MB
- Michael Thiem
-
- META-INF/MANIFEST.MF 0.0 kB
- WEB-INF/classes/test/TestBean.class 3 kB
- WEB-INF/.../TestWindowHandler$1.class 0.9 kB
- WEB-INF/classes/.../TestWindowHandler.class 1 kB
- WEB-INF/classes/test/WindowHandler.class 0.1 kB
- WEB-INF/classes/.../WindowIdFilter.class 3 kB
- WEB-INF/classes/test/WindowManager.class 2 kB
- WEB-INF/faces-config-facelet.xml 0.4 kB
- WEB-INF/faces-config.xml 1 kB
- WEB-INF/html_basic.tld 244 kB
- WEB-INF/jsf_core.tld 25 kB
- WEB-INF/lib/backport-util-concurrent.jar 319 kB
- WEB-INF/lib/commons-beanutils.jar 100 kB
- WEB-INF/lib/commons-collections.jar 164 kB
- WEB-INF/lib/commons-digester.jar 96 kB
- WEB-INF/lib/commons-fileupload.jar 52 kB
- WEB-INF/lib/commons-logging.jar 27 kB
- WEB-INF/lib/el-api.jar 24 kB
- WEB-INF/lib/el-ri.jar 97 kB
- WEB-INF/lib/icefaces-comps.jar 1.51 MB
- WEB-INF/lib/icefaces-facelets.jar 593 kB
- WEB-INF/lib/icefaces.jar 770 kB
- WEB-INF/lib/jsf-api.jar 324 kB
- WEB-INF/lib/jsf-impl.jar 602 kB
- WEB-INF/lib/jstl.jar 17 kB
- WEB-INF/.../krysalis-jCharts-1.0.0-alpha-1.jar 151 kB
- WEB-INF/lib/standard.jar 343 kB
- WEB-INF/lib/xercesImpl.jar 1.15 MB
- WEB-INF/lib/xml-apis.jar 190 kB
- WEB-INF/web.xml 5 kB
-
- Test_AjaxPush.zip
- 36 kB
- Michael Thiem
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
demo application, tested on Tomcat 5.5.23
Show
Michael Thiem
added a comment - demo application, tested on Tomcat 5.5.23
This issue doesn't occur anymore in 1.7.0
Show
Michael Thiem
added a comment - This issue doesn't occur anymore in 1.7.0
demo application source code