Author: vkukharchuk
Date: 2007-05-03 04:35:14 -0400 (Thu, 03 May 2007)
New Revision: 159
Modified:
trunk/docs/userguide/en/included/commandButton.xml
trunk/docs/userguide/en/included/commandlink.xml
trunk/docs/userguide/en/included/form.xml
trunk/docs/userguide/en/included/jsFunction.xml
trunk/docs/userguide/en/modules/a4jUGfaq.xml
trunk/docs/userguide/en/modules/a4jUGstart.xml
trunk/docs/userguide/en/modules/a4jUGusingAJAX.xml
Log:
Modified: trunk/docs/userguide/en/included/commandButton.xml
===================================================================
--- trunk/docs/userguide/en/included/commandButton.xml 2007-05-02 17:40:09 UTC (rev 158)
+++ trunk/docs/userguide/en/included/commandButton.xml 2007-05-03 08:35:14 UTC (rev 159)
@@ -34,14 +34,14 @@
<section>
<title>Creating on a page</title>
<para><emphasis
role="bold"><property><a4j:commandButton></property></emphasis>
is used in the same way as <emphasis
role="bold"><property><h:commandButton></property></emphasis>,
but with definition of the area that is updated after the response comes back from the
server.</para>
- <programlisting role="XML"><![CDATA[<a4j:commandButton
reRender="someData" action="#bean.action1"
value="Link"/>]]></programlisting>
+ <programlisting role="XML"><![CDATA[<a4j:commandButton
reRender="someData" action="#{bean.action1}"
value="Link"/>]]></programlisting>
<para>This definition of the component provides a link, a click on the
link causes an AJAX form submit on the server, "action1" method
performance, and rendering of the component with "someData" id after the
response comes back from the server.</para>
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlAjaxCommandButton;
...
-HtmlAjaxCommandButton myButton = new org.ajax4jsf.ajax.html.HtmlAjaxCommandButton();
+HtmlAjaxCommandButton myButton = new HtmlAjaxCommandButton();
...
]]></programlisting>
</section>
Modified: trunk/docs/userguide/en/included/commandlink.xml
===================================================================
--- trunk/docs/userguide/en/included/commandlink.xml 2007-05-02 17:40:09 UTC (rev 158)
+++ trunk/docs/userguide/en/included/commandlink.xml 2007-05-03 08:35:14 UTC (rev 159)
@@ -34,7 +34,7 @@
<section>
<title>Creating on a page</title>
<para><emphasis
role="bold"><property><a4j:commandLink></property></emphasis>
is used in the same way as <emphasis
role="bold"><property><h:commandLink></property></emphasis>,
but with definition of the area that is updated after the response comes back from the
server.</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>
<para>This definition of the component provides a link, a click on the
link causes an AJAX form
submit on the server, "action1" method performance, and
rendering of the component
with "someData" id after the response comes back from the
server.</para>
@@ -43,7 +43,7 @@
<title>Dynamical creation of a component from Java code</title>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlAjaxCommandLink;
...
-HtmlAjaxCommandLink myLink = new org.ajax4jsf.ajax.html.HtmlAjaxCommandLink();
+HtmlAjaxCommandLink myLink = new HtmlAjaxCommandLink();
...
]]></programlisting>
</section>
Modified: trunk/docs/userguide/en/included/form.xml
===================================================================
--- trunk/docs/userguide/en/included/form.xml 2007-05-02 17:40:09 UTC (rev 158)
+++ trunk/docs/userguide/en/included/form.xml 2007-05-03 08:35:14 UTC (rev 159)
@@ -43,7 +43,7 @@
<title>Dynamical creation of a component from Java code</title>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.AjaxForm;
...
-AjaxForm myForm = new org.ajax4jsf.ajax.html.AjaxForm();
+AjaxForm myForm = new AjaxForm();
...
]]></programlisting>
</section>
Modified: trunk/docs/userguide/en/included/jsFunction.xml
===================================================================
--- trunk/docs/userguide/en/included/jsFunction.xml 2007-05-02 17:40:09 UTC (rev 158)
+++ trunk/docs/userguide/en/included/jsFunction.xml 2007-05-03 08:35:14 UTC (rev 159)
@@ -54,7 +54,7 @@
<title>Dynamical creation of a component from Java code</title>
<programlisting role="JAVA"><![CDATA[import
org.ajax4jsf.ajax.html.HtmlAjaxFunction;
...
-AjaxFunction myFunction = new org.ajax4jsf.ajax.html.HtmlAjaxFunction();
+AjaxFunction myFunction = new HtmlAjaxFunction();
...
]]></programlisting>
</section>
Modified: trunk/docs/userguide/en/modules/a4jUGfaq.xml
===================================================================
--- trunk/docs/userguide/en/modules/a4jUGfaq.xml 2007-05-02 17:40:09 UTC (rev 158)
+++ trunk/docs/userguide/en/modules/a4jUGfaq.xml 2007-05-03 08:35:14 UTC (rev 159)
@@ -263,7 +263,7 @@
<a4j:outputPanel id="panel">
<h:panelGroup rendered="#{bean.rendered}">
<!--Some nested content to be hidden/shown depending on bean.rendered -->
-</h:panelGroup>
+ </h:panelGroup>
</a4j:outputPanel>
...
<a4j:commandButton action=".." value=".."
reRender="panel"/>
Modified: trunk/docs/userguide/en/modules/a4jUGstart.xml
===================================================================
--- trunk/docs/userguide/en/modules/a4jUGstart.xml 2007-05-02 17:40:09 UTC (rev 158)
+++ trunk/docs/userguide/en/modules/a4jUGstart.xml 2007-05-03 08:35:14 UTC (rev 159)
@@ -103,7 +103,7 @@
<?dbhtml filename="JSPPage.html"?>
<title>JSP Page</title>
<para>Here is the necessary page (echo.jsp):</para>
- <programlisting role="JSP"> <![CDATA[<%@ taglib
uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
+ <programlisting role="JSP"> <![CDATA[
<%@ taglib
uri="https://ajax4jsf.dev.java.net/ajax"
prefix="a4j"%>
<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
@@ -148,16 +148,17 @@
<title>Data Bean</title>
<para>In order to build this application, you should create a managed
bean:</para>
<programlisting role="JAVA">package demo;
+
public class Bean {
-private String text;
-public Bean() {
-}
- public String getText() {
-return text;
-}
-public void setText(String text) {
-this.text = text;
-}
+ private String text;
+ public Bean() {
+ }
+ public String getText() {
+ return text;
+ }
+ public void setText(String text) {
+ this.text = text;
+ }
}</programlisting>
</section>
<section id="faces-config.xml">
Modified: trunk/docs/userguide/en/modules/a4jUGusingAJAX.xml
===================================================================
--- trunk/docs/userguide/en/modules/a4jUGusingAJAX.xml 2007-05-02 17:40:09 UTC (rev 158)
+++ trunk/docs/userguide/en/modules/a4jUGusingAJAX.xml 2007-05-03 08:35:14 UTC (rev 159)
@@ -168,8 +168,8 @@
<itemizedlist>
<listitem>
<emphasis role="italic">
- <property>"reRender attribute"</property>
- </emphasis> as it was mentioned before specifies components to be
reRendered
+ <property>"reRender"</property>
+ </emphasis>attribute as it was mentioned before specifies components to
be reRendered
after AJAX response. The attribute can be specified using EL expression and
formed dynamicaly on the
server side (see <ulink url="index.html#FAQ">FAQ
chapter</ulink>).
</listitem>
@@ -276,7 +276,7 @@
<para>To execute your own code on the client in case of an error during AJAX
request, it's necessary to redefine the standard "A4J.AJAX.onError "
method:</para>
<programlisting role="JAVA"><![CDATA[A4J.AJAX.onError =
function(req,status,message) {
// Custom Developer Code
- };]]></programlisting>
+};]]></programlisting>
<para>The function defined this way accepts as parameters:</para>
<itemizedlist>
<listitem>req - a params string of a request that calls an
error</listitem>