You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2026/05/18 09:41:32 UTC

(myfaces-tobago) branch main updated: fix(lazy-sheet): paging

This is an automated email from the ASF dual-hosted git repository.

henningn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/main by this push:
     new 406c4e8388 fix(lazy-sheet): paging
406c4e8388 is described below

commit 406c4e8388bd080a5c1f30bb0d06527e117d85b7
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Mon May 18 11:14:29 2026 +0200

    fix(lazy-sheet): paging
    
    Paging is no longer visible by default for lazy sheets, if using the (wrong) "rows" attribute instead of the (correct) "lazyRows" attribute.
    
    Issue: TOBAGO-2520
---
 .../org/apache/myfaces/tobago/internal/component/AbstractUISheet.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
index 75b1cad529..f1726a53a7 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
@@ -298,7 +298,7 @@ public boolean isPagingVisible() {
    * @return Is panging needed to display all rows? If the number of rows is unknown this method returns true.
    */
   public boolean needMoreThanOnePage() {
-    if (isRowsUnlimited()) {
+    if (isRowsUnlimited() || isLazy()) {
       return false;
     } else if (!hasRowCount()) {
       return true;