JBoss Rich Faces SVN: r14734 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-06-26 11:43:13 -0400 (Fri, 26 Jun 2009)
New Revision: 14734
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/queue.desc.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/queue.xml
Log:
RF-7423: a4j:queue component description review
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/queue.desc.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/queue.desc.xml 2009-06-26 14:27:53 UTC (rev 14733)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/queue.desc.xml 2009-06-26 15:43:13 UTC (rev 14734)
@@ -7,7 +7,10 @@
</keywordset>
</sectioninfo>
<title>Description</title>
- <para>The <emphasis role="bold"><property><a4j:queue></property></emphasis> component creates a queue of the Ajax requests. The Ajax4JSF or RichFaces components with built-in Ajax can reference the queue to optimize Ajax requests.</para>
- <para>You can find more information about the <emphasis role="bold"><property><a4j:queue></property></emphasis> in the "<link linkend="QueuePrinciples">Queue Principles</link>" section.</para>
+ <para>
+ The <emphasis role="bold"><property><a4j:queue></property></emphasis> component enqueues set of Ajax requests sent from client.
+ The <emphasis role="bold"><property><a4j></property></emphasis> or <emphasis role="bold"><property><rich></property></emphasis> components with built-in Ajax can reference the queue to optimize Ajax requests.
+ </para>
+
</section>
</chapter>
\ No newline at end of file
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/queue.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/queue.xml 2009-06-26 14:27:53 UTC (rev 14733)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/queue.xml 2009-06-26 15:43:13 UTC (rev 14734)
@@ -35,24 +35,23 @@
</tgroup>
</table>
<section>
- <title>Creating on a page</title>
-
-
- <para>
- This is how you can create a form based queue. All other types of the queue are described in the "<link linkend="QueuePrinciples">Queue Principles</link>" section.
- </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[<h:form>
- <a4j:queue />
- <h:inputText value="#{bean.a}">
- <a4j:support event="onkeyup" />
- </h:inputText>
-</h:form>
-]]></programlisting>
+ <title>Creating the Component with a Page Tag</title>
+ <para>
+ To create the simplest variant of the Form Based queue use the following syntax.
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<h:form id="form">
+ <a4j:queue />
+ <h:inputText value="#{bean.a}">
+ <a4j:support event="onkeyup" />
+ </h:inputText>
+</h:form>]]></programlisting>
+
</section>
- <section>
+
+ <section>
<title>Creating the Component Dynamically Using Java</title>
<para>
<emphasis role="bold"> Example: </emphasis>
@@ -62,46 +61,49 @@
HtmlQueue myQueue = new HtmlQueue();
]]></programlisting>
</section>
- <section>
- <title>Key attributes and ways of usage</title>
- <para>As it was said earlier the queue implemented in Richfaces has 4 types.
- In this section we will take a closer look at the form based queue. All other types of queue are similar is usage(except for the "global queue") but different is their scope.</para>
-
+
+ <section>
+ <title>Details of usage</title>
+
+ <para>
+ The RichFaces Queue has four different types: global default, view scoped default, view scoped named and form-based default queue (general Queue principles are good documented in the "<link linkend="QueuePrinciples">Queue Principles</link>" section).
+ The current section will take closer to the form based queue. The usage of other types is similar.
+ </para>
- <para>In order to disable or enable the <emphasis role="bold"><property
- ><a4j:queue></property></emphasis> component on the page you can use the
- <emphasis><property>"disabled"</property></emphasis> attribute.</para>
-
- <para> The <emphasis><property>"requestDelay"</property></emphasis> attribute
- defines delay time for all the requests fired by the action components. </para>
<para>
+ In order to disable or enable the <emphasis role="bold"><property><a4j:queue></property></emphasis> component on the page you can use the <emphasis><property>"disabled"</property></emphasis> attribute.
+ </para>
- The <emphasis><property>"size"</property></emphasis> attribute specifies the number of request that can be stored in the queue at a time.
- The attribute can help you prevent overloading of a sever with requests. You can also determine the type of behaviour when the size of the queue is exceeded.
- </para>
- <para>You should use the <emphasis><property>"sizeExceededBehavior"</property></emphasis> for the purpose.</para>
- <para> The <emphasis><property>"sizeExceededBehavior"</property></emphasis>
- attribute can set 4 the strategies of the queue's behavior if the number of the
- requests waiting in the queue is exceeded: </para>
- <itemizedlist>
- <listitem>
- <para>"dropNext" drops next request that should be fired</para>
- </listitem>
- <listitem>
- <para>"dropNew" drops the incoming request</para>
- </listitem>
- <listitem>
- <para>"fireNext" immediately fires the next request in line to be fired</para>
- </listitem>
- <listitem>
- <para>"fireNew" immediately fires the incoming request.</para>
- </listitem>
- </itemizedlist>
+ <para>
+ The <emphasis><property>"requestDelay"</property></emphasis> attribute defines delay time for all the requests fired by the action components.
+ </para>
+
+ <para>
+ The <emphasis><property>"size"</property></emphasis> attribute specifies the number of requests that can be stored in the queue at a time.
+ The attribute helps to prevent server overloading.
+ It is also possible to determine queue's behaviour when it's size is exceeded.
+ Use the <emphasis><property>"sizeExceededBehavior"</property></emphasis> for this purpose.
+ There are four possible strategies of exceeded queue's behavior:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>"dropNext" drops next request that should be fired</para>
+ </listitem>
+ <listitem>
+ <para>"dropNew" drops the incoming request</para>
+ </listitem>
+ <listitem>
+ <para>"fireNext" immediately fires the next request in line to be fired</para>
+ </listitem>
+ <listitem>
+ <para>"fireNew" immediately fires the incoming request.</para>
+ </listitem>
+ </itemizedlist>
+
<para>
<emphasis role="bold"> Example: </emphasis>
</para>
- <programlisting role="XML"><![CDATA[...
-<h:form>
+ <programlisting role="XML"><![CDATA[<h:form>
<a4j:queue size="2" requestDelay="500" sizeExceededBehavior="dropNext" onsizeexceeded="alert('The size of the queue is exceeded')" />
<h:inputText value="#{bean.a}">
<a4j:support event="onkeyup" />
@@ -112,10 +114,9 @@
<h:selectBooleanCheckbox value="#{bean.check}" id="checkboxID">
<a4j:support id="checkboxSupport" event="onchange" />
</h:selectBooleanCheckbox>
-</h:form>
-...]]></programlisting>
+</h:form>]]></programlisting>
<para>
- In this example if the queue has more than 2 requests waiting to be processed the next event will be dropped and a message (the <emphasis><property>"onsizeexceeded"</property></emphasis> attribute fires a JavaScript function ) saying that the queues is exceeded will be displayed.
+ In this example if the queue has more than 2 requests waiting to be processed the next event will be dropped and a message (the <emphasis><property>"onsizeexceeded"</property></emphasis> attribute fires a JavaScript function) saying that the queues is exceeded will be displayed.
</para>
<para>
@@ -127,35 +128,32 @@
<para>
<emphasis role="bold"> Example: </emphasis>
</para>
- <programlisting role="XML"><![CDATA[...
-<h:form>
- <a4j:queue requestDelay="500" ignoreDupResponses="true" />
- <h:inputText value="#{bean.a}">
- <a4j:support event="onkeyup" />
- </h:inputText>
-</h:form>
-...]]></programlisting>
+ <programlisting role="XML"><![CDATA[<h:form>
+ <a4j:queue requestDelay="500" ignoreDupResponses="true" />
+ <h:inputText value="#{bean.a}">
+ <a4j:support event="onkeyup" />
+ </h:inputText>
+</h:form>]]></programlisting>
<para>In this example, the requests are glued together and only the last one is submitted.</para>
- <para>Another key attribute that easies server load is <emphasis><property
- >"timeout"</property></emphasis>.
- The attribute specifies the amount of time an item can be in the queue before the sent event is be aborted and dropped from the queue.
- </para>
- <para>If the request is sent and response is not returned within the
- time frame defined in this attribute - the request is aborted, and the next one is sent.
+ <para>
+ Another key attribute that easies server load is <emphasis><property>"timeout"</property></emphasis>.
+ The attribute specifies the amount of time an item can be in the queue before the sent event is be aborted and dropped from the queue.
</para>
+
+ <para>
+ If the request is sent and response is not returned within the time frame defined in this attribute - the request is aborted, and the next one is sent.
+ </para>
<para>
<emphasis role="bold"> Example: </emphasis>
</para>
- <programlisting role="XML"><![CDATA[...
-<h:form>
- <a4j:queue timeout="1000" />
- <h:inputText value="#{bean.a}" >
- <a4j:support event="onkeyup" />
- </h:inputText>
-</h:form>
-...]]></programlisting>
+ <programlisting role="XML"><![CDATA[<h:form>
+ <a4j:queue timeout="1000" />
+ <h:inputText value="#{bean.a}">
+ <a4j:support event="onkeyup" />
+ </h:inputText>
+</h:form>]]></programlisting>
<para>
In this case if the sever doesn't respond within a second the request will be aborted.
@@ -164,28 +162,24 @@
<para>
As you can see the implementation of the queue provides some custom event handlers that you may use to call JavaScript functions.</para>
<para>
- The <emphasis><property>"oncomplete"</property></emphasis>is fired after request completed.
+ The <emphasis><property>"oncomplete"</property></emphasis>is fired after request completed.
+ In this event handler request object is be passed as a parameter.
+ Thus queue is be accessible using <code>request.queue</code>.
+ And the element which was a source of the request is available using <code>this</code>.
</para>
+
<para>
- In this event handler request object is be passed as a parameter.
- Thus queue is be accessible using <code>request.queue</code>.
- And the element which was a source of the request is available using <code>this</code>.
-
- </para>
- <para>
<emphasis role="bold"> Example: </emphasis>
</para>
- <programlisting role="XML"><![CDATA[...
-<h:form>
- <a4j:queue oncomplete="alert(request.queue.getSize())" requestDelay="1000" />
- <h:inputText value="#{bean.a}">
- <a4j:support event="onkeyup" />
- </h:inputText>
- <h:selectBooleanCheckbox value="#{bean.check}">
- <a4j:support event="onchange"/>
- </h:selectBooleanCheckbox>
-</h:form>
-...]]></programlisting>
+ <programlisting role="XML"><![CDATA[<h:form>
+ <a4j:queue oncomplete="alert(request.queue.getSize())" requestDelay="1000" />
+ <h:inputText value="#{bean.a}">
+ <a4j:support event="onkeyup" />
+ </h:inputText>
+ <h:selectBooleanCheckbox value="#{bean.check}">
+ <a4j:support event="onchange"/>
+ </h:selectBooleanCheckbox>
+</h:form>]]></programlisting>
<para>In this example you can see how the number of requests waiting in the queue change. You will get a message with the number of the requests in the queue.</para>
@@ -229,10 +223,12 @@
<section>
<title>Relevant resources links</title>
<para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/queue.jsf?c=queue"
- >On the component LiveDemo page</ulink> you can see the example of <emphasis role="bold">
- <property><a4j:queue></property>
- </emphasis> usage and sources for the given example. </para>
- <para>General queue principals are documented in the "<link linkend="QueuePrinciples">Queue Principles</link>" section.</para>
+ Vizit the <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/queue.jsf?c=queue">Queue Page</ulink> at the RichFaces LiveDemo for examples of component usage and their sources.
+ </para>
+
+ <para>
+ Useful articles:
+ </para>
+ <para>"<link linkend="QueuePrinciples">Queue Principles</link>" section of the RichFaces developer guide describes general Queue principles.</para>
</section>
</chapter>
15 years, 6 months
JBoss Rich Faces SVN: r14733 - branches/community/3.3.X/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2009-06-26 10:27:53 -0400 (Fri, 26 Jun 2009)
New Revision: 14733
Modified:
branches/community/3.3.X/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
https://jira.jboss.org/jira/browse/RF-7460
Modified: branches/community/3.3.X/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
--- branches/community/3.3.X/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2009-06-26 14:00:53 UTC (rev 14732)
+++ branches/community/3.3.X/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2009-06-26 14:27:53 UTC (rev 14733)
@@ -973,7 +973,7 @@
RichFaces.Suggestion = Class.create();
Object.extend(Object.extend(RichFaces.Suggestion.prototype, Suggestion.Base.prototype), {
- initialize: function(containerId, actionUrl, element, content, onsubmit, options) {
+ initialize: function(actionUrl, element, content, onsubmit, options) {
var update = options.popup || 'ac1update';
if (!$(update)) this.create(element, update, content, options);
this.baseInitialize(element, update, options);
@@ -983,7 +983,6 @@
this.options.defaultParams = this.options.parameters || null;
this.content = content;
this.contentTable = content+":suggest";
- this.containerId = containerId;
this.actionUrl = actionUrl;
if (onsubmit && onsubmit != 'null'){
15 years, 6 months
JBoss Rich Faces SVN: r14732 - branches/community/3.3.X/docs/common-resources/en/src/main/xslt.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2009-06-26 10:00:53 -0400 (Fri, 26 Jun 2009)
New Revision: 14732
Modified:
branches/community/3.3.X/docs/common-resources/en/src/main/xslt/pdf-common.xsl
Log:
https://jira.jboss.org/jira/browse/RF-7369 - all XSL bugs were fixed
Modified: branches/community/3.3.X/docs/common-resources/en/src/main/xslt/pdf-common.xsl
===================================================================
--- branches/community/3.3.X/docs/common-resources/en/src/main/xslt/pdf-common.xsl 2009-06-26 11:24:17 UTC (rev 14731)
+++ branches/community/3.3.X/docs/common-resources/en/src/main/xslt/pdf-common.xsl 2009-06-26 14:00:53 UTC (rev 14732)
@@ -63,32 +63,18 @@
</fo:block>
</xsl:template>
+<!-- avoid bulk HTML elements generation in the PDF table -->
+<xsl:template match="//emphasis[@role='arrowWrapper']" />
+<xsl:template match="//emphasis[@role='descriptionWrapper']">
+ <xsl:value-of select="." />
+</xsl:template>
+<xsl:template match="//emphasis[@role='since']">
+ <fo:inline font-size="75%" vertical-align="super">
+ <xsl:value-of select="." />
+ </fo:inline>
+</xsl:template>
-<!--xsl:template match="section
- |sect1|sect2|sect3|sect4|sect5
- |refsect1|refsect2|refsect3|refsection
- |simplesect"
- mode="title.markup">
- <xsl:param name="allow-anchors" select="0"/>
- <xsl:variable name="title" select="(info/title
- |sectioninfo/title
- |sect1info/title
- |sect2info/title
- |sect3info/title
- |sect4info/title
- |sect5info/title
- |refsect1info/title
- |refsect2info/title
- |refsect3info/title
- |refsectioninfo/title
- |title/text())[1]"/>
-
- <xsl:apply-templates select="$title" mode="title.markup">
- <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
- </xsl:apply-templates>
-</xsl:template-->
-
<!-- avoid page sequence to generate blank pages after even page numbers -->
<xsl:template name="force.page.count">
15 years, 6 months
JBoss Rich Faces SVN: r14731 - branches/community/3.3.X/docs/common-resources/en/src/main/xslt.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2009-06-26 07:24:17 -0400 (Fri, 26 Jun 2009)
New Revision: 14731
Modified:
branches/community/3.3.X/docs/common-resources/en/src/main/xslt/pdf-common.xsl
Log:
https://jira.jboss.org/jira/browse/RF-5525 - bug in TOC was fixed
Modified: branches/community/3.3.X/docs/common-resources/en/src/main/xslt/pdf-common.xsl
===================================================================
--- branches/community/3.3.X/docs/common-resources/en/src/main/xslt/pdf-common.xsl 2009-06-26 10:10:08 UTC (rev 14730)
+++ branches/community/3.3.X/docs/common-resources/en/src/main/xslt/pdf-common.xsl 2009-06-26 11:24:17 UTC (rev 14731)
@@ -1,12 +1,13 @@
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"
+ version="2.0"
xmlns="http://www.w3.org/TR/xhtml1/transitional"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:jbh="java:org.jboss.highlight.renderer.FORenderer"
+ xmlns:jbh="java:org.jboss.highlight.renderer.FORenderer"
exclude-result-prefixes="jbh">
-<xsl:import href="classpath:/xslt/org/jboss/pdf.xsl" />
+<xsl:import href="classpath:/xslt/org/jboss/pdf.xsl" />
+
<xsl:attribute-set name="book.titlepage.recto.style">
<xsl:attribute name="font-family">
<xsl:value-of select="$title.fontset"/>
@@ -16,7 +17,78 @@
<xsl:attribute name="font-size">12pt</xsl:attribute>
<xsl:attribute name="text-align">center</xsl:attribute>
</xsl:attribute-set>
-
+
+<xsl:template name="toc.line">
+ <xsl:param name="toc-context" select="NOTANODE"/>
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+
+ <fo:block xsl:use-attribute-sets="toc.line.properties">
+ <fo:inline keep-with-next.within-line="always">
+
+ <fo:basic-link internal-destination="{$id}">
+ <xsl:if test="$label != ''">
+ <xsl:copy-of select="$label"/>
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="self::section/title/emphasis[@role='since']">
+ <xsl:variable name="titleWithoutEmphasis">
+ <xsl:copy-of select="self::section/title/text()" />
+ </xsl:variable>
+ <xsl:apply-templates select="$titleWithoutEmphasis" mode="title.markup"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="title.markup"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </fo:basic-link>
+ </fo:inline>
+ <fo:inline keep-together.within-line="always">
+ <xsl:text> </xsl:text>
+ <fo:leader leader-pattern="dots"
+ leader-pattern-width="3pt"
+ leader-alignment="reference-area"
+ keep-with-next.within-line="always"/>
+ <xsl:text> </xsl:text>
+ <fo:basic-link internal-destination="{$id}">
+ <fo:page-number-citation ref-id="{$id}"/>
+ </fo:basic-link>
+ </fo:inline>
+ </fo:block>
+</xsl:template>
+
+
+
+<!--xsl:template match="section
+ |sect1|sect2|sect3|sect4|sect5
+ |refsect1|refsect2|refsect3|refsection
+ |simplesect"
+ mode="title.markup">
+ <xsl:param name="allow-anchors" select="0"/>
+ <xsl:variable name="title" select="(info/title
+ |sectioninfo/title
+ |sect1info/title
+ |sect2info/title
+ |sect3info/title
+ |sect4info/title
+ |sect5info/title
+ |refsect1info/title
+ |refsect2info/title
+ |refsect3info/title
+ |refsectioninfo/title
+ |title/text())[1]"/>
+
+ <xsl:apply-templates select="$title" mode="title.markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
+ </xsl:apply-templates>
+</xsl:template-->
+
<!-- avoid page sequence to generate blank pages after even page numbers -->
<xsl:template name="force.page.count">
15 years, 6 months
JBoss Rich Faces SVN: r14730 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-06-26 06:10:08 -0400 (Fri, 26 Jun 2009)
New Revision: 14730
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/include.desc.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/include.xml
Log:
RF-7422: a4j:include component description review
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/include.desc.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/include.desc.xml 2009-06-25 21:43:51 UTC (rev 14729)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/include.desc.xml 2009-06-26 10:10:08 UTC (rev 14730)
@@ -1,16 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<chapter>
- <section>
- <sectioninfo>
- <keywordset>
- <keyword>a4j:include</keyword>
- <keyword>component</keyword>
- </keywordset>
- </sectioninfo>
-
- <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 implementation of wizard-like parts work in Ajax mode.</para>
- </section>
+ <section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>a4j:include</keyword>
+ <keyword>component</keyword>
+ </keywordset>
+ </sectioninfo>
+
+ <title>Description</title>
+ <para>
+ The <emphasis role="bold"><property><a4j:include></property></emphasis> component is used to include one view as part of another and navigate there using standard JSF navigation.
+ </para>
+ </section>
</chapter>
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/include.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/include.xml 2009-06-25 21:43:51 UTC (rev 14729)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/include.xml 2009-06-26 10:10:08 UTC (rev 14730)
@@ -36,54 +36,62 @@
</table>
<section>
- <title>Creating on a page</title>
- <para>To use the component, it's necessary to place the following strings on a page:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[<h:panelGroup id="wizard">
- <a4j:include viewId="/pages/include/first.xhtml" />
-</h:panelGroup>]]></programlisting>
-<para>For navigation inside a page defined in viewId any components responsible for Ajax requests to the server generation are used.</para>
-<para>For example, the following component on a page <code>"/pages/include/first.xhtml"</code></para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
-<programlisting role="XML"><![CDATA[...
-<a4j:commandButton action="next" reRender="wizard"/>
-...]]></programlisting>
-<para>And in faces-config it's defined:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
-<programlisting role="XML"><![CDATA[<navigation-rule>
- <from-view-id>/pages/include/first.xhtml</from-view-id>
- <navigation-case>
- <from-outcome>next</from-outcome>
- <to-view-id>/pages/include/second.xhtml</to-view-id>
- </navigation-case>
+ <title>Creating the Component with a Page Tag</title>
+ <para>
+ To create the simplest variant of the component on a page use the following syntax:
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<h:panelGrid>
+ <a4j:include viewId="/pages/include/first.xhtml" />
+</rich:panelGrid>]]></programlisting>
+ </section>
+
+ <section>
+ <title>Creating the Component Dynamically Using Java</title>
+ <para>
+ This component cannot be created dynamically.
+ </para>
+ </section>
+
+ <section>
+ <title>Details of usage</title>
+ <para>
+ The component is used to include one view as part of another and may be put anywhere in the page code.
+ The <emphasis><property>'viewID'</property></emphasis> attribute is used to point at the part to be included and should present a full context-relative path of the resource in order to be used as from-view and to-view in the JSF navigation cases.
+ In general the component functions as Fecelets <emphasis role="bold"><property><ui:include></property></emphasis> tag but with partial page navigation in Ajax mode as an advantage.
+ </para>
+ <note>
+ <title>Note:</title>
+ <para>
+ To make the RichFaces<emphasis role="bold"><property><a4j:include></property></emphasis> component (as well as Facelets<emphasis role="bold"><property><ui:include></property></emphasis> tag) work properly when including the part of the page check that included page does not generates extra HTML <!DOCTYPE>, <html>, <body> tags.
+ </para>
+ </note>
+
+ <para>
+ The navigation rules could look as following:
+ </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<navigation-rule>
+ <from-view-id>/pages/include/first.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/pages/include/second.xhtml</to-view-id>
+ </navigation-case>
</navigation-rule>]]></programlisting>
-<para>In this case after a click on a button defined inside <code>"first.xhtml"</code> view, navigation is performed after an Ajax request (the same as standard JSF one) only inside this view.</para>
- </section>
+
+ </section>
+
+
<section>
- <title>Creating the Component Dynamically Using Java</title>
+ <title>Relevant resources links</title>
<para>
- This component cannot be created dynamically.
+ Vizit the <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/include.jsf?c=include">Include page</ulink> for examples of component usage and their sources.
</para>
-</section>
-
- <section>
- <title>Relevant resources links</title>
- <para><ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/include.jsf?c=include"
- >On the component LiveDemo page</ulink> you can see the example of <emphasis role="bold"
- ><property><a4j:include></property></emphasis> usage and sources for the given example. </para>
- <para>
- 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><!--
- To see how component works on practice, look at a4j-include example from
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/include.jsf?c=include">RichFaces Live Demo</ulink>. -->
+
</section>
</chapter>
\ No newline at end of file
15 years, 6 months
JBoss Rich Faces SVN: r14729 - in branches/community/3.3.X/examples/photoalbum: tests/src/test/java/org/richfaces/photoalbum and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: prabhat.jha(a)jboss.com
Date: 2009-06-25 17:43:51 -0400 (Thu, 25 Jun 2009)
New Revision: 14729
Modified:
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/index/header.xhtml
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/testng/SearchTest.java
Log:
synching test cases with app and fix some ids
Modified: branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/includes/index/header.xhtml
===================================================================
(Binary files differ)
Modified: branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java
===================================================================
--- branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java 2009-06-25 18:46:52 UTC (rev 14728)
+++ branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java 2009-06-25 21:43:51 UTC (rev 14729)
@@ -59,14 +59,14 @@
public static interface LogInOutArea {
String PATH = "xpath=id('logInOutMenu')";
- String LOGIN_ID = "loginPanelShowlink";
+ String LOGIN_ID = "login-form:loginPanelShowlink";
String REGISTER_PATH = PATH + "/descendant::a[2]";
String LOGOUT_PATH = REGISTER_PATH;
String USER_INFO_PATH = "//a[@class='logged-user']";
}
public static interface ToolBarArea {
- String PATH = "//*[@class='dr-toolbar-int rich-toolbar-item main-menu-toolbar-content']";
+ String PATH = "//*[@class='rich-toolbar-item main-menu-toolbar-content']";
String VIEW_SHELFS_PATH = PATH + "/div[2]";
String VIEW_ALBUMS_PATH = PATH + "/div[3]";
String VIEW_IMAGES_PATH = PATH + "/div[4]";
@@ -156,15 +156,15 @@
}
public static interface TreeArea {
- String CHILDREN_PATH = "//*[@id='treeform:tree']/*[@class='dr-tree rich-tree']/*[contains(@id, 'childs')]";
+ String CHILDREN_PATH = "//*[@id='treeform:tree']/*[@class='rich-tree']/*[contains(@id, 'childs')]";
String SHELF_PATH_PART = CHILDREN_PATH + "/*[not(contains(@class, 'rich-tree-node-children'))]";
String ALBUM_PATH_PART = CHILDREN_PATH + "/*[contains(@class, 'rich-tree-node-children')]";
String TEXT_PATH_SUFFIX = "/descendant::*[contains(@id, 'text')]";
}
public static interface ResizeSlider {
- String TRACK_SLIDER = "//td[./div[@class='dr-insldr-track rich-inslider-track']]";
- String SLIDER_INPUT = "//*[@class='dr-insldr rich-slider']//input[@type='hidden']";
+ String TRACK_SLIDER = "//td[./div[@class='rich-inslider-track']]";
+ String SLIDER_INPUT = "//*[@class='rich-inslider rich-slider']//input[@type='hidden']";
}
public static interface Search {
@@ -172,11 +172,11 @@
String SEARCH_BUTTON = "//*[@class='search-find-button']";
String SEARCH_OPTION = "//*[@class='search-option-link']";
- String INACTIVE_TAB = "//*[@class='dr-tbpnl-tb rich-tab-header dr-tbpnl-tb-inact rich-tab-inactive']";
- String ACTIVE_TAB = "//*[@class='dr-tbpnl-tbcell-act rich-tabhdr-cell-active']";
+ String INACTIVE_TAB = "//*[@class='rich-tab-header rich-tab-inactive bold']";
+ String ACTIVE_TAB = "//*[@class='rich-tab-header rich-tab-active bold']";
- String SEARCH_CRITERIA_KEYWORDS = "//*[@class='search-criteria'][2]";
- String SEARCH_CRITERIA_OBJECTS = "//*[@class='search-criteria'][1]/strong";
+ String SEARCH_CRITERIA_KEYWORDS = "//*[@class='search-keyword']";
+ String SEARCH_CRITERIA_OBJECTS = "//*[@class='search-criteria'][1]";
String OBJECTS_MY = "//*[@class='search-options-div1']/input[1]";
String OBJECTS_SHARED = "//*[@class='search-options-div1']/input[2]";
Modified: branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/testng/SearchTest.java
===================================================================
--- branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/testng/SearchTest.java 2009-06-25 18:46:52 UTC (rev 14728)
+++ branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/testng/SearchTest.java 2009-06-25 21:43:51 UTC (rev 14729)
@@ -7,7 +7,7 @@
import static org.richfaces.photoalbum.RealWorldHelper.HtmlConstants.Search.*;
-/**
+/**ss
* @user: akolonitsky
* Date: Apr 29, 2009
*/
@@ -15,11 +15,12 @@
private static final String NATURE = "nature";
private static final String SPORT = "sport";
- private static final String OBJECTS_ALL = "Shelves,Albums,Images,Users,Tag";
- private static final String OBJECT_TAG = "Tag";
+ private static final String OBJECTS_ALL = "Shelves, Albums, Images, Users, Tags";
+ private static final String OBJECT_TAG = "Tags";
private static final String SHELF_HEADER = "//*[@class='shelf-header-table']";
private static final String KEYWORDS = "Keywords: ";
+ private static final String SEARCH_CRITERIA="Search criteria: ";
@Test
@@ -86,18 +87,17 @@
checkResult(SPORT, 0, 0, OBJECT_TAG);
- Assert.assertEquals(1, selenium.getXpathCount("//*[@class='dr-tbpnl-cntnt rich-tabpanel-content']//a"));
+ Assert.assertEquals(1, selenium.getXpathCount("//*[@class='rich-tabpanel-content bold']"));
}
private void checkResult(final String searchValue, final int shelfCount, final int inactiveTabCount, final String searchObjects) {
selenium.type(SEARCH_INPUT, searchValue);
selenium.click(SEARCH_BUTTON);
- waitForAjaxCompletion();
+ waitForAjaxCompletion();
Assert.assertEquals(1, selenium.getXpathCount(ACTIVE_TAB));
-
- Assert.assertEquals(searchObjects, selenium.getText(SEARCH_CRITERIA_OBJECTS).trim());
+ Assert.assertEquals(SEARCH_CRITERIA + searchObjects, selenium.getText(SEARCH_CRITERIA_OBJECTS).trim());
Assert.assertEquals(KEYWORDS + searchValue, selenium.getText(SEARCH_CRITERIA_KEYWORDS).trim());
Assert.assertEquals(shelfCount, selenium.getXpathCount(SHELF_HEADER));
@@ -108,7 +108,7 @@
// @Test
// public void testClickOnFirstAlbum() {
-// renderPage();
+// renderPage();hindi songs 2009 hits
//
// RealWorldHelper.login(selenium);
//
15 years, 6 months
JBoss Rich Faces SVN: r14727 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2009-06-25 11:24:00 -0400 (Thu, 25 Jun 2009)
New Revision: 14727
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/calendar.xml
Log:
https://jira.jboss.org/jira/browse/RF-7385 currentDate attribute description update
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/calendar.xml 2009-06-25 14:49:35 UTC (rev 14726)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/calendar.xml 2009-06-25 15:24:00 UTC (rev 14727)
@@ -105,14 +105,16 @@
</figure>
<para>Usage <emphasis>
<property>"currentDate"</property>
- </emphasis> attribute isn't available in the popup mode.</para>
+ </emphasis> attribute isn't available in the popup mode.</para>
+ <para>With help of the <emphasis>
+ <property>"currentDate"</property>
+ </emphasis> attribute you can define month and year which will be
+ displayed currently.</para>
<para>The <emphasis>
<property>"value"</property>
</emphasis> attribute stores selected date currently.</para>
- <para>With help of the <emphasis>
- <property>"currentDate"</property>
- </emphasis> attribute you can define month and year which will be
- displayed currently.</para>
+
+ <para>The difference between the value and currentDate attributes </para>
<para> The <emphasis>
<property>"todayControlMode"</property>
</emphasis> attribute defines the mode for "today"
15 years, 6 months
JBoss Rich Faces SVN: r14726 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2009-06-25 10:49:35 -0400 (Thu, 25 Jun 2009)
New Revision: 14726
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
Log:
https://jira.jboss.org/jira/browse/RF-7387 scrollableDataTables: how to disable sort feature is described
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2009-06-25 14:09:30 UTC (rev 14725)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2009-06-25 14:49:35 UTC (rev 14726)
@@ -112,7 +112,7 @@
</listitem>
</itemizedlist>
<para> It's possible to sort the table content after
- clicks on the header. The feature is optional. Every column should be
+ clicks on the header. The feature is optional (to disable it, use attribute sortable on rich:column). Every column should be
pointed to the comparator method that is used for sorting the table.
In case the <emphasis role="bold">
<property><rich:scrollableDataTable></property>
15 years, 6 months
JBoss Rich Faces SVN: r14725 - branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-06-25 10:09:30 -0400 (Thu, 25 Jun 2009)
New Revision: 14725
Modified:
branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
Fix RF-7244
Modified: branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
--- branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2009-06-25 14:09:04 UTC (rev 14724)
+++ branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2009-06-25 14:09:30 UTC (rev 14725)
@@ -275,7 +275,10 @@
}
else
{
- this.setToolTipVisible();
+ if (this.toolTipDefaultContent)
+ {
+ this.setToolTipVisible();
+ }
this.ajaxFunction(event);
}
} else {
15 years, 6 months
JBoss Rich Faces SVN: r14724 - branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-06-25 10:09:04 -0400 (Thu, 25 Jun 2009)
New Revision: 14724
Modified:
branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
Fix RF-7359
Modified: branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2009-06-25 14:08:27 UTC (rev 14723)
+++ branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2009-06-25 14:09:04 UTC (rev 14724)
@@ -240,15 +240,27 @@
},
ss: function () {
- return parseInt((this.time - this.startTime) % 60) + "";
+ var seconds = parseInt((this.time - this.startTime) % 60);
+ if(seconds < 10){
+ return "0" + seconds;
+ }
+ return seconds + "";
},
mm: function () {
- return parseInt((this.time - this.startTime)/60)+ "";
+ var minutes = parseInt((this.time - this.startTime)/60);
+ if(minutes < 10){
+ return "0" + minutes;
+ }
+ return minutes + "";
},
hh: function () {
- return parseInt((this.time - this.startTime)/3600) + "";
+ var hours = parseInt((this.time - this.startTime)/3600);
+ if(hours < 10){
+ return "0" + hours;
+ }
+ return hours + "";
},
B: function () {
15 years, 6 months