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 2016/09/08 11:21:31 UTC

svn commit: r1759780 - in /myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-form: ./ sheet-in-form.xhtml

Author: lofwyr
Date: Thu Sep  8 11:21:30 2016
New Revision: 1759780

URL: http://svn.apache.org/viewvc?rev=1759780&view=rev
Log:
test code sub-forms with sheets

Added:
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-form/
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-form/sheet-in-form.xhtml
      - copied, changed from r1759773, myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/sheet.xhtml

Copied: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-form/sheet-in-form.xhtml (from r1759773, myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/sheet.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-form/sheet-in-form.xhtml?p2=myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-form/sheet-in-form.xhtml&p1=myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/sheet.xhtml&r1=1759773&r2=1759780&rev=1759780&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/sheet.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-form/sheet-in-form.xhtml Thu Sep  8 11:21:30 2016
@@ -21,46 +21,26 @@
                 xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:tc="http://myfaces.apache.org/tobago/component"
                 xmlns:ui="http://java.sun.com/jsf/facelets">
-  <ui:param name="title" value="#{overviewBundle.sheet} &lt;tc:sheet>"/>
-  <p>A <code class="language-markup">&lt;tc:sheet/></code> tag can contain any number of
-    <code class="language-markup">&lt;tc:column/></code> tags.
-    The <code class="language-markup">&lt;tc:column/></code> tag is a container, which may contain
-    outputfields, labels, progress bars or even tab groups.</p>
-  <p>Tag Library Documentation:
-    <tc:link label="&lt;tc:sheet/>" image="image/feather-leaf.png"
-             link="#{overviewBundle.tagDocUrl}/sheet.html"/>
-    |
-    <tc:link label="&lt;tc:column/>" image="image/feather-leaf.png"
-             link="#{overviewBundle.tagDocUrl}/column.html"/></p>
-
-  <tc:section label="Basics">
-    <p>Two attributes should be recognized in a sheet.
-      The data of the sheet is set in the <code>value</code> attribute.
-      The variablename of a single entry is set by the <code>var</code> attribute, which can be used in the
-      <code class="language-markup">&lt;tc:column/></code> tags.
-      In this example, also the <code>rows</code> attribute is set. So only four rows are shown at a time.</p>
-    <pre><code class="language-markup">&lt;tc:sheet value="\#{sheetController.solarList}"
-    var="solarobject" rows="4">
-  &lt;tc:column label="Name">
-    &lt;tc:out value="\#{solarobject.name}"/>
-      ...</code></pre>
-    <tc:sheet id="s1" value="#{sheetController.solarList}" var="object" rows="4">
-      <tc:style maxHeight="500px"/>
-      <tc:column label="Name">
-        <tc:out value="#{object.name}"/>
-      </tc:column>
-      <tc:column label="Orbit">
-        <tc:out value="#{object.orbit}"/>
-      </tc:column>
-      <tc:column label="Period (Days)">
-        <tc:out value="#{object.period}"/>
-      </tc:column>
-      <tc:column label="Discoverer">
-        <tc:out value="#{object.discoverer}"/>
-      </tc:column>
-      <tc:column label="Year">
-        <tc:out value="#{object.discoverYear}"/>
-      </tc:column>
-    </tc:sheet>
-  </tc:section>
+
+  <tc:in required="true" label="Required"/>
+
+  <tc:box id="box" label="Form">
+    <tc:form id="form">
+
+      <tc:sheet id="sheet" value="#{sheetController.solarList}" var="object" rows="5">
+        <tc:column label="Name">
+          <tc:button label="#{object.name}"/>
+        </tc:column>
+        <tc:column label="Orbit">
+          <tc:out value="#{object.orbit}"/>
+        </tc:column>
+      </tc:sheet>
+
+      <tc:button label="Submit"/>
+
+    </tc:form>
+  </tc:box>
+
+  <tc:button label="Submit"/>
+
 </ui:composition>