You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/06/30 08:13:01 UTC
svn commit: r789569 - in /incubator/click/trunk/click/examples:
src/org/apache/click/examples/page/control/FileUpload.java
webapp/control/file-upload.htm
Author: sabob
Date: Tue Jun 30 06:13:01 2009
New Revision: 789569
URL: http://svn.apache.org/viewvc?rev=789569&view=rev
Log:
removed required fields
Modified:
incubator/click/trunk/click/examples/src/org/apache/click/examples/page/control/FileUpload.java
incubator/click/trunk/click/examples/webapp/control/file-upload.htm
Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/control/FileUpload.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/control/FileUpload.java?rev=789569&r1=789568&r2=789569&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/control/FileUpload.java (original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/control/FileUpload.java Tue Jun 30 06:13:01 2009
@@ -50,22 +50,18 @@
form.add(fieldSet1);
fileField1 = new FileField("selectFile1", "Select File 1", 40);
- fileField1.setRequired(true);
fieldSet1.add(fileField1);
descField1 = new TextField("description1", "File Description 1", 30);
- descField1.setRequired(true);
fieldSet1.add(descField1);
FieldSet fieldSet2 = new FieldSet("upload2", "<b>Upload File 2</b>");
form.add(fieldSet2);
fileField2 = new FileField("selectFile2", "Select File 2", 40);
- fileField2.setRequired(true);
fieldSet2.add(fileField2);
descField2 = new TextField("description2", "File Description 2", 30);
- descField2.setRequired(true);
fieldSet2.add(descField2);
form.add(new Submit("ok", " OK ", this, "onOkClick"));
Modified: incubator/click/trunk/click/examples/webapp/control/file-upload.htm
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/webapp/control/file-upload.htm?rev=789569&r1=789568&r2=789569&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/webapp/control/file-upload.htm (original)
+++ incubator/click/trunk/click/examples/webapp/control/file-upload.htm Tue Jun 30 06:13:01 2009
@@ -21,8 +21,8 @@
td.fields { padding-top: 0.75em; }
</style>
-Demonstration of file upload <tt>FileField</tt> control. Please select a
-file to upload:
+Demonstration of file upload <tt>FileField</tt> control. Please select one
+or more files to upload:
<p/>
$form
@@ -30,7 +30,7 @@
<p> </p>
#if ($fileItem1)
-<table border="1" cellspacing="0" cellpadding="6" style="margin-left:1em;empty-cells:show;">
+<table border="1" cellspacing="0" cellpadding="6" style="margin-left:1em;empty-cells:show;width:300px">
<tr>
<td colspan="2"><span style="font-size:110%; color:green"><b>File Upload 1 Result</b></span></td>
</tr>
@@ -52,7 +52,7 @@
<p/><p/>
#if ($fileItem2)
-<table border="1" cellspacing="0" cellpadding="6" style="margin-left:1em;empty-cells:show;">
+<table border="1" cellspacing="0" cellpadding="6" style="margin-left:1em;empty-cells:show;width:300px">
<tr>
<td colspan="2"><span style="font-size:110%; color:green"><b>File Upload 2 Result</b></span></td>
</tr>