您好我们正在使用数据表和丰富的组合框和选项卡面板的各种组合。渲染花费的时间太长了。我是否从stackoverflow和其他网站上做了性能调优建议
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadStyleStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
<param-value>NEKO</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.xmlparser.NEKO</param-name>
<param-value>.*\..*</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.responseBufferSize</param-name>
<param-value>500000</param-value>
</context-param>
<context-param>
<param-name>facelets.BUFFER_SIZE</param-name>
<param-value>500000</param-value>
</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<init-param>
<param-name>forceparser</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>enable-cache</param-name>
<param-value>true</param-value>
</init-param>
</filter>
任何帮助将不胜感激......
答案 0 :(得分:0)
你的吸气剂中有任何逻辑吗?由于这些将被多次调用,所以将所有逻辑移动到被调用一次的方法中。
答案 1 :(得分:0)
请注意,默认情况下,richfaces组件使用基于JavaScript的客户端分页,因此当您加载页面时,将读取所有数据。也许最初你的页面会显示很多数据(表格,组合,标签)?
尝试通过创建server side paging来提高效果。