Author: cluts
Date: 2008-03-11 13:23:40 -0400 (Tue, 11 Mar 2008)
New Revision: 6714
Modified:
trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
Log:
RF-926 - corrected code for a4j:commandLink
Modified: trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2008-03-11 17:22:10
UTC (rev 6713)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2008-03-11 17:23:40
UTC (rev 6714)
@@ -37,7 +37,9 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[<a4j:commandLink
reRender="someData" action="#{bean.action1}"
value="Link"/>]]></programlisting>
+ <programlisting role="XML"><![CDATA[...
+ <a4j:commandLink reRender="someData" action="#{bean.action1}"
value="Link"/>
+...]]></programlisting>
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
@@ -58,13 +60,11 @@
submit on the server, <property>action1</property> method
performance, and rendering of the component
with <property>someData</property> id after the response comes back
from the server.</para>
<para>The component <emphasis
role="bold"><property><a4j:commandLink></property></emphasis>
placed on a page generates the following HTML code:</para>
- <programlisting role="XML"><![CDATA[<a href="#"
onclick="A4J.AJAX.Submit(?"request parameters");
- return
- <a href="#" onclick="A4J.AJAX.Submit(?"request
parameters");
- return false;">
- <span style="color: black;">Link Value</span>
- </a>
-]]></programlisting>
+ <programlisting role="XML"><![CDATA[...
+<a href="#" onclick="A4J.AJAX.Submit(?"request parameters");
return false;">
+ <span>Link Value</span>
+</a>
+...]]></programlisting>
<para>Hence, the utility method
<property>A4J.AJAX.Submit</property> is called on a click, the method performs
Ajax request as the <emphasis
role="bold"><property><a4j:support></property></emphasis>
component</para>
<note>
<title>Note:</title>
Show replies by date