Author: vsukhov
Date: 2008-03-18 15:09:04 -0400 (Tue, 18 Mar 2008)
New Revision: 6932
Added:
trunk/docs/userguide/en/src/main/resources/images/fileUpload10.png
trunk/docs/userguide/en/src/main/resources/images/fileUpload9.png
Modified:
trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
Log:
http://jira.jboss.com/jira/browse/RF-1207 added screenshots, corrected mistakes in details
of usage
Modified: trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-03-18 18:51:48
UTC (rev 6931)
+++ trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-03-18 19:09:04
UTC (rev 6932)
@@ -85,13 +85,15 @@
</itemizedlist>
</para>
- <!-- attributes of component orderingList -->
-
+
+ <!--para><emphasis>
+ <property> "uploadData"</property>
+ </emphasis> attribute shows the collection of files uploaded. With the help
of this attribute you can define the place to upload data.</para-->
<para>
The <emphasis>
<property> "disabled"</property>
</emphasis>
- attribute is used to disable all elements of the component. All the controls
should be disabled too. </para>
+ attribute is used to disable all elements of the component. All the controls
disables too. </para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -113,7 +115,7 @@
</figure>
<para>The <emphasis>
- <property>
"acceptedTypes"</property></emphasis> attribute is used to
define file types which should be accepted to upload.
+ <property>
"acceptedTypes"</property></emphasis> attribute is used to
define file types which are accepted to upload.
</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -121,7 +123,7 @@
<programlisting role="XML"><![CDATA[...
<rich:fileUpload uploadData="#{bean.data}"
acceptedTypes="html"/>
...]]></programlisting>
- <para>As it could be seen in the example below, only files with
"html" extension should be accepted to upload.</para>
+ <para>As it could be seen in the example above, only files with
"html" extension are accepted to upload.</para>
<para>The <emphasis>
<property>
"autoclear"</property></emphasis> attribute is used to
remove automatically files from list after upload completed.</para>
@@ -133,11 +135,11 @@
<rich:fileUpload uploadData="#{bean.data}"
addControlLabel="myLabel" autoclear="true"
acceptedTypes="html"/>
...]]></programlisting>
- <para>As it could be seen in the example below, files removes from list
after upload completed.</para>
+ <para>As it could be seen in the example above, files removes from list
after upload completed.</para>
<para>The <emphasis>
<property>
"maxFilesQuantity"</property></emphasis> defines max number
of files allowed for upload.
- After number of files in the list is equals to this attribute – add button
should be disabled.
- Add button should not be enabled before upload of the whole list done.
+ After number of files in the list is equals to this attribute – add button is
disabled.
+ The add button is not available until all list items are uploaded.
</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -159,7 +161,7 @@
</imageobject>
</mediaobject>
</figure>
- <para>As it could be seen in the picture below, only 2 files allows for
upload.</para>
+ <para>As it could be seen in the picture above, only 2 files allows for
upload.</para>
<para>The <emphasis>
<property>
"fileUploadedListener"</property></emphasis> is
called at server side after every file uploaded and used for the file saving
by end developer.
@@ -179,9 +181,15 @@
<property>
"onuploadcanceled"</property></emphasis> is called after
upload was canceled via cancel control. The <emphasis>
<property>
"onerror"</property></emphasis> is if the file upload was
interrupted according to any errors.</para>
<para>
- There is a number of facets that define entry customization. Markup should be
provided using <emphasis>
- <property>
"entry"</property></emphasis> facet. <emphasis>
- <property>
"label"</property></emphasis> facet could be used to provide
displaying the progress of uploading.
+ There are a number of facets providing for this component:
+ <emphasis>
+ <property>
"header"</property></emphasis>
+
+ <emphasis>
+ <property>
"footer"</property></emphasis>
+ <emphasis>
+ <property>
"label"</property></emphasis>. <emphasis>
+ <property>
"label"</property></emphasis> facet could be used to provide
displaying the progress of uploading.
</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -207,7 +215,7 @@
</imageobject>
</mediaobject>
</figure>
- <para>As it could be seen in the picture below, the label displays under
the item.</para>
+ <para>As it could be seen in the picture above, the label displays under
the item.</para>
<para>Labels of <property>component controls</property> can be
defined with <emphasis>
<property>
"addControlLabel"</property></emphasis>, <emphasis>
<property>
"clearAllControlLabel"</property></emphasis>,
<emphasis>
@@ -227,7 +235,13 @@
</itemizedlist>
</para>
- <para>The <emphasis
role="bold"><property><rich:fileUpload></property></emphasis>
component allows to use internationalization method to redefine and localize the labels.
You could use application resource bundle and define RICH_FILE_UPLOAD_CANCEL_LABEL,
RICH_FILE_UPLOAD_STOP_LABEL, RICH_FILE_UPLOAD_ADD_LABEL, RICH_FILE_UPLOAD_UPLOAD_LABEL,
RICH_FILE_UPLOAD_CLEAR_LABEL, RICH_FILE_UPLOAD_CLEAR_ALL_LABEL,
RICH_FILE_UPLOAD_PROGRESS_LABEL, RICH_FILE_UPLOAD_SIZE_ERROR_LABLE,
RICH_FILE_UPLOAD_TRANSFER_ERROR_LABLE, RICH_FILE_UPLOAD_ENTRY_STOP_LABEL,
RICH_FILE_UPLOAD_ENTRY_CLEAR_LABEL, RICH_FILE_UPLOAD_ENTRY_CANCEL_LABEL
there.</para>
+ <para>The <emphasis
role="bold"><property><rich:fileUpload></property></emphasis>
+ component allows to use internationalization method to redefine and localize
the labels. You could use application
+ resource bundle and define <property>RICH_FILE_UPLOAD_CANCEL_LABEL,
RICH_FILE_UPLOAD_STOP_LABEL,
+ RICH_FILE_UPLOAD_ADD_LABEL, RICH_FILE_UPLOAD_UPLOAD_LABEL,
RICH_FILE_UPLOAD_CLEAR_LABEL,
+ RICH_FILE_UPLOAD_CLEAR_ALL_LABEL, RICH_FILE_UPLOAD_PROGRESS_LABEL,
RICH_FILE_UPLOAD_SIZE_ERROR_LABLE,
+ RICH_FILE_UPLOAD_TRANSFER_ERROR_LABLE, RICH_FILE_UPLOAD_ENTRY_STOP_LABEL,
RICH_FILE_UPLOAD_ENTRY_CLEAR_LABEL,
+ RICH_FILE_UPLOAD_ENTRY_CANCEL_LABEL</property>
there.</para>
<!-- ordering control set>
Added: trunk/docs/userguide/en/src/main/resources/images/fileUpload10.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/fileUpload10.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/fileUpload9.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/fileUpload9.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream