Primefaces:延迟加载的数据表的分页器按钮未显示

| 我以前使用过数据表分页,但它很有魅力。这次,我需要使用延迟加载的分页及其显示的第一页,并且没有分页器按钮。我已经尝试了很多东西,但是它只是不显示分页器按钮。如果我更改行数,则可以工作,即页面上的行数已更改,但paginaotor按钮未显示。如果我检查Chrome中的数据表,则表明thr是分页器底部的div
<div xmlns=\"http://www.w3.org/1999/xhtml\" id=\"j_idt7:contentTable_paginatorbottom\" class=\"ui-paginator ui-paginator-bottom ui-widget-header ui-corner-bl ui-corner-br\"></div>
这是我的数据表
<p:dataTable id=\"contentTable\" value=\"#{chatroomBean.lazyLoadedChatroomBeans}\"
               var=\"chatroom\" paginator=\"true\" paginatorPosition=\"bottom\" rows=\"10\" lazy=\"true\"
               paginatorTemplate=\" {PreviousPageLink} {CurrentPageReport} {NextPageLink} \"
                rendered=\"#{chatroomBean.chatroomSearchText!=null}\">
我正在使用jsf2,primefaces 2.2.1和Tomcat 6。 任何帮助的想法将不胜感激。谢谢 问候 奇扎尔     
已邀请:
我认为您已经遇到了这个错误。 从链接到论坛的讨论中:   这是一种解决方法。复制   在您的load-Methode中,   更新分页:      RequestContext上下文=   RequestContext.getCurrentInstance();   if(context!= null)context.addCallbackParam(\“ totalRecords \”,   一世);      变量i代表以下结果   投影查询。     
它已经很晚了,但是我只是看到了这个问题,我想起了我已经解决了这个问题,所以我想在这里留下一个答案,以防万一sum1遇到它。问题是主题,我正在使用cudnt查找按钮的图像,由于总和原因,我现在不记得了,我没有在主题中使用jar,我只是将theme.css添加到我的项目中,它开始工作...唯一的问题是theme.css中图像的链接就像   url(\“#{resource [\'primefaces-glass-x:images / default.png \']} \”)0 0 改变了这个   url(images / default.png)0 0 n它就像一种魅力... 另一种解决方案(可能更好)可能是在类路径中添加主题的jar并将主题添加到web.xml,但每个人都可能知道... :) 问候, 奇扎尔     

要回复问题请先登录注册