Author: cluts
Date: 2008-04-11 05:21:26 -0400 (Fri, 11 Apr 2008)
New Revision: 7750
Modified:
trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
Log:
RF-925 - Done for comboBox, contextMenu, fileUpload (JavaScript API)
Modified: trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-04-11 01:19:44 UTC
(rev 7749)
+++ trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-04-11 09:21:26 UTC
(rev 7750)
@@ -234,6 +234,17 @@
</listitem>
</itemizedlist>
</para>
+ <para>It's possible to program events for comboBox 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:comboBox defaultLabel="Enter some value"
id="comboBoxID">
+ ...
+ </rich:comboBox>
+...
+<h:commandButton value="Enable"
onclick="#{rich:component('comboBoxID')}.enable(event)"/>
+...]]></programlisting>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-04-11 01:19:44
UTC (rev 7749)
+++ trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-04-11 09:21:26
UTC (rev 7750)
@@ -297,8 +297,18 @@
<property></h:form></property>
</emphasis> tags.</para></note>
+ <para>It's possible to program events for contextMenu 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:contextMenu ... id="cmID">
+ ...
+ </rich:contextMenu>
+ ...
+<h:commandButton value="Show"
onclick="#{rich:component('cmID')}.show(event)"/>
+...]]></programlisting>
-
<!-- Will be done for latest version -->
<!--para> It's possible to define the direction for list appear in
the <emphasis>
<property>"direction"</property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-04-11 01:19:44
UTC (rev 7749)
+++ trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-04-11 09:21:26
UTC (rev 7750)
@@ -357,7 +357,17 @@
</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>
+ <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)"/>
+...]]></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
<property>RICH_FILE_UPLOAD_CANCEL_LABEL</property>,