Author: smukhina
Date: 2007-07-13 08:28:37 -0400 (Fri, 13 Jul 2007)
New Revision: 1617
Modified:
trunk/docs/ajaxguide/en/src/main/docbook/included/commandButton.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/commandLink.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/form.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/htmlCommandLink.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/include.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/jsFunction.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/loadScript.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/loadStyle.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/log.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/mediaOutput.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/outputPanel.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/page.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/poll.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/region.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/repeat.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/status.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/support.xml
Log:
http://jira.jboss.com/jira/browse/AJSF-101
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/commandButton.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/commandButton.xml 2007-07-13
10:10:16 UTC (rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/commandButton.xml 2007-07-13
12:28:37 UTC (rev 1617)
@@ -37,6 +37,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlAjaxCommandButton;
...
HtmlAjaxCommandButton myButton = new HtmlAjaxCommandButton();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/commandLink.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/commandLink.xml 2007-07-13 10:10:16
UTC (rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/commandLink.xml 2007-07-13 12:28:37
UTC (rev 1617)
@@ -41,6 +41,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlAjaxCommandLink;
...
HtmlAjaxCommandLink myLink = new HtmlAjaxCommandLink();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/form.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/form.xml 2007-07-13 10:10:16 UTC
(rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/form.xml 2007-07-13 12:28:37 UTC
(rev 1617)
@@ -41,6 +41,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.AjaxForm;
...
AjaxForm myForm = new AjaxForm();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/htmlCommandLink.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/htmlCommandLink.xml 2007-07-13
10:10:16 UTC (rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/htmlCommandLink.xml 2007-07-13
12:28:37 UTC (rev 1617)
@@ -34,11 +34,19 @@
<section>
<title>Creating on a page</title>
<para>Component definition on a page is the same as for the original component
from the JSF HTML library.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[<a4j:htmlCommandLink
value="value" action="action"/>
]]></programlisting>
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
javax.faces.component.html.HtmlCommandLink;
...
HtmlCommandLink myForm = new HtmlCommandLink();
@@ -50,6 +58,10 @@
<para>The difference with the original component is that all hidden fields
required for command links with the child <emphasis role="bold">
<property><f:param></property>
</emphasis> elements are always rendered and it doesn't depend on links
rendering on the initial page. It solves the problem with invalid links that
weren't rendered on a page immediately, but after some AJAX
request.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[<a4j:form>
...
<a4j:htmlComandLink action="action" value="link"
rendered="#{bean.rendered}">
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/include.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/include.xml 2007-07-13 10:10:16 UTC
(rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/include.xml 2007-07-13 12:28:37 UTC
(rev 1617)
@@ -34,17 +34,29 @@
<section>
<title>Creating on a page</title>
<para>To use the component, it's necessary to place the following
strings on a page:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[<h:panelGroup
id="wizard">
<a4j:include viewId="/pages/include/first.xhtml" />
</h:panelGroup>
]]></programlisting>
<para>For navigation inside a page defined in viewId any components responsible for
AJAX requests to the server generation are used.</para>
<para>For example, the following component on the page
"/pages/include/first.xhtml"</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<a4j:commandButton action="next" reRender="wizard"/>
...
]]></programlisting>
<para>And in faces-config it's defined:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[<navigation-rule>
<from-view-id>/pages/include/first.xhtml</from-view-id>
<navigation-case>
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/jsFunction.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/jsFunction.xml 2007-07-13 10:10:16
UTC (rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/jsFunction.xml 2007-07-13 12:28:37
UTC (rev 1617)
@@ -34,6 +34,10 @@
<section>
<title>Creating on a page</title>
<para>Simple component definition example:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<head>
<script>
@@ -51,6 +55,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlAjaxFunction;
...
HtmlAjaxFunction myFunction = new HtmlAjaxFunction();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/loadScript.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/loadScript.xml 2007-07-13 10:10:16
UTC (rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/loadScript.xml 2007-07-13 12:28:37
UTC (rev 1617)
@@ -33,11 +33,19 @@
<section>
<title>Creating on a page</title>
<para>Simple Component definition on a page:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[<a4j:loadScript
src="scripts/someScript.js"/>
]]></programlisting>
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlLoadScript;
...
HtmlLoadScript myScript = new HtmlLoadScript();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/loadStyle.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/loadStyle.xml 2007-07-13 10:10:16
UTC (rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/loadStyle.xml 2007-07-13 12:28:37
UTC (rev 1617)
@@ -33,11 +33,19 @@
<section>
<title>Creating on a page</title>
<para>Simple Component definition on a page:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[<a4j:loadStyle
src="styles/style.css"/>
]]></programlisting>
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlLoadStyle;
...
HtmlLoadScript myStyle = new HtmlLoadStyle();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/log.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/log.xml 2007-07-13 10:10:16 UTC (rev
1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/log.xml 2007-07-13 12:28:37 UTC (rev
1617)
@@ -38,6 +38,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.AjaxLog;
...
AjaxLog myLog = new AjaxLog();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/mediaOutput.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/mediaOutput.xml 2007-07-13 10:10:16
UTC (rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/mediaOutput.xml 2007-07-13 12:28:37
UTC (rev 1617)
@@ -34,6 +34,10 @@
<title>Creating on a page</title>
<para>To use the component it's necessary to define it on a page and
set Java methods for data keeping and data transmission to output stream. </para>
<para>Component definition on a page for graphical data output</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<a4j:mediaOutput element="img" cacheable="false"
session="true"
createContent="#{paintBean.paint}" value="#{paintData}"
@@ -41,6 +45,10 @@
...
]]></programlisting>
<para>Here is the content of paintData that is a bean containing output
data</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[package demo;
public class PaintData implements Serializable{
@@ -50,6 +58,10 @@
...
]]></programlisting>
<para>The Paint method of the paintBean class is a method transmitting graphical
data into output stream.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[public void paint(OutputStream
out, Object data) throws IOException{
<!--...Some code that puts binary data to "out" Stream-->
}
@@ -57,6 +69,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.MediaOutput;
...
MediaOutput myMedia = new MediaOutput ();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/outputPanel.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/outputPanel.xml 2007-07-13 10:10:16
UTC (rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/outputPanel.xml 2007-07-13 12:28:37
UTC (rev 1617)
@@ -38,6 +38,10 @@
<section>
<title>Creating on a page</title>
<para>Here is the simplest way for a component creation on a
page.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[<a4j:outputPanel>
<!--...Some Content Inside-->
</a4j:outputPanel>
@@ -45,6 +49,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlAjaxOutputPanel;
...
HtmlAjaxOutputPanel myPanel = new HtmlAjaxOutputPanel();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/page.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/page.xml 2007-07-13 10:10:16 UTC
(rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/page.xml 2007-07-13 12:28:37 UTC
(rev 1617)
@@ -46,6 +46,10 @@
</f:view>
]]></programlisting>
<para>This structure is rendered as:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[<HTML>
<HEAD>
<!--...Head Content here-->
@@ -57,6 +61,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.components.Page;
...
Page myPage = new Page();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/poll.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/poll.xml 2007-07-13 10:10:16 UTC
(rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/poll.xml 2007-07-13 12:28:37 UTC
(rev 1617)
@@ -34,6 +34,10 @@
<section>
<title>Creating on a page</title>
<para>To use this component it's necessary only to set an update
interval.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[<a4j:poll
interval="1000" reRender="someDataTable"
action="#{bean.action1}"/>
]]></programlisting>
<para>The <emphasis role="bold">
@@ -44,6 +48,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.AjaxPoll;
...
AjaxPoll myPoll = new AjaxPoll();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/region.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/region.xml 2007-07-13 10:10:16 UTC
(rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/region.xml 2007-07-13 12:28:37 UTC
(rev 1617)
@@ -40,6 +40,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlAjaxRegion;
...
HtmlAjaxRegion newRegion = new HtmlAjaxRegion();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/repeat.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/repeat.xml 2007-07-13 10:10:16 UTC
(rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/repeat.xml 2007-07-13 12:28:37 UTC
(rev 1617)
@@ -45,6 +45,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlAjaxRepeat;
...
HtmlAjaxRepeat repeater = new HtmlAjaxRepeat ();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/status.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/status.xml 2007-07-13 10:10:16 UTC
(rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/status.xml 2007-07-13 12:28:37 UTC
(rev 1617)
@@ -60,6 +60,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlAjaxStatus;
...
HtmlAjaxStatus myStatus = new HtmlAjaxStatus();
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/support.xml 2007-07-13 10:10:16 UTC
(rev 1616)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/support.xml 2007-07-13 12:28:37 UTC
(rev 1617)
@@ -49,6 +49,10 @@
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlAjaxSupport;
...
HtmlAjaxSupport mySupport = new HtmlAjaxSupport();>]]></programlisting>
@@ -63,6 +67,10 @@
</h:inputText>
]]></programlisting>
<para>Is decoded on the page as:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[
<input onkeyup="A4J.AJAX.Submit( Some request parameters )"/>
]]></programlisting>