h:outputLink 和h:commandLink 的问题?

springwinder 2008-05-06
1.<h:outputLink value="total.html">
<h:outputText value="近两年"></h:outputText>
<f:param name="timeSpan" value="twoYear"></f:param>
</h:outputLink>


2.<h:commandLink value="近两年" action="#{action.reSort}">
<f:param name="timeSpan" value="twoYear"></f:param>
</h:commandLink>

这两种方式提交给后台后都是执行reSort方法,1.的访问时只需要5秒,而2却需要20秒,

为什么呢?


这是jsp页面,对从新排完序的displayList进行显示
<c:forEach items="#{action.displayList}" var="fund" varStatus="status">
rockjava 2008-05-07
我想问一下,你用第一种方式是怎么执行action.reSort方法的?
terryzhou 2008-05-07
可能把后缀都改成html
用的jsf1.2?jsf1.1中jstl有时候会失效.
另外你的jsf bean不是session的吧
kimmking 2008-05-18
第二种方法比第一种方法多做了两件事
1、执行了action方法
2、请求/响应多往返了一次