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/09/20 09:06:10 UTC

(myfaces-tobago) branch main updated: docs(sheet): lazy-rows

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 54660399e9 docs(sheet): lazy-rows
54660399e9 is described below

commit 54660399e91fa7ef50ea50ba3ecb77afea36d723
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Thu Sep 17 14:50:32 2026 +0200

    docs(sheet): lazy-rows
    
    Better description for lazy-rows.
---
 .../tobago/internal/taglib/component/SheetTagDeclaration.java | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/SheetTagDeclaration.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/SheetTagDeclaration.java
index d49a528e1c..315a1cfbc3 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/SheetTagDeclaration.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/SheetTagDeclaration.java
@@ -19,7 +19,6 @@
 
 package org.apache.myfaces.tobago.internal.taglib.component;
 
-import jakarta.faces.component.UIData;
 import org.apache.myfaces.tobago.apt.annotation.Behavior;
 import org.apache.myfaces.tobago.apt.annotation.BodyContentDescription;
 import org.apache.myfaces.tobago.apt.annotation.DynamicExpression;
@@ -41,6 +40,8 @@
 import org.apache.myfaces.tobago.layout.ShowPosition;
 import org.apache.myfaces.tobago.model.Selectable;
 
+import jakarta.faces.component.UIData;
+
 /**
  * Render a sheet element.
  */
@@ -294,8 +295,12 @@ public interface SheetTagDeclaration
   void setLazy(String lazy);
 
   /**
-   * Indicate how many rows must be loaded when lazy loading is enabled and how many rows are loaded at once.
-   * Default is 50.
+   * <p>Indicate the number of rows that are guaranteed to be loaded (including visible rows) and the number of rows
+   * which are loaded in one batch.</p>
+   * <p>For example, if 12 rows are visible and lazy-rows=20, then all 12 rows are loaded plus the remaining 8 which are
+   * added before and after the visible rows equally.
+   * If a new batch of rows must be loaded, it will contain 20 rows.</p>
+   * <p>Default is 50.</p>
    */
   @TagAttribute
   @UIComponentTagAttribute(type = "java.lang.Integer", defaultValue = "50")