0 Replies Latest reply on Jun 3, 2011 5:03 AM by wenggh007

    about richfaces4 performance problem

    wenggh007

      first

       

      show off my test procedures:

       

      ------------------------------------------start------------------------------------------------

       

      <h:form>

                  <table align="left">

                    <tr>

                            <td class="rf-dt-c">渠道:<h:inputText value="请选择渠道"/></td>

                            <td class="rf-dt-c">招聘职位:<h:inputText /> </td>

                            <td class="rf-dt-c">发布时间:<rich:calendar /> 至  <rich:calendar />

                            </td>

                           <td><h:commandButton value="新增职位"></h:commandButton><h:commandButton value="简历托收"></h:commandButton></td>

                           </tr>

                           <tr>

                          <td class="rf-dt-c">发布状态:<h:commandLink value="全部"/> | <h:commandLink value="有效"/> | <h:commandLink value="无效"/> </td>

                        </tr>

                        <tr>

                         <td><h:commandButton value="批量刷新"/></td>

                        

                        </tr>

                        </table>

             </h:form>   

          

          

        <h:form style="width:100%;" >

          

         <rich:dataTable id="dataTable" var="data" value="#{advertisBean.defaultDataModel}" style="width:100%;"   rows="#{advertisBean.pageSize}"

          onrowmouseover="this.style.backgroundColor='#F1F1F1'"  onrowmouseout="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">

               <rich:column>

            <f:facet name="header"><h:outputText value=" "/></f:facet>

            <h:selectBooleanCheckbox value="#{data.adWorkArea}"/>

           </rich:column>

         

         

           <rich:column>

            <f:facet name="header"><h:outputText value="招聘职位"/></f:facet>

            <h:outputLabel value="#{data.adPostName}"/>

           </rich:column>

          

            <rich:column>

            <f:facet name="header"><h:outputText value="招聘时间"/></f:facet>

            <h:outputLabel value="#{data.createTime}">

             <f:convertDateTime pattern="yyyy-mm-dd"/>

            </h:outputLabel>

           </rich:column>

         

         

           <rich:column>

            <f:facet name="header"><h:outputText value="招聘人数"/></f:facet>

            <h:outputLabel value="#{data.adNeedPres}"/>

           </rich:column>

          

           <rich:column>

            <f:facet name="header"><h:outputText value="归属部门"/></f:facet>

            <h:outputLabel value="#{data.adOrgName}"/>

           </rich:column>

          

         

           <rich:column>

            <f:facet name="header"><h:outputText value="职位描述"/></f:facet>

            <h:outputLabel value="#{data.adPostRemark}"/>

           </rich:column>

          

           <rich:column>

            <f:facet name="header"><h:outputText value="职位种类"/></f:facet>

            <h:outputLabel value="#{data.adPostCategory}"/>

           </rich:column>

         

          

           <h:column>

            <f:facet name="header"><h:outputText value="操作"/></f:facet>

            <h:commandLink value="操作"/>

           </h:column>

            

          </rich:dataTable>

           <rich:dataScroller for="dataTable"  maxPages="10" />

         

           </h:form>

      <table align="right">

         <h:commandButton value="向上"/>

      </table>

       

       

      ------------------------------------------end----------------------------------------------

       

       

       

      the only interact with database of the place  rich:dataTable:  use DataModel generated dynamic data.

       

      pressure test. use ab: 5,000 request, 400 concurrency.

       

      i hope to achieve 2,000 concurrency

      how to optimize performance?

      tks