5 Replies Latest reply on Mar 4, 2011 9:42 AM by Ilya Shaikovsky

    Suggestionbox performance issue

    cos beck Newbie

      Hi All,

       

      I am facing some performance issue with suggestion box.

      I have a page with 200 rows each row has 2 suggestion box for text field, the page takes more than 20 seconds to load,

       

         <rich:dataTable
               id="detail_table"
               width="auto"
               value="#{testBean.testList}" 
               var="record" 
               headerClass="GrayBackgroundHeader"
               rowKeyVar="row"
               ajaxRendered="true"
               rowClasses="TableRowOdd,TableRowEven">
               <f:facet name="header">
                   <rich:columnGroup>
                       <h:column>
                           <h:outputText value="ColumnA" />
                       </h:column>
                       <h:column>
                           <h:outputText value="ColumnB" />
                       </h:column>
                   </rich:columnGroup>
              </f:facet>
              <rich:columnGroup>
                   <h:column>
                       <h:inputText value="#{record}" id="text1" />
                       <rich:suggestionbox id="suggestionBoxId1" for="text1" selfRendered="true"/>
                   </h:column>
                   <h:column>
                       <h:inputText value="#{record}" id="text2" />
                       <rich:suggestionbox id="suggestionBoxId2" for="text2" selfRendered="true"/>
                   </h:column>
              </rich:columnGroup>
           </rich:dataTable>
      

       

      Above are my test codes. Am I using the suggest box incorrectly or pls help to advice to improve the performance.

       

      Thanks a lot~