Tree Performance issue in IE7
yashu.here Feb 14, 2011 2:37 AMHi I am using RichFaces 3.3.3.Final version and JSF 1.2 in my project which runs on a Websphere Portal server 6.1.
Everything works fine If I use browsers other than IE ( ie Fine with Chrome, Mozila ).
but It takes more than 10 seconds to load the tree component in IE 7, IE 6 .
Code :
<a4j:region renderRegionOnly="true">
<rich:tree style="width:500px;bgcolor:#CEE" switchType="client" ajaxKeys="#{null}" reRender="RecTreeID" preserveDataInRequest="false" preserveModel="none" limitToList="true" id="TreeID" nodeSelectListener="#{RFTreeTest.nodeSelectListener}" ajaxSingle="true">
<rich:recursiveTreeNodesAdaptor id="RecTreeID" roots="#{RFTreeTest.modelList}" var="lstVar1" nodes="#{lstVar1.childList}" includedNode="true">
<richh:treeNode ajaxSingle="true" id="TreeNodeID" reRender="TreeNodeID">
<h:selectBooleanCheckbox id="chkScriptBox" value="#{lstVar1.selectedFlag}" onclick="nodeChecked(this);" disabled="#{lstVar1.Id != 0}">
</h:selectBooleanCheckbox>
<h:outputText id="TreeLinkTextID" value="#{lstVar1.name}"></h:outputText>
</rich:treeNode>
</rich:recursiveTreeNodesAdaptor>
</rich:tree>
</a4j:region>
I have observed that adding recursiveTreeNodesAdaptor causes this problem, but I need to have this as i need to traverse the tree recursively
This is the statistics I got When I monitored the http request response for IE using fidler
Request Count: 3
Bytes Sent: 5,286 (headers:5047; body:239)
Bytes Received: 582,210 (headers:1274; body:580936)
ACTUAL PERFORMANCE
--------------
Requests started at: 00:25:20.515
Responses completed at: 00:25:28.234
Aggregate Session time: 00:00:00.265
Sequence (clock) time: 00:00:07.7187500
RESPONSE CODES
--------------
HTTP/500: 1
HTTP/404: 1
HTTP/200: 1
RESPONSE BYTES (by Content-Type)
--------------
text/html: 580,827
~headers~: 1,274
application/xml: 109
Also Please Note that :
There is nothing wong in server side code as it is taking less than a second to complete the request.
And same set of data ( Total of 50 nodes maximum depth of the tree being 5 ) taking less than a second in Chrome.
Answers and pointers to fix this issue is greatly appreciated.
If it is an existing bug in RichFaces please point to the code, I can fix and commit the patch.
Thanks in advance for help.