开发者

Internet Explorer very slow using lots of checkboxes with valueChangeListener/ajax

I have a jsf site with a html table, which shows up to 300 rows and 50 columns. Except the table-header and the first column (someones name) all the cells contain a checkbox.

So i have a form with up to 15.000 checkboxes.

Here's the code:

<h:form>
<table>
   <a4j:repeat var="item" value="#{listBean.listItems}" rows="0" >
      <tr>
         <td>#{item.name}</td>

         <a4j:repeat var="box" value="#{item.activations}" >

            <td>
            <a4j:region renderRegionOnly="true" >
               <h:selectBooleanCheckbox value="#{box.checked}"
                     valueChangeListener="#{listBean.activationChanged}"
     开发者_如何转开发                immediate="true" >
                  <a4j:support event="onchange" />
               </h:selectBooleanCheckbox>
            </a4j:region>
            </td>

         </a4j:repeat>

      </tr>
   </a4j:repeat>
</table>
</h:form>

As you can see, i already use regions to keep the rendering fast. I need to use the valueChangelistener, because we must not use a button for submitting. The customer also wants to avoid paging here.

Firefox is very fast. But in IE the checking of a single box takes 3-5 seconds.

Can anybody help me increase the performance of IE here?

thx!

regards

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜