2012-04-23 19 views
1

我有一個○:數據表分頁功能。下面是代碼:OpenFaces數據表dataTablePaginator不能導航回到

enter code <o:dataTable id="table" value="#{Bean.vproduct}" var="product" pageSize="3"> 
    <f:facet name="header"> 
    <h:outputText value="Header" styleClass="title"/> 
    </f:facet> 
    <o:column> 
    <h:panelGrid columns="1"> 
     <h:outputText value="#{product.description}"/> 
    </h:panelGrid> 
    </o:column> 
    <f:facet name="below"> 
    <h:panelGroup id="panelGroup"> 
    <o:dataTablePaginator id="paginator"/> 
    </h:panelGroup> 
</f:facet> 

在最我有2個頁面,而不是更多,從第1頁導航到第2級的作品,但 當我第2頁,我不能naviagte上回到第一頁。

任何人都可以幫助我嗎?

+0

OK,只是想,我設定爲3〜1所述的pageSize屬性:的pageSize = 「1」。其結果是,這不只是我不能向後導航,無,導航只能一個時間的問題。我只能按下按鈕「盼着」一週時間,按一次表不瀏覽後。任何人的想法? – user1351937 2012-04-25 04:21:53

回答