JSF - 使用Tomahawk的分页实现

我正在尝试使用Tomahawk在JSF中实现分页。加载页面时,第一页中的表将填充数据。但是,当我点击Next或Prev时,表格为空。我在浏览器中看不到任何javascript错误。以下是jsp的代码。如果我遗失了什么,请告诉我:
<t:dataTable id="tableid" value="#{SiteSearchCriteria.siteList}"
        var="item" border="1" rows="5" rowIndexVar="rowIndex"
        rowClasses="trobg1,trobg2">
        <h:column>
            <f:facet name="header">
                <h:outputText value="siteName"></h:outputText>
            </f:facet>
            <h:outputLabel value="#{item.siteName}"></h:outputLabel>
        </h:column>

        <h:column>
            <f:facet name="header">
                <h:outputText value="siteCLLI"></h:outputText>
            </f:facet>
            <h:outputLabel value="#{item.siteCLLI}"></h:outputLabel>
        </h:column>
</t:dataTable>

<t:dataScroller id="dataScrollerId" for="tableid" fastStep="10"
        pageIndexVar="pageIndex" renderFacetsIfSinglePage="true"
        pageCountVar="pageCount" paginator="true" paginatorMaxPages="9"
        immediate="true">
        <f:facet name="first">
            <t:outputText value="First"></t:outputText>
        </f:facet>
        <f:facet name="last">
            <t:outputText value="Last"></t:outputText>
        </f:facet>
        <f:facet name="previous">
            <t:outputText value="Previous"></t:outputText>
        </f:facet>
        <f:facet name="next">
            <t:outputText value="Next"></t:outputText>
        </f:facet>
</t:dataScroller>    
    
已邀请:
我正在使用的支持bean位于“请求”范围内。因此,当我点击“下一步”时,数据不可见。将支持bean的范围更改为“Session”,事情开始起作用。     

要回复问题请先登录注册