开发者

prime faces' paginator doesn't work

开发者 https://www.devze.com 2023-02-21 05:23 出处:网络
I work with prime faces 2.2.1,firefox 4.0. The code below rendered a datatable with paginator. But the paginator doesn\'t work. If I delete the code ,it works. But they can\'t meet my requirement开发者

I work with prime faces 2.2.1,firefox 4.0. The code below rendered a datatable with paginator. But the paginator doesn't work. If I delete the code ,it works. But they can't meet my requirement开发者_C百科. So how can i work with the paginator without remove the multiple attribute?

<h:body>        
        <h:form id="dataList">                
                <p:dataTable id="originList" var="doModule" cache="true" lazy="false" paginator="true" rows="10" 
                paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                rowsPerPageTemplate="5,10,15" value="#{allTabManager.applyTab.applyDisplay.moduleList}"  paginatorPosition="bottom" > 
                        <p:column selectionMode="multiple" />
                        <p:column headerText="displayNo" >
                                <h:outputText value="#{doModule.ColIndex.value}" />
                        </p:column>
                </p:dataTable>
        </h:form>
</h:body>


I have forgotten the selection attribute with p:datatable.

<p:dataTable id="originList" var="doModule" cache="true" lazy="false" paginator="true" rows="10" 
                    paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                    rowsPerPageTemplate="5,10,15" value="#{allTabManager.applyTab.applyDisplay.moduleList}"  paginatorPosition="bottom"
                    selection="#{allTabManager.applyTab.applyDisplay.selections}" > 
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号