JBoss Ajax4JSF SVN: r294 - in trunk/docs/userguide/en/src/main/docbook: modules and 1 other directory.
by ajax4jsf-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-06-29 12:03:59 -0400 (Fri, 29 Jun 2007)
New Revision: 294
Modified:
trunk/docs/userguide/en/src/main/docbook/included/include.xml
trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/poll.xml
trunk/docs/userguide/en/src/main/docbook/included/support.xml
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGfaq.xml
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGstart.xml
Log:
fixed errors with links and language errors
Modified: trunk/docs/userguide/en/src/main/docbook/included/include.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/include.xml 2007-06-28 19:08:48 UTC (rev 293)
+++ trunk/docs/userguide/en/src/main/docbook/included/include.xml 2007-06-29 16:03:59 UTC (rev 294)
@@ -80,7 +80,7 @@
</emphasis> AJAX submit is performed with navigation of the whole page and not only of the current view.
</para>
<para>
-Some additional information you can find here: <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104158">Ajax4Jsf Users Forum.</ulink>
+Some additional information can be found on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104158">Ajax4Jsf Users Forum.</ulink>
</para>
</section>
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml 2007-06-28 19:08:48 UTC (rev 293)
+++ trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml 2007-06-29 16:03:59 UTC (rev 294)
@@ -119,7 +119,7 @@
<property><a4j:region></property>
</emphasis> and could help considerably speed up a response output. However, if a transient flag is kept as it is, this rapid processing could cause missing of transient components that present on view and don’t come into a component tree. Hence, for any particular case you could choose a way for you application optimization: speed up processing or redundant memory for keeping tree part earlier defined a transient. </para>
<para>
-Some additional information about usage of component you can find <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052203#...">here</ulink>.
+Some additional information about usage of component can be found <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052203#...">here</ulink>.
</para>
</section>
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/poll.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-06-28 19:08:48 UTC (rev 293)
+++ trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-06-29 16:03:59 UTC (rev 294)
@@ -64,9 +64,9 @@
<para>As any Ajax4jsf Action component, <emphasis role="bold">
<property><a4j:poll></property>
</emphasis> has all described in the <emphasis role="bold">
- <property><ulink url="ch06s05.html"><a4j:support></ulink></property>
+ <property><ulink url="index.html#support"><a4j:support></ulink></property>
</emphasis> chapter attributes to provide the necessary behavior of request sending (delay, limitation of a submit and render area, requests frequency, and etc.). For detailed information on these attributes see again the <emphasis role="bold">
- <property><ulink url="ch06s05.html"><a4j:support></ulink></property></emphasis> component description.
+ <property><ulink url="index.html#support"><a4j:support></ulink></property></emphasis> component description.
</para>
<para>
The aditional information about component usage you can find here:<ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=103909">Ajax4Jsf Users Forum.
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-06-28 19:08:48 UTC (rev 293)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-06-29 16:03:59 UTC (rev 294)
@@ -137,7 +137,7 @@
</h:inputText>
<h:outputText value="#{person.name}" id="test"/>
</form>]]></programlisting>
- <para>This example clearly shows mentioned above attributes. If quick typing in a text field happens, every next requests sending is delayed for a second and requests quantity is reduced. The requests are kept in the queue "myQueue" till its the sending.
+ <para>This example clearly shows mentioned <ulink url="index.html#support">above</ulink> attributes. If quick typing in a text field happens, every next requests sending is delayed for a second and requests quantity is reduced. The requests are kept in the queue "myQueue" till its the sending.
Moreover, if the next request is already sent, the rerendering after the previous request is banned, and
it helps to avoid unnecessary processing on the client.</para>
</listitem>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGfaq.xml 2007-06-28 19:08:48 UTC (rev 293)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGfaq.xml 2007-06-29 16:03:59 UTC (rev 294)
@@ -220,7 +220,7 @@
<property>"IgnoreDupResponses"</property>
</emphasis> attribute appeared from 1.0.4 RC1 version and is used on the client for
response ignoring after an AJAX request if a newer request has been already sent. <para>
- The additional information could be found on the<ulink
+ The additional information could be found <ulink
url="http://jboss.com/index.html?module=bb&op=viewtopic&t=105766"
>here</ulink>. </para>
<emphasis role="italic">
@@ -282,7 +282,7 @@
<emphasis role="bold"><a4j:region></emphasis> can't work inside
iteration components like <emphasis role="bold"><h:dataTable></emphasis>
and <emphasis role="bold"><a4j:repeat></emphasis>. </para>
- <para>The details could be found on the <ulink
+ <para>The details could be found <ulink
url="http://jboss.com/index.html?module=bb&op=viewtopic&t=109080"
>here. </ulink>
</para>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGstart.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGstart.xml 2007-06-28 19:08:48 UTC (rev 293)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGstart.xml 2007-06-29 16:03:59 UTC (rev 294)
@@ -191,7 +191,7 @@
<section id="Web.xml">
<?dbhtml filename="Web.xml.html"?>
<title>Web.xml</title>
- <para>It is also necessary to add jar files (see <ulink url="GettingStartedWithAjax4jsf.html#Installation">installation chapter</ulink>) and modify the "web.xml" file:
+ <para>It is also necessary to add jar files (see <ulink url="index.html#Installation">installation chapter</ulink>) and modify the "web.xml" file:
</para>
<programlisting role="XML"> <![CDATA[<?xml version="1.0"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
17 years, 6 months
JBoss Ajax4JSF SVN: r293 - tags.
by ajax4jsf-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-06-28 15:08:48 -0400 (Thu, 28 Jun 2007)
New Revision: 293
Added:
tags/1.1.2-SNAPSHOT/
Log:
Mark refactoring start
Copied: tags/1.1.2-SNAPSHOT (from rev 292, trunk)
17 years, 6 months
JBoss Ajax4JSF SVN: r292 - trunk/samples/ajaxPortlet/src/main/webapp/META-INF.
by ajax4jsf-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-06-28 14:56:15 -0400 (Thu, 28 Jun 2007)
New Revision: 292
Modified:
trunk/samples/ajaxPortlet/src/main/webapp/META-INF/MANIFEST.MF
Log:
Modified: trunk/samples/ajaxPortlet/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/samples/ajaxPortlet/src/main/webapp/META-INF/MANIFEST.MF 2007-06-28 14:19:13 UTC (rev 291)
+++ trunk/samples/ajaxPortlet/src/main/webapp/META-INF/MANIFEST.MF 2007-06-28 18:56:15 UTC (rev 292)
@@ -1,3 +1,2 @@
Manifest-Version: 1.0
-Class-Path:
17 years, 6 months
JBoss Ajax4JSF SVN: r291 - trunk/docs/userguide/en/src/main/docbook/modules.
by ajax4jsf-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-06-28 10:19:13 -0400 (Thu, 28 Jun 2007)
New Revision: 291
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGfaq.xml
Log:
Create meaningful questions from subtitles in FAQ chapter
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGfaq.xml 2007-06-28 11:34:21 UTC (rev 290)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGfaq.xml 2007-06-28 14:19:13 UTC (rev 291)
@@ -1,188 +1,169 @@
<?xml version='1.0' encoding='UTF-8'?>
<section id="FAQ" xreflabel="FAQ">
- <?dbhtml filename="FAQ.html"?>
- <sectioninfo>
- <keywordset>
- <keyword>RENDER_RESPONSE</keyword>
+ <?dbhtml filename="FAQ.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>RENDER_RESPONSE</keyword>
- <keyword>onComplete</keyword>
+ <keyword>onComplete</keyword>
- <keyword>keepAlive</keyword>
- <keyword>requestDelay</keyword>
- </keywordset>
- </sectioninfo>
- <title>FAQ</title>
- <section id="DecidingWhatToChangeOnTheServerSide">
- <?dbhtml filename="DecidingWhatToChangeOnTheServerSide.html"?>
- <title>What should I change on the server side</title>
- <para>
- As it was mentioned <ulink url="index.html#DecideWhatToChange">before</ulink>, the list of zones to be reRendered can be specified
- as EL expression. But there is a question that must be specified more exactly.
+ <keyword>keepAlive</keyword>
+ <keyword>requestDelay</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>FAQ</title>
+ <section id="DecidingWhatToChangeOnTheServerSide">
+ <?dbhtml filename="DecidingWhatToChangeOnTheServerSide.html"?>
+ <title>What should I change on the server side?</title>
+ <para> As it was mentioned <ulink url="index.html#DecideWhatToChange">before</ulink>, the
+ list of zones to be reRendered can be specified as EL expression. But there is a
+ question that must be specified more exactly. </para>
+ <para> The list of Ids is formed during beforePhase of RENDER_RESPONSE. Therefore, in this
+ case one can point reRender to the Set type Bean's property and fill the Set
+ during a tracking request. </para>
+ <para> It's the way to form a list of updatable areas dynamically. </para>
+ </section>
+ <section id="CheckSendingRequestConditions.CustomJavaScriptBeforeRequest.OnSubmitAttribute">
+ <?dbhtml filename="CheckSendingRequestConditions.CustomJavaScriptBeforeRequest.OnSubmitAttribute.html"?>
+
+ <title>How to check sending request conditions? Custom JavaScript before request
+ "OnSubmit" attribute.</title>
+ <para> To check on the client some terms of request sending, the <emphasis role="italic">
+ <property>"onSubmit</property>
+ </emphasis>" attribute is added to all components, which may cause the request. </para>
+ <para>
+ <emphasis role="bold">Example: </emphasis>
</para>
- <para>
- The list of Ids is formed during beforePhase of RENDER_RESPONSE. Therefore, in
- this case one can point reRender to the Set type Bean's property and fill
- the Set during a tracking request.
- </para>
- <para>
- It's the way to form a list of updatable areas dynamically.
- </para>
- </section>
- <section id="CheckSendingRequestConditions.CustomJavaScriptBeforeRequest.OnSubmitAttribute">
- <?dbhtml filename="CheckSendingRequestConditions.CustomJavaScriptBeforeRequest.OnSubmitAttribute.html"?>
-
- <title>How to check sending request conditions? Custom JavaScript before request. OnSubmit attribute</title>
- <para>
- To check on the client some terms of request sending, The <emphasis role="italic">
- <property>"onSubmit</property>
- </emphasis>" attribute is added to all components, which may cause the request. </para>
- <para><emphasis role="bold">Example: </emphasis>
- </para>
- <programlisting role="XML"><![CDATA[<h:inputText id="i" value="#{beanText.kennung}">
+ <programlisting role="XML"><![CDATA[<h:inputText id="i" value="#{beanText.kennung}">
<a4j:support event="onfocus" onsubmit="doSomething();" reRender="panelToReRender"/>
</h:inputText>]]></programlisting>
- <para>
- So in this case "<emphasis role="italic"><property>doSomething()</property>"</emphasis> function is executed before the AJAX request.
- </para>
- <para>
- Besides, if this function returns "false", AJAX request isn't fired.
- </para>
- <note>
- <title>Note:</title>
- <para>Behavior of our <emphasis role="italic">
- <property>"onsubmit"</property>
- </emphasis>slightly differs from the standard one.
- Do not return <emphasis role="italic">
- <property>"true"</property>
- </emphasis>
-if you want to fire the request - because
- <emphasis role="bold">
-<property><xxx><a4j:support event="onclick" onsubmit="return true;"></property>
-</emphasis> is transformed into <xxx onclick="return true; A4J.Submit(.... );" >
- and the request isn't fired also in this case (but the standard event processing fired). You must only return <emphasis role="italic">
- <property>"false"</property>
- </emphasis>
-if your conditions weren't completed or perform some actions (if needed) without any returns in case you need to fire it.
- </para>
- </note>
- </section>
- <section id="onCompleteAttribute.DifferencesAfterRelease1.0">
- <?dbhtml filename="onCompleteAttribute.DifferencesAfterRelease1.0.html"?>
- <title> onCompelete attribute. Differences after release 1.0 </title>
- <para>
- To avoid differences with other JavaScript attributes, a function placement in a
- JavaScript call is changed, instead of simple inserting of attribute content (..oncomplete :anotherFunction(this)..),
- it places (oncomplete: function(){anotherFunction(this);}..) in anonymous function,
- to allow put "chain" of statements in attribute.
- </para>
- <para>
- Since, <emphasis role="italic">
- <property>"this"</property>
- </emphasis>
-keyword will point to a parameters map instead of a control element as it was before.
- You may use <emphasis role="italic">
- <property>document.findElementById()</property>
- </emphasis>to get references to this object after a request
- is processed as when a page is updated in AJAX you will have reference to a control,
- removed from a DOM tree.
- </para>
- <para>
- Or, if you are sure that your element is not updated, you can add <emphasis role="italic">
- <property>"onsubmit"</property>
- </emphasis>
-in <emphasis role="bold">
- <property><a4j:support></property>
- </emphasis>
- (or onclick in <emphasis role="bold"><property><a4j:commandLink/Button></property></emphasis>) to place reference to known variable
- (<emphasis role="bold"><property><a4j:commandLink onclick="var myControl=this;" oncomplete="anotherFunction(myControl)"/></property></emphasis>).
- </para>
- <important>
- <title>New:</title>
- <para>
- The onComplete syntax now is:
- </para>
+ <para> So in this case "<emphasis role="italic"
+ ><property>doSomething()</property>"</emphasis> function is executed before
+ the AJAX request. </para>
+ <para> Besides, if this function returns "false", AJAX request
+ isn't fired. </para>
+ <note>
+ <title>Note:</title>
+ <para>Behavior of our <emphasis role="italic">
+ <property>"onsubmit"</property>
+ </emphasis>slightly differs from the standard one. Do not return <emphasis
+ role="italic">
+ <property>"true"</property>
+ </emphasis> if you want to fire the request - because <emphasis role="bold">
+ <property><xxx><a4j:support
+ event="onclick" onsubmit="return
+ true;"></property>
+ </emphasis> is transformed into <xxx onclick="return true;
+ A4J.Submit(.... );" > and the request isn't fired also in
+ this case (but the standard event processing fired). You must only return <emphasis
+ role="italic">
+ <property>"false"</property>
+ </emphasis> if your conditions weren't completed or perform some actions
+ (if needed) without any returns in case you need to fire it. </para>
+ </note>
+ </section>
+ <section id="onCompleteAttribute.DifferencesAfterRelease1.0">
+ <?dbhtml filename="onCompleteAttribute.DifferencesAfterRelease1.0.html"?>
+ <title> What is differences of "onCompelete" attribute after release 1.0?</title>
+ <para> To avoid differences with other JavaScript attributes, a function placement in a
+ JavaScript call is changed, instead of simple inserting of attribute content
+ (..oncomplete :anotherFunction(this)..), it places (oncomplete:
+ function(){anotherFunction(this);}..) in anonymous function, to allow put
+ "chain" of statements in attribute. </para>
+ <para> Since, <emphasis role="italic">
+ <property>"this"</property>
+ </emphasis> keyword will point to a parameters map instead of a control element as it
+ was before. You may use <emphasis role="italic">
+ <property>document.findElementById()</property>
+ </emphasis>to get references to this object after a request is processed as when a page
+ is updated in AJAX you will have reference to a control, removed from a DOM tree. </para>
+ <para> Or, if you are sure that your element is not updated, you can add <emphasis
+ role="italic">
+ <property>"onsubmit"</property>
+ </emphasis> in <emphasis role="bold">
+ <property><a4j:support></property>
+ </emphasis> (or onclick in <emphasis role="bold">
+ <property><a4j:commandLink/Button></property>
+ </emphasis>) to place reference to known variable (<emphasis role="bold">
+ <property><a4j:commandLink onclick="var myControl=this;"
+ oncomplete="anotherFunction(myControl)"/></property>
+ </emphasis>). </para>
+ <important>
+ <title>New:</title>
+ <para> The onComplete syntax now is: </para>
<programlisting role="XML">
<![CDATA[<someAjaxActionComponent ...oncomplete="myFunc(req,event,data)".../>]]>
- </programlisting>
- <para>
- where the <property>event</property> is a variable where the JS event copy that fires the request is placed into. One may use it to get the element instead of this.
- and <property>data</property> is a variable that contains deserialized value from the <property>data</property> attribute.
- </para>
-</important>
- </section>
- <section id="InvokeOnComponentUsingWithJSF1.2">
- <?dbhtml filename="InvokeOnComponentUsingWithJSF1.2.html"?>
- <title>Is it possible to use InvokeOnComponent with JSF 1.2?</title>
- <para>
- Ajax4jsf currently does not use <emphasis role="italic">invokeOnComponent</emphasis> because of the 2 reasons:
- </para>
- <itemizedlist>
- <listitem>
- Compatibility with JSF 1.1 and MyFaces applications is kept, due to a big
- amount of code used in corporate applications.
-</listitem>
- <listitem>
- <emphasis role="italic"> InvokeOnComponent</emphasis> works with already known clientId, and works fine for
- communication between widget and backed component, or updates content of
- already rendered component. But there are some troubles to use this method for more
- complex use-cases implemented in Ajax4jsf, as there is a choice for updatable
- components in application logic, where it's necessary to navigate in a components
- tree by the native id, with <property>findComponent()</property> methods.
- </listitem>
- </itemizedlist>
- <para>
- Thus, for example, only entire dataTable can be updated in
- response (but all AJAX action components inside table work properly).
- </para>
- </section>
- <section id="RegionsInDataTables">
+ </programlisting>
+ <para> where the <property>event</property> is a variable where the JS event copy that
+ fires the request is placed into. One may use it to get the element instead of this.
+ and <property>data</property> is a variable that contains deserialized value from
+ the <property>data</property> attribute. </para>
+ </important>
+ </section>
+ <section id="InvokeOnComponentUsingWithJSF1.2">
+ <?dbhtml filename="InvokeOnComponentUsingWithJSF1.2.html"?>
+ <title>Is it possible to use InvokeOnComponent with JSF 1.2?</title>
+ <para> Ajax4jsf currently does not use <emphasis role="italic">invokeOnComponent</emphasis>
+ because of the 2 reasons: </para>
+ <itemizedlist>
+ <listitem> Compatibility with JSF 1.1 and MyFaces applications is kept, due to a big
+ amount of code used in corporate applications. </listitem>
+ <listitem>
+ <emphasis role="italic"> InvokeOnComponent</emphasis> works with already known
+ clientId, and works fine for communication between widget and backed component, or
+ updates content of already rendered component. But there are some troubles to use
+ this method for more complex use-cases implemented in Ajax4jsf, as there is a choice
+ for updatable components in application logic, where it's necessary to
+ navigate in a components tree by the native id, with
+ <property>findComponent()</property> methods. </listitem>
+ </itemizedlist>
+ <para> Thus, for example, only entire dataTable can be updated in response (but all AJAX
+ action components inside table work properly). </para>
+ </section>
+ <!--<section id="RegionsInDataTables">
<?dbhtml filename="RegionsInDataTables.html"?>
<title>Regions in Data Tables</title>
<para>The regions in Data Tables aren't supported now, but the feature will be implemented in a new Ajax4jsf version for JSF 1.2.</para>
- </section>
- <section id="keepAliveComponentGeneratesException">
- <?dbhtml filename="keepAliveComponentGeneratesException.html"?>
- <title>"keepAlive" component generates exception</title>
- <para>To avoid this exception, don't forget that the component stores beans in serialized view, but your bean should implement java.io.Serializable.</para>
- </section>
- <section id="FilterUsageDamagesAnApplicationLayout">
- <?dbhtml filename="FilterUsageDamagesAnApplicationLayout.html"?>
- <title>Why does filter usage damage an application layout?</title>
- <para>Ajax4jsf uses <property>filters</property> for correction of xhtml code received on an AJAX response,
-because when a response is recieved from the server, Ajax4jsf makes direct changes in
-DOM tree and browser doesn't make any corrections in generated xhtml. There
-are two ways for setting <property>filters</property> that could be used in an Ajax4jsf-based
-application.</para>
- <para>
-The first one:</para>
-<programlisting role="XML"><![CDATA[<context-param filter>
+ </section>-->
+ <section id="keepAliveComponentGeneratesException">
+ <?dbhtml filename="keepAliveComponentGeneratesException.html"?>
+ <title>How to avoid generating exception for "keepAlive" component?</title>
+ <para>To avoid exception, don't forget that the component stores beans in
+ serialized view, but your bean should implement java.io.Serializable.</para>
+ </section>
+ <section id="FilterUsageDamagesAnApplicationLayout">
+ <?dbhtml filename="FilterUsageDamagesAnApplicationLayout.html"?>
+ <title>Why does filter usage damage an application layout?</title>
+ <para>Ajax4jsf uses <property>filters</property> for correction of xhtml code received on an
+ AJAX response, because when a response is recieved from the server, Ajax4jsf makes
+ direct changes in DOM tree and browser doesn't make any corrections in
+ generated xhtml. There are two ways for setting <property>filters</property> that could
+ be used in an Ajax4jsf-based application.</para>
+ <para> The first one:</para>
+ <programlisting role="XML"><![CDATA[<context-param filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>]]></programlisting>
- <para>This <property>filter</property> is based on Tidy Filter usage and recommended for applications
-with complicated or non-standard markup, as all the necessary xhtml code
-corrections are made by the filter when a response comes from the server.</para>
- <para>
-Anyway, some obvious errors could damage a layout, if it happens, make sure that the
-markup corresponds to the xhtml-strict specification.
-
-</para>
- <para>The second one:</para>
-<programlisting role="XML"><![CDATA[<filter>
+ <para>This <property>filter</property> is based on Tidy Filter usage and recommended for
+ applications with complicated or non-standard markup, as all the necessary xhtml code
+ corrections are made by the filter when a response comes from the server.</para>
+ <para> Anyway, some obvious errors could damage a layout, if it happens, make sure that the
+ markup corresponds to the xhtml-strict specification. </para>
+ <para>The second one:</para>
+ <programlisting role="XML"><![CDATA[<filter>
<display-name>org.ajax4jsf.FastFilter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.FastFilter</filter-class>
</filter>]]></programlisting>
- <para>This <property>filter</property> is based on the Nekko pacer. In this case an output xhtml code isn't
-strictly verified and it also could cause lot's of errors and corrupt a layout as
-a result. Though if you sure that your application markup is really strict for this
-filter, the filter considerably accelerates all AJAX requests processing.
-</para>
- <para><emphasis role="bold">Extra information</emphasis>.
-</para>
- <para>forceParcer parameters setting for <property>filters</property>:</para>
-<programlisting role="XML"><![CDATA[<filter>
+ <para>This <property>filter</property> is based on the Nekko pacer. In this case an output
+ xhtml code isn't strictly verified and it also could cause lot's of
+ errors and corrupt a layout as a result. Though if you sure that your application markup
+ is really strict for this filter, the filter considerably accelerates all AJAX requests
+ processing. </para>
+ <para><emphasis role="bold">Extra information</emphasis>. </para>
+ <para>forceParcer parameters setting for <property>filters</property>:</para>
+ <programlisting role="XML"><![CDATA[<filter>
...
<init-param>
<param-name>forceparser</param-name>
@@ -190,162 +171,172 @@
</init-param>
...
</filter>]]></programlisting>
- <para>The "false" setting for initialization parameter switches off application of filters
-for non-AJAX requests, if "true" is chosen, the filter checks all
-requests.
-
-<important>
- <title>Changes for Ajax4jsf 1.1.0</title>
- <property>forceparser parameter</property> default value is false from this version.
-</important>
-
-</para>
- </section>
- <section id="AFormIsNotSubmittedOrASetterIsNotCalledAfterAJAXrequest">
- <?dbhtml filename="AFormIsNotSubmittedOrASetterIsNotCalledAfterAJAXrequest.html"?>
- <title>A form isn't submitted or a setter isn't called after AJAX request </title>
- <para>This situation could happen because of conversion/validation errors on form
-submission. In order to verify this, it's necessary to place this updating via an AJAX
-error message inside a form:</para>
-<programlisting role="XML"><![CDATA[<a4j:outputPanel ajaxRendered="true">
+ <para>The "false" setting for initialization parameter switches off
+ application of filters for non-AJAX requests, if "true" is chosen, the
+ filter checks all requests. <important>
+ <title>Changes for Ajax4jsf 1.1.0</title>
+ <property>forceparser parameter</property> default value is false from this version.
+ </important>
+ </para>
+ </section>
+ <section id="AFormIsNotSubmittedOrASetterIsNotCalledAfterAJAXrequest">
+ <?dbhtml filename="AFormIsNotSubmittedOrASetterIsNotCalledAfterAJAXrequest.html"?>
+ <title>Why form isn't submitted or setter isn't called after AJAX request?</title>
+ <para>This situation could happen because of conversion/validation errors on form
+ submission. In order to verify this, it's necessary to place this updating via
+ an AJAX error message inside a form:</para>
+ <programlisting role="XML"><![CDATA[<a4j:outputPanel ajaxRendered="true">
<h:messages/>
</a4j:outpurPanel>]]></programlisting>
- </section>
+ </section>
-<section id="DelayedRenderZone">
- <?dbhtml filename="DelayedRenderZone.html"?>
- <title>How to create "a4j delayed render zone"?</title>
- <para>Component "a4j:support" has a "requestDelay" attribute where you can define the delay.</para>
- <para>For information see discussion about this problem on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104969">Ajax4Jsf Users Forum.</ulink>
- </para>
-</section>
+ <section id="DelayedRenderZone">
+ <?dbhtml filename="DelayedRenderZone.html"?>
+ <title>How to create "a4j delayed render zone"?</title>
+ <para>The <emphasis role="bold"><a4j:support></emphasis> component has a
+ "requestDelay" attribute where you can define the delay.</para>
+ <para>More information about this problem could be found on the <ulink
+ url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104969"
+ >Ajax4Jsf Users Forum.</ulink>
+ </para>
+ </section>
-<section id="HowToStopPoll">
- <?dbhtml filename="HowToStopPoll.html"?>
- <title>How to stop "a4j:poll"?</title>
- <para>For information see discussion about this problem on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104951">Ajax4Jsf Users Forum.
- </ulink>
- </para>
-</section>
+ <section id="HowToStopPoll">
+ <?dbhtml filename="HowToStopPoll.html"?>
+ <title>How to stop "a4j:poll"?</title>
+ <para>More information about this problem could be found on the <ulink
+ url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104951"
+ >Ajax4Jsf Users Forum. </ulink>
+ </para>
+ </section>
- <section id="IgnoreDupResponsesAndRequestDelay">
- <?dbhtml filename="IgnoreDupResponsesAndRequestDelay.html"?>
-
- <title>How to use IgnoreDupResponses and requestDelay </title>
- <para>The <emphasis role="italic">
- <property>"IgnoreDupResponses"</property>
- </emphasis> attribute appeared from 1.0.4 RC1 version and is used on the
-client for response ignoring after an AJAX request if a newer request has been
-already sent.
-<para>
-The additional information you can find <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=105766">here</ulink>.
-</para>
+ <section id="IgnoreDupResponsesAndRequestDelay">
+ <?dbhtml filename="IgnoreDupResponsesAndRequestDelay.html"?>
-<emphasis role="italic">
- <property>"RequestDelay"</property>
- </emphasis> attribute also defines the client behavior. It sets the time delay, after
-which another request could be sent, all other requests are taken away
-from a queue except the last one.
-</para>
- </section>
+ <title>How to use IgnoreDupResponses and requestDelay?</title>
+ <para>The <emphasis role="italic">
+ <property>"IgnoreDupResponses"</property>
+ </emphasis> attribute appeared from 1.0.4 RC1 version and is used on the client for
+ response ignoring after an AJAX request if a newer request has been already sent. <para>
+ The additional information could be found on the<ulink
+ url="http://jboss.com/index.html?module=bb&op=viewtopic&t=105766"
+ >here</ulink>. </para>
+ <emphasis role="italic">
+ <property>"RequestDelay"</property>
+ </emphasis> attribute also defines the client behavior. It sets the time delay, after
+ which another request could be sent, all other requests are taken away from a queue
+ except the last one. </para>
+ </section>
-<section id="RefreshImage">
- <?dbhtml filename="RefreshImage.html"?>
- <title>How to refresh an image using "a4j:support"</title>
- <para>For information see discussion about this problem on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=105995">Ajax4Jsf Users Forum.
- </ulink>
- </para>
-</section>
-
+ <section id="RefreshImage">
+ <?dbhtml filename="RefreshImage.html"?>
+ <title>How to refresh an image using <a4j:support> component?</title>
+ <para>More information about this problem could be found on the <ulink
+ url="http://jboss.com/index.html?module=bb&op=viewtopic&t=105995"
+ >Ajax4Jsf Users Forum. </ulink>
+ </para>
+ </section>
-
- <section id="EventQueueUsage">
- <?dbhtml filename="EventQueueUsage.html"?>
- <title>How to use EventQueue</title>
- <para>The <emphasis role="italic">
- <property>"EventQueue"</property>
- </emphasis> attribute defines the query name where the requests are saved
-before their sending to the server. The queue is created for redundant requests
-deleting during frequent events, which call several requests forming one after
-another. The queue cuts redundant requests and send only the last one. The
-queue is created in any case and named on default, the attribute usage only
-re-defines this name.
-</para>
- </section>
- <section id="PageRequiredOrNot">
- <?dbhtml filename="PageRequiredOrNot.html"?>
- <title>Is "a4j:page" required or not?</title>
- <para>
-"a4j:page" is a component used for solving of incompatibility problems in early Ajax4jsf and MyFaces versions.
-The component encodes the full html page structure.
- </para>
- <para>For information see discussion about this problem on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=106849&p...">Ajax4Jsf Users Forum.
- </ulink>
- </para>
-</section>
- <section id="SeveralStatusOnPage">
- <?dbhtml filename="SeveralStatusOnPage.html"?>
- <title>Can I have several "a4j:status" components on one page?</title>
- <para>Yes, you can. For more information see example on
- <ulink url="http://livedemo.exadel.com/a4j-status/">JBoss Ajax4jsf Online Demos</ulink>.
- </para>
-</section>
+ <section id="EventQueueUsage">
+ <?dbhtml filename="EventQueueUsage.html"?>
+ <title>How to use "EventQueue" attribute?</title>
+ <para>The <emphasis role="italic">
+ <property>"EventQueue"</property>
+ </emphasis> attribute defines the query name where the requests are saved before their
+ sending to the server. The queue is created for redundant requests deleting during
+ frequent events, which call several requests forming one after another. The queue cuts
+ redundant requests and send only the last one. The queue is created in any case and
+ named on default, the attribute usage only re-defines this name. </para>
+ </section>
- <section id="SomeProblemsWithRendering">
- <?dbhtml filename="SomeProblemsWithRendering.html"?>
- <title>Can I use "a4j:region" within "a4j:repeat"?</title>
- <para>
- "a4j:region" can't work inside iteration components, like dataTable and repeat.
- This can be done for a JSF 1.2 targetted build only, at release 1.2.0.
- </para>
- <para>You can find details <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=109080">here.
- </ulink>
- </para>
-</section>
+ <section id="PageRequiredOrNot">
+ <?dbhtml filename="PageRequiredOrNot.html"?>
+ <title>Is <a4j:page> component required or not?</title>
+ <para>
+ <emphasis role="bold"><4j:page></emphasis> is a component used for solving
+ of incompatibility problems in early Ajax4jsf and MyFaces versions. The component
+ encodes the full html page structure. </para>
+ <para>More information about this problem could be found on the <ulink
+ url="http://jboss.com/index.html?module=bb&op=viewtopic&t=106849&p..."
+ >Ajax4Jsf Users Forum. </ulink>
+ </para>
+ </section>
- <section id="RerenderingPartPage">
- <?dbhtml filename="RerenderingPartPage.html"?>
- <title>How to reRender only particular row(s) of datatable?</title>
- <para>
- If you use "rich:dataTable" then you may use ajaxKeys attribute to bind the rowKeys to be reRendered there.
- After you need to point reRender on the whole table and only specified rows will be reRedered.
- Also you can see example about usage of "a4j:repeat" component
- <ulink url="http://livedemo.exadel.com/a4j-repeat/">here.
- </ulink>
- </para>
-</section>
+ <section id="SeveralStatusOnPage">
+ <?dbhtml filename="SeveralStatusOnPage.html"?>
+ <title>Can I have several <a4j:status> components on one page?</title>
+ <para>Yes, you can. More information about this problem could be found on the <ulink
+ url="http://livedemo.exadel.com/a4j-status/">JBoss Ajax4jsf Online Demos</ulink>.
+ </para>
+ </section>
+ <section id="SomeProblemsWithRendering">
+ <?dbhtml filename="SomeProblemsWithRendering.html"?>
+ <title>Can I use <a4j:region> within <a4j:repeat>?</title>
+ <para>
+ <emphasis role="bold"><a4j:region></emphasis> can't work inside
+ iteration components like <emphasis role="bold"><h:dataTable></emphasis>
+ and <emphasis role="bold"><a4j:repeat></emphasis>. </para>
+ <para>The details could be found on the <ulink
+ url="http://jboss.com/index.html?module=bb&op=viewtopic&t=109080"
+ >here. </ulink>
+ </para>
+ </section>
-<section id="RerederingSingleDataTableColumn">
- <?dbhtml filename="RerederingSingleDataTableColumn.html"?>
- <title>How to reRender single dataTable column?</title>
- <para>For information see discussion about this problem on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=105725">Ajax4Jsf Users Forum.
- </ulink>
- </para>
-</section>
-
- <section id="reRenderingfailed">
- <?dbhtml filename="reRenderingfailed.html"?>
- <title>reRendering failed. Hide/Show the components using rendered</title>
- <para>
- During "show/hide" functionality implementation the main error happens because of the "reRender" attribute of some AJAX Action Component is set on a component that depends on rendered properties, i.e. a component that is to be hidden/rendered is tried to be updated. The problem is that if rendered="false" in this moment, the component isn't in the DOM tree and can't be updated because of the general limitations described in the Ajax Processing chapter.
-</para>
-<para>The correct variant of functionality implantation:</para>
+ <section id="RerenderingPartPage">
+ <?dbhtml filename="RerenderingPartPage.html"?>
+ <title>How to reRender only particular row(s) of dataTable?</title>
+ <para> If you use dataTable then you may use ajaxKeys attribute to bind the rowKeys to be
+ reRendered there. After you need to point reRender on the whole table and only specified
+ rows will be reRedered. Also the example of usage of <emphasis role="bold"
+ ><a4j:repeat></emphasis> component are available <ulink
+ url="http://livedemo.exadel.com/a4j-repeat/">here</ulink>.</para>
+ </section>
-<orderedlist>
-<listitem><para>With the rendered attribute wrap the component that is to be hidden or rendered on AJAX in a wrapper component (e.g. a4j:outputPanel)</para></listitem>
-<listitem><para>Set reRender of an AJAX Action component on this wrapper component instead of the component itself.</para></listitem>
-</orderedlist>
+ <section id="RerederingSingleDataTableColumn">
+ <?dbhtml filename="RerederingSingleDataTableColumn.html"?>
+ <title>How to reRender single dataTable column?</title>
+ <para>More information about this problem could be found on the <ulink
+ url="http://jboss.com/index.html?module=bb&op=viewtopic&t=105725"
+ >Ajax4Jsf Users Forum. </ulink>
+ </para>
+ </section>
-<para><emphasis role="bold">Example:</emphasis></para>
+ <section id="reRenderingfailed">
+ <?dbhtml filename="reRenderingfailed.html"?>
+ <title>Why does reRendering fail? Hide/Show components using rendered.</title>
+ <para> During "show/hide" functionality implementation the main error
+ happens because of the "reRender" attribute of some AJAX Action
+ Component is set on a component that depends on rendered properties, i.e. a component
+ that is to be hidden/rendered is tried to be updated. The problem is that if
+ rendered="false" in this moment, the component isn't in the
+ DOM tree and can't be updated because of the general limitations described in
+ the Ajax Processing chapter. </para>
+ <para>The correct variant of functionality implantation:</para>
- <programlisting role="XML"><![CDATA[...
+ <orderedlist>
+ <listitem>
+ <para>With the rendered attribute wrap the component that is to be hidden or
+ rendered on AJAX in a wrapper component (e.g. a4j:outputPanel)</para>
+ </listitem>
+
+ <listitem>
+ <para>Set reRender of an AJAX Action component on this wrapper component instead of
+ the component itself.</para>
+ </listitem>
+ </orderedlist>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
<a4j:outputPanel id="panel">
<h:panelGroup rendered="#{bean.rendered}">
<!--Some nested content to be hidden/shown depending on bean.rendered -->
@@ -356,23 +347,29 @@
...
]]></programlisting>
-<para>In this case the wrapper component always presents in the DOM tree and its inner content could be updated dynamically on AJAX.</para>
-</section>
+ <para>In this case the wrapper component always presents in the DOM tree and its inner
+ content could be updated dynamically on AJAX.</para>
+ </section>
-<section id="JSCallPropblemsInInclude">
- <?dbhtml filename="JSCallPropblemsInInclude.html"?>
- <title>Why does JavaScript call don't work in "a4j:include"?</title>
- <para>For more information see discussion on this problem on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104317">Ajax4Jsf Users Forum.
- </ulink>
- </para>
-</section>
+ <section id="JSCallPropblemsInInclude">
+ <?dbhtml filename="JSCallPropblemsInInclude.html"?>
+ <title>Why does JavaScript call don't work in <a4j:include>?</title>
+ <para>More information about this problem could be found on the <ulink
+ url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104317"
+ >Ajax4Jsf Users Forum. </ulink>
+ </para>
+ </section>
-<section id="ResourceNotRegisteredException">
- <?dbhtml filename="ResourceNotRegisteredException.html"?>
- <title>What does ResourceNotRegistered Exception mean?</title>
+ <section id="ResourceNotRegisteredException">
+ <?dbhtml filename="ResourceNotRegisteredException.html"?>
+ <title>What does ResourceNotRegistered Exception mean?</title>
- <para>Ajax4jsf registers its resources (scripts, images) after an application is accessed and then accesses it via a generated URL. During an application development when a developer constantly updates it on the server, it could happen that Ajax4jsf re-registers its resources after every server restart and a browser tries to access them via cashed URL.</para>
+ <para>Ajax4jsf registers its resources (scripts, images) after an application is accessed
+ and then accesses it via a generated URL. During an application development when a
+ developer constantly updates it on the server, it could happen that Ajax4jsf
+ re-registers its resources after every server restart and a browser tries to access them
+ via cashed URL.</para>
-<para>The problem is solved with browser cash update (e.g. CTRL+F5).</para>
+ <para>The problem is solved with browser cash update (e.g. CTRL+F5).</para>
+ </section>
</section>
-</section>
\ No newline at end of file
17 years, 6 months
JBoss Ajax4JSF SVN: r290 - trunk/docs/userguide/en/src/main/docbook/included.
by ajax4jsf-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-06-28 07:34:21 -0400 (Thu, 28 Jun 2007)
New Revision: 290
Modified:
trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml
trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml
trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
trunk/docs/userguide/en/src/main/docbook/included/form.xml
trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml
trunk/docs/userguide/en/src/main/docbook/included/support.xml
Log:
language correction
Modified: trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml 2007-06-28 09:14:36 UTC (rev 289)
+++ trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml 2007-06-28 11:34:21 UTC (rev 290)
@@ -6,6 +6,6 @@
</a4j:region>]]>
</programlisting>
<para>
- Every time when AJAX request triggered from "region" method "processAjax" of "bean" will be called.
+ Every time when AJAX request triggered from "region" method "processAjax" of "bean" will be called.
</para>
</root>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml 2007-06-28 09:14:36 UTC (rev 289)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml 2007-06-28 11:34:21 UTC (rev 290)
@@ -53,7 +53,7 @@
<title>Note:</title>
<para>AJAX support is built in and it's not necessary to add nested <emphasis role="bold"><property><a4j:support></property></emphasis> to the component.</para>
</note>
- <para>Common JSF navigation could be performed after AJAX submit and partial rendering, but Navigation Case must be defined as <emphasis role="bold"><property><redirect/></property></emphasis> in order to avoid problems with some browsers.</para>
+ <para>Common JSF navigation could be performed after an AJAX submit and partial rendering, but Navigation Case must be defined as <emphasis role="bold"><property><redirect/></property></emphasis> in order to avoid problems with some browsers.</para>
<para>As any Ajax4jsf component sending AJAX requests and processing server responses <emphasis role="bold"><property><a4j:commandButton></property></emphasis> has all attributes described above (see <emphasis role="bold"><property><a4j:support></property></emphasis> chapter) that provide the required behavior of requests sending (delay, limitation of submit area and rendering, and etc.)</para>
</section>
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2007-06-28 09:14:36 UTC (rev 289)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2007-06-28 11:34:21 UTC (rev 290)
@@ -35,7 +35,7 @@
<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>
- <para>This definition of the component provides a link, a click on the link causes an AJAX form
+ <para>This definition of the component provides a link, and 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>
Modified: trunk/docs/userguide/en/src/main/docbook/included/form.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/form.xml 2007-06-28 09:14:36 UTC (rev 289)
+++ trunk/docs/userguide/en/src/main/docbook/included/form.xml 2007-06-28 11:34:21 UTC (rev 290)
@@ -50,7 +50,7 @@
<section>
<title>Key attributes and ways of usage</title>
<para>The difference with the original component is that all hidden fields required for command links 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>Beginning with release 1.0.5 additional attributes that make this form variant universal appear. With a new attribute definition as ajax=<emphasis role="italic">
+ <para>Beginning with release 1.0.5 additional attributes that make this form variant universal have appeared. With a new attribute definition as ajax=<emphasis role="italic">
<property>"true"</property>
</emphasis>, it becomes possible to set AJAX submission way for any components inside, i.e. not a page URL is used as an <emphasis role="italic">
<property>"action"</property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml 2007-06-28 09:14:36 UTC (rev 289)
+++ trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml 2007-06-28 11:34:21 UTC (rev 290)
@@ -47,7 +47,7 @@
</section>
<section>
<title>Key attributes and ways of usage</title>
- <para>The difference with the original component is that all hidden fields required for command links with child <emphasis role="bold">
+ <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>
<programlisting role="XML"><![CDATA[<a4j:form>
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-06-28 09:14:36 UTC (rev 289)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-06-28 11:34:21 UTC (rev 290)
@@ -43,7 +43,7 @@
<a4j:support event="onkeyup" reRender="repeater"/>
</h:inputText>
<h:outputText id="repeater" value="#{bean.text}"/>]]></programlisting>
- <para>On every keyup event generated by an input field, form is submitted on the server via Ajax and
+ <para>On every keyup event generated by an input field, a form is submitted on the server with the help of Ajax and
on a response coming from the server, element with "repeater" id, founded in a DOM tree is
redrawn according to a new data from the response.</para>
</section>
@@ -77,7 +77,7 @@
</note>
<para>With the help of <emphasis role="italic">
<property>"onsubmit"</property></emphasis> and <emphasis role="italic">
- <property>"oncomplete"</property></emphasis> attributes the component allows using JavaScript before (for request sending conditions checking) and after AJAX response processing termination (for performance of user-defined activities on the client) </para>
+ <property>"oncomplete"</property></emphasis> attributes the component allows using JavaScript before (for request sending conditions checking) and after an AJAX response processing termination (for performance of user-defined activities on the client) </para>
<para><emphasis role="bold">Example:</emphasis></para>
<programlisting role="XML"><![CDATA[<h:selectOneMenu value="#{bean.text}">
<f:selectItem itemValue="First Item " itemLabel="First Item"/>
@@ -86,7 +86,7 @@
<a4j:support event="onblur" reRender="panel" onsubmit="if(!confirm('Are you sure to change the option ?'))
{form.reset(); return false;}" oncomplete="alert('Value succesfully stored')"/>
</h:selectOneMenu>]]></programlisting>
- <para>In example there is the condition checking (confirm) is used before request sending and message printing after the request processing is over. </para>
+ <para>In example there is the condition checking (confirm) is used before request sending and message printing after the request processing is over. </para>
<para>The components allows different AJAX request managing ways for its various optimization in particular conditions such as:
<itemizedlist>
<listitem>
@@ -122,7 +122,7 @@
<para><emphasis role="italic"><property>"requestDelay"</property></emphasis> is an attribute that defines a time interval in seconds minimally permissible between responses.
</para>
- <para><emphasis role="italic"><property>"eventQueue"</property></emphasis> is an attribute for naming of the queue where the next response is kept in till its processing, but if the next event comes in till this time, the waiting event is taken away, replacing with a new one.
+ <para><emphasis role="italic"><property>"eventQueue"</property></emphasis> is an attribute for naming of the queue where the next response is kept in till its processing, but if the next event comes in till this time is over, the waiting event is taken away, replacing with a new one.
</para>
<para><emphasis role="italic"><property>"ignoreDupResponces"</property></emphasis> is an attribute that allows to disable any updates on the client after an AJAX request if another AJAX request is already sent.
@@ -138,7 +138,7 @@
<h:outputText value="#{person.name}" id="test"/>
</form>]]></programlisting>
<para>This example clearly shows mentioned above attributes. If quick typing in a text field happens, every next requests sending is delayed for a second and requests quantity is reduced. The requests are kept in the queue "myQueue" till its the sending.
-Moreover, if the next request is already sent, the rerendering after the previous request is banned, and
+Moreover, if the next request is already sent, the rerendering after the previous request is banned, and
it helps to avoid unnecessary processing on the client.</para>
</listitem>
</itemizedlist>
17 years, 6 months
JBoss Ajax4JSF SVN: r289 - trunk/docs/userguide/en/src/main/docbook/included.
by ajax4jsf-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-06-28 05:14:36 -0400 (Thu, 28 Jun 2007)
New Revision: 289
Modified:
trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml
trunk/docs/userguide/en/src/main/docbook/included/include.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/include.xml
Log:
language correction
Modified: trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml 2007-06-27 23:12:00 UTC (rev 288)
+++ trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml 2007-06-28 09:14:36 UTC (rev 289)
@@ -49,7 +49,7 @@
<title>Key attributes and ways of usage</title>
<para>The difference with the original component is that all hidden fields required for command links with 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>
+ </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>
<programlisting role="XML"><![CDATA[<a4j:form>
...
<a4j:htmlComandLink action="action" value="link" rendered="#{bean.rendered}">
Modified: trunk/docs/userguide/en/src/main/docbook/included/include.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/include.desc.xml 2007-06-27 23:12:00 UTC (rev 288)
+++ trunk/docs/userguide/en/src/main/docbook/included/include.desc.xml 2007-06-28 09:14:36 UTC (rev 289)
@@ -4,6 +4,6 @@
<title>Description</title>
<para>The <emphasis role="bold">
<property><a4j:include></property>
- </emphasis> component is used for page areas update after an AJAX request according to the faces-config Navigation Rules and for realization of wizard-like parts work in AJAX mode.</para>
+ </emphasis> component is used for page areas update after an AJAX request according to the faces-config Navigation Rules and for implementation of wizard-like parts work in AJAX mode.</para>
</section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/included/include.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/include.xml 2007-06-27 23:12:00 UTC (rev 288)
+++ trunk/docs/userguide/en/src/main/docbook/included/include.xml 2007-06-28 09:14:36 UTC (rev 289)
@@ -71,13 +71,13 @@
</emphasis> pages. Navigation defined by these pages is applied to the <emphasis role="bold">
<property><a4j:include></property>
</emphasis> element current for them.</para>
-<para>As in general case for Ajax Action component, if the <emphasis role="bold">
+<para>As in the general case for Ajax Action component, if the <emphasis role="bold">
<property><a4j:action></property>
</emphasis>component inside <emphasis role="bold">
<property><a4j:include></property>
</emphasis>returns outcome defined as <emphasis role="bold">
<property><redirect/></property>,
- </emphasis> AJAX submit is performed with navigation of all page and not only of the current view.
+ </emphasis> AJAX submit is performed with navigation of the whole page and not only of the current view.
</para>
<para>
Some additional information you can find here: <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104158">Ajax4Jsf Users Forum.</ulink>
17 years, 6 months
JBoss Ajax4JSF SVN: r288 - branches/version_1_0_7/src/framework/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko.
by ajax4jsf-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-06-27 19:12:00 -0400 (Wed, 27 Jun 2007)
New Revision: 288
Modified:
branches/version_1_0_7/src/framework/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilter.java
branches/version_1_0_7/src/framework/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionState.java
Log:
Fix AJSF-88
Modified: branches/version_1_0_7/src/framework/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilter.java
===================================================================
--- branches/version_1_0_7/src/framework/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilter.java 2007-06-27 22:59:21 UTC (rev 287)
+++ branches/version_1_0_7/src/framework/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilter.java 2007-06-27 23:12:00 UTC (rev 288)
@@ -1,7 +1,7 @@
/**
* License Agreement.
*
- * Ajax4jsf 1.0 - Natural Ajax for Java Server Faces (JSF)
+ * Ajax4jsf 1.1 - Natural Ajax for Java Server Faces (JSF)
*
* Copyright (C) 2007 Exadel, Inc.
*
@@ -26,6 +26,8 @@
import org.apache.xerces.xni.QName;
import org.apache.xerces.xni.XMLAttributes;
import org.apache.xerces.xni.XNIException;
+import org.apache.xerces.xni.parser.XMLComponentManager;
+import org.apache.xerces.xni.parser.XMLConfigurationException;
import org.cyberneko.html.HTMLAugmentations;
import org.cyberneko.html.filters.DefaultFilter;
@@ -46,6 +48,12 @@
super();
_state = new BaseHtmlCorrectionState(null);
}
+
+ public void reset(XMLComponentManager componentManager)
+ throws XMLConfigurationException {
+ super.reset(componentManager);
+ _state = new BaseHtmlCorrectionState(null);
+ }
/* (non-Javadoc)
* @see org.cyberneko.html.filters.DefaultFilter#endElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.Augmentations)
@@ -63,17 +71,28 @@
super.startElement(element, attributes, augs);
}
- void insertStartElement(String name) {
- QName element = new QName(null,name,name,null);
+ void insertStartElement(String name, QName base) {
+ QName element = createQName(name, base);
XMLAttributes attrs = new XMLAttributesImpl();
Augmentations augs = new HTMLAugmentations();
super.startElement(element,attrs,augs);
}
+
+ /**
+ * @param name
+ * @param base
+ * @return
+ */
+ private QName createQName(String name, QName base) {
+ String prefix = base.prefix;
+ String rawname = null != prefix && (!"".equals(prefix))? prefix+':'+name:name;
+ QName element = new QName(prefix,name,rawname,base.uri);
+ return element;
+ }
- void insertEndElement(String name) {
- QName element = new QName(null,name,name,null);
-// XMLAttributes attrs = new XMLAttributesImpl();
+ void insertEndElement(String name, QName base) {
+ QName element = createQName(name, base);
Augmentations augs = new HTMLAugmentations();
super.endElement(element,augs);
}
@@ -99,8 +118,9 @@
public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException {
if(element.rawname.equalsIgnoreCase("table")){
_state = new TableHtmlCorrectionState(this);
+ } else {
+ depth++;
}
- depth++;
}
@@ -120,7 +140,7 @@
public void endElement(QName element, Augmentations augs) throws XNIException {
if (inTbody) {
- insertEndElement("tbody");
+ insertEndElement("tbody", element);
}
_state = previsiosState;
}
@@ -129,11 +149,11 @@
if(element.rawname.equalsIgnoreCase("tr")){
if(!inTbody){
inTbody = true;
- insertStartElement("tbody");
+ insertStartElement("tbody", element);
}
} else {
if (inTbody) {
- insertEndElement("tbody");
+ insertEndElement("tbody", element);
inTbody = false;
}
}
Modified: branches/version_1_0_7/src/framework/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionState.java
===================================================================
--- branches/version_1_0_7/src/framework/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionState.java 2007-06-27 22:59:21 UTC (rev 287)
+++ branches/version_1_0_7/src/framework/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionState.java 2007-06-27 23:12:00 UTC (rev 288)
@@ -1,7 +1,7 @@
/**
* License Agreement.
*
- * Ajax4jsf 1.0 - Natural Ajax for Java Server Faces (JSF)
+ * Ajax4jsf 1.1 - Natural Ajax for Java Server Faces (JSF)
*
* Copyright (C) 2007 Exadel, Inc.
*
17 years, 6 months
JBoss Ajax4JSF SVN: r287 - in trunk: framework/src/test/java/org/ajax4jsf/framework and 9 other directories.
by ajax4jsf-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-06-27 18:59:21 -0400 (Wed, 27 Jun 2007)
New Revision: 287
Added:
trunk/framework/src/test/java/org/ajax4jsf/framework/ajax/
trunk/framework/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/
trunk/framework/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/
trunk/framework/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilterTestCase.java
Modified:
trunk/framework/src/main/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilter.java
trunk/framework/src/test/java/org/ajax4jsf/framework/util/javascript/ScriptUtilsTest.java
trunk/samples/ajaxPortlet/src/main/webapp/WEB-INF/ajaxportlet-object.xml
trunk/samples/ajaxPortlet/src/main/webapp/WEB-INF/jboss-portlet.xml
trunk/samples/ajaxPortlet/src/main/webapp/WEB-INF/web.xml
trunk/samples/pom.xml
trunk/samples/useCases/src/main/webapp/WEB-INF/web.xml
trunk/samples/useCases/src/main/webapp/index.jsp
trunk/samples/useCases/src/main/webapp/pages/controls.xhtml
Log:
Resolved AJSF-88
Setup sample portlet application for a Jboss 2.6 / JSF 1.2
Modified: trunk/framework/src/main/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilter.java
===================================================================
--- trunk/framework/src/main/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilter.java 2007-06-27 18:40:50 UTC (rev 286)
+++ trunk/framework/src/main/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilter.java 2007-06-27 22:59:21 UTC (rev 287)
@@ -26,6 +26,8 @@
import org.apache.xerces.xni.QName;
import org.apache.xerces.xni.XMLAttributes;
import org.apache.xerces.xni.XNIException;
+import org.apache.xerces.xni.parser.XMLComponentManager;
+import org.apache.xerces.xni.parser.XMLConfigurationException;
import org.cyberneko.html.HTMLAugmentations;
import org.cyberneko.html.filters.DefaultFilter;
@@ -46,6 +48,12 @@
super();
_state = new BaseHtmlCorrectionState(null);
}
+
+ public void reset(XMLComponentManager componentManager)
+ throws XMLConfigurationException {
+ super.reset(componentManager);
+ _state = new BaseHtmlCorrectionState(null);
+ }
/* (non-Javadoc)
* @see org.cyberneko.html.filters.DefaultFilter#endElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.Augmentations)
@@ -63,17 +71,28 @@
super.startElement(element, attributes, augs);
}
- void insertStartElement(String name) {
- QName element = new QName(null,name,name,null);
+ void insertStartElement(String name, QName base) {
+ QName element = createQName(name, base);
XMLAttributes attrs = new XMLAttributesImpl();
Augmentations augs = new HTMLAugmentations();
super.startElement(element,attrs,augs);
}
+
+ /**
+ * @param name
+ * @param base
+ * @return
+ */
+ private QName createQName(String name, QName base) {
+ String prefix = base.prefix;
+ String rawname = null != prefix && (!"".equals(prefix))? prefix+':'+name:name;
+ QName element = new QName(prefix,name,rawname,base.uri);
+ return element;
+ }
- void insertEndElement(String name) {
- QName element = new QName(null,name,name,null);
-// XMLAttributes attrs = new XMLAttributesImpl();
+ void insertEndElement(String name, QName base) {
+ QName element = createQName(name, base);
Augmentations augs = new HTMLAugmentations();
super.endElement(element,augs);
}
@@ -99,8 +118,9 @@
public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException {
if(element.rawname.equalsIgnoreCase("table")){
_state = new TableHtmlCorrectionState(this);
+ } else {
+ depth++;
}
- depth++;
}
@@ -120,7 +140,7 @@
public void endElement(QName element, Augmentations augs) throws XNIException {
if (inTbody) {
- insertEndElement("tbody");
+ insertEndElement("tbody", element);
}
_state = previsiosState;
}
@@ -129,11 +149,11 @@
if(element.rawname.equalsIgnoreCase("tr")){
if(!inTbody){
inTbody = true;
- insertStartElement("tbody");
+ insertStartElement("tbody", element);
}
} else {
if (inTbody) {
- insertEndElement("tbody");
+ insertEndElement("tbody", element);
inTbody = false;
}
}
Added: trunk/framework/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilterTestCase.java
===================================================================
--- trunk/framework/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilterTestCase.java (rev 0)
+++ trunk/framework/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/nekko/HtmlCorrectionFilterTestCase.java 2007-06-27 22:59:21 UTC (rev 287)
@@ -0,0 +1,447 @@
+/**
+ *
+ */
+package org.ajax4jsf.framework.ajax.xmlfilter.nekko;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.xerces.util.XMLAttributesImpl;
+import org.apache.xerces.xni.Augmentations;
+import org.apache.xerces.xni.NamespaceContext;
+import org.apache.xerces.xni.QName;
+import org.apache.xerces.xni.XMLAttributes;
+import org.apache.xerces.xni.XMLDocumentFragmentHandler;
+import org.apache.xerces.xni.XMLDocumentHandler;
+import org.apache.xerces.xni.XMLLocator;
+import org.apache.xerces.xni.XMLResourceIdentifier;
+import org.apache.xerces.xni.XMLString;
+import org.apache.xerces.xni.XNIException;
+import org.apache.xerces.xni.parser.XMLDocumentSource;
+import org.cyberneko.html.HTMLAugmentations;
+
+import junit.framework.TestCase;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class HtmlCorrectionFilterTestCase extends TestCase {
+
+ private List elements;
+ private HtmlCorrectionFilter filter;
+
+ /* (non-Javadoc)
+ * @see junit.framework.TestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ super.setUp();
+ elements = new ArrayList();
+ filter = new HtmlCorrectionFilter();
+ filter.setDocumentHandler(new TestHandler());
+ }
+
+ /* (non-Javadoc)
+ * @see junit.framework.TestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ elements = null;
+ filter = null;
+ super.tearDown();
+ }
+
+ private void startElement(String name){
+ QName element = new QName(null,name,name,null);
+ XMLAttributes attrs = new XMLAttributesImpl();
+ Augmentations augs = new HTMLAugmentations();
+ filter.startElement(element, attrs, augs);
+ }
+
+ private void endElement(String name){
+ QName element = new QName(null,name,name,null);
+ Augmentations augs = new HTMLAugmentations();
+ filter.endElement(element, augs);
+ }
+
+ private void emptyElement(String name){
+ QName element = new QName(null,name,name,null);
+ XMLAttributes attrs = new XMLAttributesImpl();
+ Augmentations augs = new HTMLAugmentations();
+ filter.emptyElement(element, attrs, augs);
+ }
+
+
+ private void executeSequence(El[] seq){
+ for (int i=0; i<seq.length;i++) {
+ El element = seq[i];
+ switch (element.type) {
+ case XNIElement.EMPTY:
+ emptyElement(element.name);
+ break;
+ case XNIElement.START:
+ startElement(element.name);
+ break;
+ case XNIElement.END:
+ endElement(element.name);
+ break;
+ default:
+ break;
+ }
+ }
+ }
+
+
+ private void assertSequence(El[] seq){
+ for (int i = 0; i < seq.length; i++) {
+ assertFalse("Record less elements then expected",i>=elements.size());
+ El element = (El) seq[i];
+ XNIElement rec = (XNIElement) elements.get(i);
+ assertEquals("at position "+i,element.type, rec.type);
+ assertEquals("at position "+i,element.name, rec.element.localpart);
+ }
+ }
+ /**
+ * Test method for {@link org.ajax4jsf.framework.ajax.xmlfilter.nekko.HtmlCorrectionFilter#endElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.Augmentations)}.
+ */
+ public void testEndElementQNameAugmentations() {
+ startElement("html");//0
+ startElement("body");
+ startElement("table");// 2
+ emptyElement("thead");
+ startElement("tbody"); //4
+ startElement("tr");
+ startElement("td");//6
+ endElement("td");
+ endElement("tr");//8
+ endElement("tbody");
+ endElement("table");//10
+ endElement("body");
+ endElement("html");//12
+ endElement("html");//overflow ?
+
+ assertEquals(XNIElement.START, ((XNIElement)elements.get(0)).type);
+ assertEquals("html", ((XNIElement)elements.get(0)).element.rawname);
+ assertEquals(XNIElement.START, ((XNIElement)elements.get(1)).type);
+ assertEquals("body", ((XNIElement)elements.get(1)).element.rawname);
+ assertEquals(XNIElement.START, ((XNIElement)elements.get(2)).type);
+ assertEquals("table", ((XNIElement)elements.get(2)).element.rawname);
+ assertEquals(XNIElement.EMPTY, ((XNIElement)elements.get(3)).type);
+ assertEquals("thead", ((XNIElement)elements.get(3)).element.rawname);
+ assertEquals(XNIElement.START, ((XNIElement)elements.get(4)).type);
+ assertEquals("tbody", ((XNIElement)elements.get(4)).element.rawname);
+ assertEquals(XNIElement.START, ((XNIElement)elements.get(5)).type);
+ assertEquals("tr", ((XNIElement)elements.get(5)).element.rawname);
+ assertEquals(XNIElement.START, ((XNIElement)elements.get(6)).type);
+ assertEquals("td", ((XNIElement)elements.get(6)).element.rawname);
+ assertEquals(XNIElement.END, ((XNIElement)elements.get(7)).type);
+ assertEquals("td", ((XNIElement)elements.get(7)).element.rawname);
+ assertEquals(XNIElement.END, ((XNIElement)elements.get(8)).type);
+ assertEquals("tr", ((XNIElement)elements.get(8)).element.rawname);
+ assertEquals(XNIElement.END, ((XNIElement)elements.get(9)).type);
+ assertEquals("tbody", ((XNIElement)elements.get(9)).element.rawname);
+ assertEquals(XNIElement.END, ((XNIElement)elements.get(10)).type);
+ assertEquals("table", ((XNIElement)elements.get(10)).element.rawname);
+ assertEquals(XNIElement.END, ((XNIElement)elements.get(11)).type);
+ assertEquals("body", ((XNIElement)elements.get(11)).element.rawname);
+ }
+
+ public void testInsertTbody() {
+ startElement("html");//0
+ startElement("body");
+ startElement("table");// 2
+ emptyElement("thead");
+// startElement("tbody"); //4
+ startElement("tr");
+ startElement("td");//6
+ endElement("td");
+ endElement("tr");//8
+// endElement("tbody");
+ endElement("table");//10
+ endElement("body");
+ endElement("html");//12
+ endElement("html");//overflow ?
+
+ assertEquals(XNIElement.START, ((XNIElement)elements.get(0)).type);
+ assertEquals("html", ((XNIElement)elements.get(0)).element.rawname);
+ assertEquals(XNIElement.START, ((XNIElement)elements.get(1)).type);
+ assertEquals("body", ((XNIElement)elements.get(1)).element.rawname);
+ assertEquals(XNIElement.START, ((XNIElement)elements.get(2)).type);
+ assertEquals("table", ((XNIElement)elements.get(2)).element.rawname);
+ assertEquals(XNIElement.EMPTY, ((XNIElement)elements.get(3)).type);
+ assertEquals("thead", ((XNIElement)elements.get(3)).element.rawname);
+ assertEquals(XNIElement.START, ((XNIElement)elements.get(4)).type);
+ assertEquals("tbody", ((XNIElement)elements.get(4)).element.rawname);
+ assertEquals(XNIElement.START, ((XNIElement)elements.get(5)).type);
+ assertEquals("tr", ((XNIElement)elements.get(5)).element.rawname);
+ assertEquals(XNIElement.START, ((XNIElement)elements.get(6)).type);
+ assertEquals("td", ((XNIElement)elements.get(6)).element.rawname);
+ assertEquals(XNIElement.END, ((XNIElement)elements.get(7)).type);
+ assertEquals("td", ((XNIElement)elements.get(7)).element.rawname);
+ assertEquals(XNIElement.END, ((XNIElement)elements.get(8)).type);
+ assertEquals("tr", ((XNIElement)elements.get(8)).element.rawname);
+ assertEquals(XNIElement.END, ((XNIElement)elements.get(9)).type);
+ assertEquals("tbody", ((XNIElement)elements.get(9)).element.rawname);
+ assertEquals(XNIElement.END, ((XNIElement)elements.get(10)).type);
+ assertEquals("table", ((XNIElement)elements.get(10)).element.rawname);
+ assertEquals(XNIElement.END, ((XNIElement)elements.get(11)).type);
+ assertEquals("body", ((XNIElement)elements.get(11)).element.rawname);
+ }
+
+
+ public void testEnclosedTables() throws Exception {
+ El[] exec = {
+ new El("html",1),
+ new El("table",1),
+ new El("tbody",1),
+ new El("tr",1),
+ new El("td",1),
+ new El("table",1),
+ new El("tr",1),
+ new El("td",1),
+ new El("td",2),
+ new El("tr",2),
+ new El("table",2),
+ new El("td",2),
+ new El("tr",2),
+ new El("tbody",2),
+ new El("table",2),
+ new El("html",2)
+ };
+ executeSequence(exec);
+ El[] expect = {
+ new El("html",1),
+ new El("table",1),
+ new El("tbody",1),
+ new El("tr",1),
+ new El("td",1),
+ new El("table",1),
+ new El("tbody",1),
+ new El("tr",1),
+ new El("td",1),
+ new El("td",2),
+ new El("tr",2),
+ new El("tbody",2),
+ new El("table",2),
+ new El("td",2),
+ new El("tr",2),
+ new El("tbody",2),
+ new El("table",2),
+ new El("html",2)
+ };
+ assertSequence(expect);
+ }
+
+ public void testEnclosedTwoTables() throws Exception {
+ El[] exec = {
+ new El("html",1),
+ new El("table",1),
+ new El("tbody",1),
+ new El("tr",1),
+ new El("td",1),
+ new El("table",1),
+ new El("tr",1),
+ new El("td",1),
+ new El("table",1),
+ new El("tr",1),
+ new El("td",1),
+ new El("td",2),
+ new El("tr",2),
+ new El("table",2),
+ new El("td",2),
+ new El("tr",2),
+ new El("table",2),
+ new El("td",2),
+ new El("tr",2),
+ new El("tbody",2),
+ new El("table",2),
+ new El("html",2)
+ };
+ executeSequence(exec);
+ El[] expect = {
+ new El("html",1),
+ new El("table",1),
+ new El("tbody",1),
+ new El("tr",1),
+ new El("td",1),
+ new El("table",1),
+ new El("tbody",1),
+ new El("tr",1),
+ new El("td",1),
+ new El("table",1),
+ new El("tbody",1),
+ new El("tr",1),
+ new El("td",1),
+ new El("td",2),
+ new El("tr",2),
+ new El("tbody",2),
+ new El("table",2),
+ new El("td",2),
+ new El("tr",2),
+ new El("tbody",2),
+ new El("table",2),
+ new El("td",2),
+ new El("tr",2),
+ new El("tbody",2),
+ new El("table",2),
+ new El("html",2)
+ };
+ assertSequence(expect);
+ }
+ /**
+ * Test method for {@link org.ajax4jsf.framework.ajax.xmlfilter.nekko.HtmlCorrectionFilter#startElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes, org.apache.xerces.xni.Augmentations)}.
+ */
+// public void testResVoid() {
+// fail("Not yet implemented");
+// }
+
+ private class TestHandler implements XMLDocumentHandler{
+
+ public void characters(XMLString text, Augmentations augmentations)
+ throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void comment(XMLString text, Augmentations augmentations)
+ throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void emptyElement(QName element, XMLAttributes attributes,
+ Augmentations augmentations) throws XNIException {
+ elements.add(new XNIElement(element,XNIElement.EMPTY));
+
+ }
+
+ public void endCDATA(Augmentations augmentations) throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void endDocumentFragment(Augmentations augmentations)
+ throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void endElement(QName element, Augmentations augmentations)
+ throws XNIException {
+ elements.add(new XNIElement(element,XNIElement.END));
+
+ }
+
+ public void endGeneralEntity(String name, Augmentations augmentations)
+ throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void ignorableWhitespace(XMLString text,
+ Augmentations augmentations) throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void processingInstruction(String target, XMLString data,
+ Augmentations augmentations) throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void startCDATA(Augmentations augmentations) throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void startDocumentFragment(XMLLocator locator,
+ NamespaceContext namespaceContext, Augmentations augmentations)
+ throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void startElement(QName element, XMLAttributes attributes,
+ Augmentations augmentations) throws XNIException {
+ elements.add(new XNIElement(element,XNIElement.START));
+
+ }
+
+ public void startGeneralEntity(String name,
+ XMLResourceIdentifier identifier, String encoding,
+ Augmentations augmentations) throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void textDecl(String version, String encoding,
+ Augmentations augmentations) throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void doctypeDecl(String rootElement, String publicId,
+ String systemId, Augmentations augs) throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void endDocument(Augmentations augs) throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public XMLDocumentSource getDocumentSource() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public void setDocumentSource(XMLDocumentSource source) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void startDocument(XMLLocator locator, String encoding,
+ NamespaceContext namespaceContext, Augmentations augs)
+ throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void xmlDecl(String version, String encoding, String standalone,
+ Augmentations augs) throws XNIException {
+ // TODO Auto-generated method stub
+
+ }
+
+ }
+
+ private static class XNIElement {
+ static final int EMPTY=0;
+ static final int START=1;
+ static final int END=2;
+ QName element;
+ int type;
+ public XNIElement(QName element, int type) {
+ super();
+ this.element = element;
+ this.type = type;
+ }
+
+ }
+
+ private static class El{
+ String name;
+ int type;
+ /**
+ * @param name
+ * @param type
+ */
+ public El(String name, int type) {
+ this.name = name;
+ this.type = type;
+ }
+
+ }
+}
Modified: trunk/framework/src/test/java/org/ajax4jsf/framework/util/javascript/ScriptUtilsTest.java
===================================================================
--- trunk/framework/src/test/java/org/ajax4jsf/framework/util/javascript/ScriptUtilsTest.java 2007-06-27 18:40:50 UTC (rev 286)
+++ trunk/framework/src/test/java/org/ajax4jsf/framework/util/javascript/ScriptUtilsTest.java 2007-06-27 22:59:21 UTC (rev 287)
@@ -23,9 +23,8 @@
import java.util.ArrayList;
import java.util.Arrays;
-import java.util.HashMap;
-import java.util.HashSet;
import java.util.List;
+import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
@@ -138,7 +137,7 @@
public void testTwoDimentionalStringArrayToScript() {
String[][] obj = {{"one","two"},{"three","four"}};
assertEquals("[['one','two'] ,['three','four'] ] ", ScriptUtils.toScript(obj));
- HashMap map = new HashMap();
+ Map map = new TreeMap();
map.put("a", obj);
map.put("b", "c");
assertEquals("{'a':[['one','two'] ,['three','four'] ] ,'b':'c'} ", ScriptUtils.toScript(map));
Modified: trunk/samples/ajaxPortlet/src/main/webapp/WEB-INF/ajaxportlet-object.xml
===================================================================
--- trunk/samples/ajaxPortlet/src/main/webapp/WEB-INF/ajaxportlet-object.xml 2007-06-27 18:40:50 UTC (rev 286)
+++ trunk/samples/ajaxPortlet/src/main/webapp/WEB-INF/ajaxportlet-object.xml 2007-06-27 22:59:21 UTC (rev 287)
@@ -8,28 +8,30 @@
<component-ref>ajaxPortletApp.ajaxPortlet</component-ref>
</instance>
</deployment>
+ <!--
+ <deployment>
+ <parent-ref>default</parent-ref>
+ <if-exists>overwrite</if-exists>
+ <page>
+ <page-name>ajaxPortlet</page-name>
+ <window>
+ <window-name>ajaxportletWindow</window-name>
+ <instance-ref>AjaxPortletInstance</instance-ref>
+ <default>true</default>
+ <region>center</region>
+ <height>0</height>
+ </window>
+ <window>
+ <window-name>ajaxportletSecondWindow</window-name>
+ <instance-ref>AjaxPortletSecondInstance</instance-ref>
+ <default>true</default>
+ <region>center</region>
+ <height>0</height>
+ </window>
+ </page>
+ </deployment>
+ -->
<deployment>
- <parent-ref>default</parent-ref>
- <if-exists>overwrite</if-exists>
- <page>
- <page-name>ajaxPortlet</page-name>
- <window>
- <window-name>ajaxportletWindow</window-name>
- <instance-ref>AjaxPortletInstance</instance-ref>
- <default>true</default>
- <region>center</region>
- <height>0</height>
- </window>
- <window>
- <window-name>ajaxportletSecondWindow</window-name>
- <instance-ref>AjaxPortletSecondInstance</instance-ref>
- <default>true</default>
- <region>center</region>
- <height>0</height>
- </window>
- </page>
- </deployment>
- <deployment>
<if-exists>overwrite</if-exists>
<parent-ref>default.default</parent-ref>
<window>
@@ -39,7 +41,7 @@
<region>center</region>
<height>0</height>
</window>
- </deployment>
+ </deployment><!--
<deployment>
<parent-ref>default</parent-ref>
<if-exists>overwrite</if-exists>
@@ -48,4 +50,4 @@
<component-ref>ajaxPortletApp.ajaxPortlet</component-ref>
</instance>
</deployment>
-</deployments>
+--></deployments>
Modified: trunk/samples/ajaxPortlet/src/main/webapp/WEB-INF/jboss-portlet.xml
===================================================================
--- trunk/samples/ajaxPortlet/src/main/webapp/WEB-INF/jboss-portlet.xml 2007-06-27 18:40:50 UTC (rev 286)
+++ trunk/samples/ajaxPortlet/src/main/webapp/WEB-INF/jboss-portlet.xml 2007-06-27 22:59:21 UTC (rev 287)
@@ -1,4 +1,8 @@
-<portlet-app>
+<?xml version="1.0"?>
+
+<!DOCTYPE portlet-app PUBLIC
+ "-//JBoss Portal//DTD JBoss Portlet 2.6//EN"
+ "http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd"><portlet-app>
<portlet>
<portlet-name>ajaxPortlet</portlet-name>
</portlet>
Modified: trunk/samples/ajaxPortlet/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/ajaxPortlet/src/main/webapp/WEB-INF/web.xml 2007-06-27 18:40:50 UTC (rev 286)
+++ trunk/samples/ajaxPortlet/src/main/webapp/WEB-INF/web.xml 2007-06-27 22:59:21 UTC (rev 287)
@@ -85,9 +85,11 @@
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
- <listener>
- <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
- </listener>
+ <!--
+ <listener>
+ <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
+ </listener>
+ -->
<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
Modified: trunk/samples/pom.xml
===================================================================
--- trunk/samples/pom.xml 2007-06-27 18:40:50 UTC (rev 286)
+++ trunk/samples/pom.xml 2007-06-27 22:59:21 UTC (rev 287)
@@ -84,6 +84,12 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>nekohtml</groupId>
+ <artifactId>nekohtml</artifactId>
+ <version>0.9.5</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.0</version>
@@ -135,7 +141,7 @@
<profile>
<id>jsf1_2</id>
<properties>
- <jsfVersion>1.2_04</jsfVersion>
+ <jsfVersion>1.2_04-p02</jsfVersion>
</properties>
<build>
<defaultGoal>jetty:run</defaultGoal>
Modified: trunk/samples/useCases/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/useCases/src/main/webapp/WEB-INF/web.xml 2007-06-27 18:40:50 UTC (rev 286)
+++ trunk/samples/useCases/src/main/webapp/WEB-INF/web.xml 2007-06-27 22:59:21 UTC (rev 287)
@@ -39,7 +39,7 @@
<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
- <filter-class>org.ajax4jsf.Filter</filter-class>
+ <filter-class>org.ajax4jsf.FastFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
Modified: trunk/samples/useCases/src/main/webapp/index.jsp
===================================================================
--- trunk/samples/useCases/src/main/webapp/index.jsp 2007-06-27 18:40:50 UTC (rev 286)
+++ trunk/samples/useCases/src/main/webapp/index.jsp 2007-06-27 22:59:21 UTC (rev 287)
@@ -5,7 +5,7 @@
<head></head>
<body>
- <jsp:forward page="/faces/pages/index.jsp" />
+ <jsp:forward page="/faces/pages/index.jsf" />
</body>
</html>
\ No newline at end of file
Modified: trunk/samples/useCases/src/main/webapp/pages/controls.xhtml
===================================================================
--- trunk/samples/useCases/src/main/webapp/pages/controls.xhtml 2007-06-27 18:40:50 UTC (rev 286)
+++ trunk/samples/useCases/src/main/webapp/pages/controls.xhtml 2007-06-27 22:59:21 UTC (rev 287)
@@ -20,14 +20,14 @@
value="#{dataManager.selectedCompany.desc}"
action="#{dataManager.commandAction}"
actionListener="#{dataManager.commandActionListener}"
- reRender="selectPanel" />
+ reRender="selectPanel,selectTable" />
</a4j:outputPanel> <a4j:outputPanel id="agencyOutputPanel" layout="inline"
styleClass="linePanel">
<a4j:commandLink id="agencyCommandLink"
value="#{dataManager.selectedAgency.desc}"
action="#{dataManager.commandAction}"
actionListener="#{dataManager.commandActionListener}"
- reRender="selectPanel" />
+ reRender="selectPanel,selectTable" />
</a4j:outputPanel></div>
</div>
<a4j:outputPanel id="selectPanel" layout="block"
@@ -43,7 +43,16 @@
style="display:block" />
</a4j:repeat>
</a4j:outputPanel>
+ <br />
+ <h:dataTable id="selectTable"
+ value="#{dataManager.selectData}" var="item"
+ >
+ <h:column>
+ <h:outputText value="#{item.desc}"/>
+ </h:column>
+ </h:dataTable>
</a4j:form>
+ <a4j:log hotkey="M"/>
</body>
</f:view>
</html>
17 years, 6 months
JBoss Ajax4JSF SVN: r286 - trunk/framework/src/main/resources/META-INF/skins.
by ajax4jsf-svn-commits@lists.jboss.org
Author: ishabalov
Date: 2007-06-27 14:40:50 -0400 (Wed, 27 Jun 2007)
New Revision: 286
Modified:
trunk/framework/src/main/resources/META-INF/skins/DEFAULT.skin.properties
Log:
DEFAULT.skin.properties migrated from richfaces
Modified: trunk/framework/src/main/resources/META-INF/skins/DEFAULT.skin.properties
===================================================================
--- trunk/framework/src/main/resources/META-INF/skins/DEFAULT.skin.properties 2007-06-27 13:05:52 UTC (rev 285)
+++ trunk/framework/src/main/resources/META-INF/skins/DEFAULT.skin.properties 2007-06-27 18:40:50 UTC (rev 286)
@@ -19,8 +19,14 @@
panelBorderColor=#C4C0B9
subBorderColor=#ffffff
+tabBackgroundColor=#E3DED5
+tabDisabledTextColor=#B1ADA7
+
trimColor=#DFDCD5
+tipBackgroundColor=\#FAE6B0
+tipBorderColor=\#E5973E
+
selectControlColor=#E79A00
@@ -38,6 +44,7 @@
buttonSizeFont=11
buttonFamilyFont=Arial, Verdana, sans-serif
-
-
-
+tableBackgroundColor=#FFFFFF
+tableFooterBackgroundColor=#cccccc
+tableSubfooterBackgroundColor=#f1f1f1
+tableBorderColor=#C4C0C9
17 years, 6 months
JBoss Ajax4JSF SVN: r285 - trunk/docs/userguide/en/src/main/docbook/modules.
by ajax4jsf-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-06-27 09:05:52 -0400 (Wed, 27 Jun 2007)
New Revision: 285
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGenvsettings.xml
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGtechreqs.xml
Log:
added info about Sybase EAServer
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGenvsettings.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGenvsettings.xml 2007-06-27 11:29:55 UTC (rev 284)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGenvsettings.xml 2007-06-27 13:05:52 UTC (rev 285)
@@ -192,4 +192,17 @@
<title>Portlet Support</title>
<para><property>Portlets</property> have support since version Ajax4jsf 1.1.1. Provide your feedback on compatible with Ajax4jsf if you face some problems.</para>
</section>
+ <section id="Sybase EAServer">
+ <title>Sybase EAServer</title>
+ <para>The load-on-startup for the Faces Servlet had to be set to 0 in web.xml.</para>
+ <programlisting role="XML"><![CDATA[...
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>0</load-on-startup>
+ </servlet>
+...
+]]></programlisting>
+ <para> This is because, EAServer calls servlet init() before the ServletContextInitializer. Not an EAServer bug, this is in Servlet 2.3 spec.</para>
+ </section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGtechreqs.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGtechreqs.xml 2007-06-27 11:29:55 UTC (rev 284)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGtechreqs.xml 2007-06-27 13:05:52 UTC (rev 285)
@@ -37,7 +37,7 @@
</listitem>
</itemizedlist>
</section>
- <section id="Supported JavaServer Faces Implementations">
+ <section id="Supported JavaServer Faces Implementations">
<?dbhtml filename="SupportedJavaVersions.html"?>
<title>Supported JavaServer Faces Implementations</title>
<itemizedlist>
@@ -83,7 +83,11 @@
<listitem>
JBoss 3.2 - 4.x
</listitem>
+ <listitem>
+ Sybase EAServer 6.0.1
+ </listitem>
</itemizedlist>
+
</section>
<section id="SupportedBrowsers">
<?dbhtml filename="SupportedBrowsers.html"?>
17 years, 6 months