Author: artdaw
Date: 2008-04-15 14:05:21 -0400 (Tue, 15 Apr 2008)
New Revision: 7848
Modified:
trunk/docs/userguide/en/src/main/docbook/included/fileUpload.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
Log:
http://jira.jboss.com/jira/browse/RF-1207 - Details of Usage changed according to doc
file
Modified: trunk/docs/userguide/en/src/main/docbook/included/fileUpload.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/fileUpload.desc.xml 2008-04-15
18:04:57 UTC (rev 7847)
+++ trunk/docs/userguide/en/src/main/docbook/included/fileUpload.desc.xml 2008-04-15
18:05:21 UTC (rev 7848)
@@ -28,13 +28,13 @@
<title>Key Features</title>
<itemizedlist>
<listitem><para>ProgressBar shows the status of
downloads</para></listitem>
- <listitem><para>Highly customizable look and
feel</para></listitem>
<listitem><para>File types, file sizes and files count
restrictions</para></listitem>
<listitem><para>Multiple files upload
support</para></listitem>
<listitem><para>Possibility to cancel the
request</para></listitem>
<listitem><para>One request for every
upload</para></listitem>
<listitem><para>Automatic uploads</para></listitem>
<listitem><para>Supports standard JSF
internationalization</para></listitem>
+ <listitem><para>Highly customizable look and
feel</para></listitem>
<listitem><para>Disablement support</para></listitem>
</itemizedlist>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-04-15 18:04:57
UTC (rev 7847)
+++ trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-04-15 18:05:21
UTC (rev 7848)
@@ -357,16 +357,13 @@
</imageobject>
</mediaobject>
</figure>
- <para>It's possible to program events for fileUpload from JavaScript
code. A simplest example of usage JavaScript API is placed below:</para>
+ <para>It's possible to handle events for fileUpload from JavaScript
code. A simplest example of usage JavaScript API is placed below:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:fileUpload ... id="upload">
- ...
- </rich:fileUpload>
- ...
-<h:commandButton value="Click me"
onclick="#{rich:component('upload')}.enable(event)"/>
+<rich:fileUpload id="upload" disabled="false"/>
+<h:commandButton onclick="${rich:component('upload')}.disable(event);
return false;" value="Disable" />
...]]></programlisting>
<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