You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2019/12/13 11:07:01 UTC

[myfaces-tobago] branch master updated: Demo: example with many rows in sheet

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 05b74af  Demo: example with many rows in sheet
05b74af is described below

commit 05b74affab10701ef294a286caa4cba0f4795c8f
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Fri Dec 13 12:06:41 2019 +0100

    Demo: example with many rows in sheet
---
 .../java/org/apache/myfaces/tobago/example/demo/SheetController.java | 2 +-
 .../content/40-test/3000-sheet/20-1000-entries/1000_Entries.xhtml    | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SheetController.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SheetController.java
index 25a9758..46b529f 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SheetController.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SheetController.java
@@ -84,7 +84,7 @@ public class SheetController implements Serializable {
     solarList = astroData.findAll().collect(Collectors.toList());
 
     hugeSolarList = new ArrayList<>();
-    for (int i = 1; i <= 12; i++) {
+    for (int i = 1; i <= 1000; i++) {
       for (final SolarObject solarObject : solarList) {
         final SolarObject solarObjectClone = new SolarObject(solarObject);
         solarObjectClone.setName(solarObject.getName() + " (" + i + ". entry)");
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/3000-sheet/20-1000-entries/1000_Entries.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/3000-sheet/20-1000-entries/1000_Entries.xhtml
index b954b9b..e64270b 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/3000-sheet/20-1000-entries/1000_Entries.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/3000-sheet/20-1000-entries/1000_Entries.xhtml
@@ -17,13 +17,14 @@
  * limitations under the License.
 -->
 
-<ui:composition template="/main.xhtml"
+<ui:composition template="/plain.xhtml"
                 xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:tc="http://myfaces.apache.org/tobago/component"
                 xmlns:ui="http://java.sun.com/jsf/facelets">
 
   <tc:sheet value="#{sheetController.hugeSolarList}" id="sheet" var="luminary"
-            rows="10" markup="small" >
+            rows="1000" markup="small" >
+    <tc:style maxHeight="600px"/>
     <tc:column label="Name">
       <tc:out value="#{luminary.name}" labelLayout="skip"/>
     </tc:column>