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/03/17 12:00:35 UTC

svn commit: r1735404 - /myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml

Author: lofwyr
Date: Thu Mar 17 11:00:35 2016
New Revision: 1735404

URL: http://svn.apache.org/viewvc?rev=1735404&view=rev
Log:
TOBAGO-1544: Revise Demo Application for Tobago 3.0

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml?rev=1735404&r1=1735403&r2=1735404&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml Thu Mar 17 11:00:35 2016
@@ -27,11 +27,17 @@
 
     <tc:section label="Basics">
 
-      The first example loads up an arbitrary file. The second example contains a <code>&lt;tc:validateFileItem></code>
-      tag with restrict the content type.
+      <p>
+        The first example loads up an arbitrary file.
+      </p>
 
       <tc:file label="Upload file:" value="#{upload.file1}" tip="without extra validation" id="file1"/>
 
+      <p>
+        The second example contains a <code>&lt;tc:validateFileItem></code>
+        tag with restrict the content type.
+      </p>
+
       <tc:file label="Upload image:" value="#{upload.file2}" id="file2"
                tip="with a validator for file items - types: gif, jpg, png">
         <tc:validateFileItem contentType="image/*"/>
@@ -80,21 +86,19 @@
 
     </tc:section>
 
-    <tc:sheet id="sheet" var="entry" value="#{upload.list}" columns="*;*;*">
-
-      <tc:column label="Name">
-        <tc:out value="#{entry.name}"/>
-      </tc:column>
-
-      <tc:column label="Type">
-        <tc:out value="#{entry.type}"/>
-      </tc:column>
-
-      <tc:column label="Size">
-        <tc:out value="#{entry.size}"/>
-      </tc:column>
-
-    </tc:sheet>
+    <tc:section label="List of Uploaded Files">
+      <tc:sheet id="sheet" var="entry" value="#{upload.list}" columns="*;*;*">
+        <tc:column label="Name">
+          <tc:out value="#{entry.name}"/>
+        </tc:column>
+        <tc:column label="Type">
+          <tc:out value="#{entry.type}"/>
+        </tc:column>
+        <tc:column label="Size">
+          <tc:out value="#{entry.size}"/>
+        </tc:column>
+      </tc:sheet>
+    </tc:section>
 
   </tc:panel>
 </ui:composition>