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/07/25 09:19:51 UTC
[myfaces-tobago] 02/03: demo
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
commit 744893d92a11e94e2c2603c078baeac3a5237247
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Thu Jul 25 11:18:56 2019 +0200
demo
---
.../java/org/apache/myfaces/tobago/example/demo/CategoryTree.java | 8 ++++----
.../080-sheet/20-selector/Sheet_Column_Selector.xhtml | 5 +++--
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/CategoryTree.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/CategoryTree.java
index d2f96c3..d233237 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/CategoryTree.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/CategoryTree.java
@@ -41,10 +41,10 @@ public class CategoryTree {
final DefaultMutableTreeNode science = createNode("Science", "science");
science.insert(createNode("Geography", "geography"), 0);
science.insert(createNode("Mathematics", "math"), 0);
- final DefaultMutableTreeNode astro = createNode("Astronomy", "astro");
- astro.insert(createNode("Education", "edu"), 0);
- astro.insert(createNode("Pictures", "pic"), 0);
- science.insert(astro, 2);
+ final DefaultMutableTreeNode astronomy = createNode("Astronomy", "astronomy");
+ astronomy.insert(createNode("Education", "edu"), 0);
+ astronomy.insert(createNode("Pictures", "pic"), 0);
+ science.insert(astronomy, 2);
tree.insert(science, 4);
return tree;
}
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/20-selector/Sheet_Column_Selector.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/20-selector/Sheet_Column_Selector.xhtml
index 39b5604..fda20df 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/20-selector/Sheet_Column_Selector.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/20-selector/Sheet_Column_Selector.xhtml
@@ -44,7 +44,7 @@
<tc:out value="\#{solarobject.name}"/>
</tc:column>
...</code></pre>
- <tc:sheet id="s4" value="#{sheetController.solarList}" var="object" rows="2"
+ <tc:sheet id="s4" value="#{sheetController.solarList}" var="object" rows="5"
selectable="#{sheetController.selectable}" state="#{sheetController.sheetState}">
<tc:columnSelector/>
<tc:column label="Name">
@@ -70,6 +70,7 @@
</tc:selectOneRadio>
<tc:button id="b1" label="Submit"/>
- <tc:out id="o1" label="Row Number" value="#{sheetController.sheetState.selectedRows}"/>
+ <tc:out id="o1" label="Row Number" value="#{sheetController.sheetState.selectedRows}"
+ tip="updated after submit"/>
</tc:section>
</ui:composition>