Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Primefaces分页器,如何显示';ViewAll';rowsPerPageTemplate中的选项_Primefaces_Pagination - Fatal编程技术网

Primefaces分页器,如何显示';ViewAll';rowsPerPageTemplate中的选项

Primefaces分页器,如何显示';ViewAll';rowsPerPageTemplate中的选项,primefaces,pagination,Primefaces,Pagination,在Primefaces paginator中,在rowsPerPageTemplate中,如何显示View All,这将加载页面中的所有数据。 下面的链接有一个解决方案,但它仅在页面加载时起作用。 当某个操作发生并更新数据表内容时,不再显示“全部视图”。 任何建议都很好。在更新表的操作之后,只需在您发布的链接中应用javascript即可。例如,通过类似于oncomplete=“addViewAll()”属性的方式 function addViewAll() { $('#form\\

在Primefaces paginator中,在rowsPerPageTemplate中,如何显示View All,这将加载页面中的所有数据。 下面的链接有一个解决方案,但它仅在页面加载时起作用。 当某个操作发生并更新数据表内容时,不再显示“全部视图”。


任何建议都很好。

在更新表的操作之后,只需在您发布的链接中应用javascript即可。例如,通过类似于
oncomplete=“addViewAll()”
属性的方式

function addViewAll() {
     $('#form\\:cars .ui-paginator-rpp-options.ui-widget.ui-state-default.ui-corner-left')
                .each(function() {
                    $(this).children().last().html('ALL');
                });
}