JBoss Rich Faces SVN: r2367 - in trunk/test-applications/jsp/src/main/webapp: pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-08-21 08:28:14 -0400 (Tue, 21 Aug 2007)
New Revision: 2367
Modified:
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/web.xml
trunk/test-applications/jsp/src/main/webapp/pages/main.jsp
Log:
add new component "insert"
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml 2007-08-21 11:47:45 UTC (rev 2366)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml 2007-08-21 12:28:14 UTC (rev 2367)
@@ -108,6 +108,10 @@
<from-outcome>Effect</from-outcome>
<to-view-id>/Effect/Effect.jsp</to-view-id>
</navigation-case>
+ <navigation-case>
+ <from-outcome>Insert</from-outcome>
+ <to-view-id>/Insert/Insert.jsp</to-view-id>
+ </navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>*</from-view-id>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/web.xml 2007-08-21 11:47:45 UTC (rev 2366)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/web.xml 2007-08-21 12:28:14 UTC (rev 2367)
@@ -12,7 +12,7 @@
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
- <param-value>/WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,/WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,/WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,/WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,/WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-Separator.xml,/WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-ModalPanel.xml,/WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-DragAndDrop.xml,/WEB-INF/faces-config-DataScroller.xml,/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Message!
.xml,/WEB-INF/faces-config-Effect.xml</param-value>
+ <param-value>/WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,/WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,/WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,/WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,/WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-Separator.xml,/WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-ModalPanel.xml,/WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-DragAndDrop.xml,/WEB-INF/faces-config-DataScroller.xml,/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Message!
.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml</param-value>
</context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
Modified: trunk/test-applications/jsp/src/main/webapp/pages/main.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/main.jsp 2007-08-21 11:47:45 UTC (rev 2366)
+++ trunk/test-applications/jsp/src/main/webapp/pages/main.jsp 2007-08-21 12:28:14 UTC (rev 2367)
@@ -45,6 +45,7 @@
<h:commandLink value="Calendar" action="Calendar"></h:commandLink>
<h:commandLink value="Message" action="Message"></h:commandLink>
<h:commandLink value="Effect" action="Effect"></h:commandLink>
+ <h:commandLink value="Insert" action="Insert"></h:commandLink>
</h:panelGrid>
</rich:panel>
</h:form>
18 years, 8 months
JBoss Rich Faces SVN: r2366 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-21 07:47:45 -0400 (Tue, 21 Aug 2007)
New Revision: 2366
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCsetwebappl.xml
Log:
http://jira.jboss.com/jira/browse/RF-622
Modified: trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml 2007-08-21 11:46:56 UTC (rev 2365)
+++ trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml 2007-08-21 11:47:45 UTC (rev 2366)
@@ -63,7 +63,7 @@
the static field <emphasis
><property>COMPONENT_TYPE</property></emphasis>.
For components with such types encode methods always are called in
- rendering AJAX responses, even if a component isn't in an updated
+ rendering Ajax responses, even if a component isn't in an updated
part</entry>
</row>
@@ -158,10 +158,10 @@
<entry>Force parsing by a filter <emphasis
><property>HTML</property></emphasis> syntax
- checker on any JSF page. If "false", only AJAX responses are
+ checker on any JSF page. If "false", only Ajax responses are
parsed to syntax check and conversion to well-formed XML. Setting
to "false" improves performance, but can provide visual effects on
- AJAX updates</entry>
+ Ajax updates</entry>
</row>
</tbody>
</tgroup>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-08-21 11:46:56 UTC (rev 2365)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-08-21 11:47:45 UTC (rev 2366)
@@ -17,12 +17,12 @@
<section id="introToBasics">
<?dbhtml filename="introToBasics.html"?>
<title>Introduction</title>
- <para>The framework is implemented as a component library which adds AJAX capability into existing
+ <para>The framework is implemented as a component library which adds Ajax capability into existing
pages, so you don't need to write any JavaScript code or to replace existing
- components with new AJAX widgets. <property>Ajax4jsf</property> enables page-wide AJAX support instead of the
+ components with new Ajax widgets. <property>Ajax4jsf</property> enables page-wide Ajax support instead of the
traditional component-wide support. So, you can define the event on the page that
- invokes an AJAX request and the areas of the page that should be synchronized with the JSF
- Component Tree after the AJAX request changes the data on the server according to the
+ invokes an Ajax request and the areas of the page that should be synchronized with the JSF
+ Component Tree after the Ajax request changes the data on the server according to the
events fired on the client.</para>
<para>Next Figure shows how it works:</para>
<figure>
@@ -34,7 +34,7 @@
</imageobject>
</mediaobject>
<para><property>Ajax4jsf</property> allows to define (by means of JSF tags) different parts of a JSF page you
- wish to update with an AJAX request and provide a few options to send AJAX requests to
+ wish to update with an Ajax request and provide a few options to send Ajax requests to
the server. Also JSF page doesn't change from a "regular" JSF
page and you don't need to write any JavaScript or XMLHttpRequest objects by hands, everything is done automatically.</para>
</section>
@@ -43,7 +43,7 @@
<title>Ajax4jsf Architecture Overview</title>
<para>Next figure lists several important elements of the <property>Ajax4jsf</property> framework</para>
<figure>
- <title>Ajax4jsf component structure</title>
+ <title>Core Ajax component structure</title>
</figure>
<mediaobject>
<imageobject>
@@ -52,14 +52,14 @@
</mediaobject>
<formalpara>
<title>Ajax Filter.</title>
- <para>To get all benefits of <property>Ajax4jsf</property>, you should register an AJAX Filter in web.xml
- file of your application.The AJAX Filter recognizes multiple request types. The sequence diagram on Figure 3
- shows the difference in processing of a "regular" JSF request and an AJAX request.</para>
+ <para>To get all benefits of <property>Ajax4jsf</property>, you should register an Ajax Filter in web.xml
+ file of your application.The Ajax Filter recognizes multiple request types. The sequence diagram on Figure 3
+ shows the difference in processing of a "regular" JSF request and an Ajax request.</para>
</formalpara>
<para>In the first case the whole JSF tree will be encoded,
- in the second one option it depends on the "size" of the AJAX region (you can define AJAX region
+ in the second one option it depends on the "size" of the Ajax region (you can define Ajax region
by using the <emphasis role="bold"><property><a4j:region></property></emphasis>). As you can see, in the second case the filter parses
- the content of an AJAX response before sending it to the client side.</para>
+ the content of an Ajax response before sending it to the client side.</para>
<para>Have a look at the next picture to understand these two ways:</para>
<figure>
<title>Request Processing sequence diagram</title>
@@ -71,10 +71,10 @@
</mediaobject>
<para>In both cases, the information about required static or dynamic resources that your application
requests is registered in the ResourseBuilder class.</para>
- <para>When a request for a resource comes (Figure 4), the AJAX filter checks the Resource Cache
+ <para>When a request for a resource comes (Figure 4), the Ajax filter checks the Resource Cache
for this resource and if it is there, the resource is sent to the client. Otherwise,
the filter searches for the resource among those that are registered by the
- ResourceBuilder. If the resource is registered, the AJAX filter will send a request to the
+ ResourceBuilder. If the resource is registered, the Ajax filter will send a request to the
ResourceBuilder to create (deliver) the resource.</para>
<para>Next Figure shows the ways of resource request processing.</para>
<figure>
@@ -88,15 +88,15 @@
<formalpara>
<title>AJAX Action Components</title>
<para>
- There are four AJAX Action Components: AjaxCommandButton, AjaxCommandLink, AjaxPoll and AjaxSupport.
- You can use them to send AJAX requests from the client side.
+ There are four Ajax Action Components: AjaxCommandButton, AjaxCommandLink, AjaxPoll and AjaxSupport.
+ You can use them to send Ajax requests from the client side.
</para>
</formalpara>
<formalpara>
<title>AJAX Containers</title>
<para>
AjaxContainer is an interface that describes an area on your JSF page that should be decoded
- during an AJAX request. AjaxViewRoot and AjaxRegion are implementations of this interface.
+ during an Ajax request. AjaxViewRoot and AjaxRegion are implementations of this interface.
</para>
</formalpara>
<formalpara>
@@ -113,7 +113,7 @@
<para>In order to create AJAX4JSF applications properly, keep the following points in mind:</para>
<itemizedlist>
<listitem>
- The AJAX framework should not append or delete, but only replace elements on the page. For successful updates, an element with the same ID as in the response must exist on the page. If you'd like to append any code to a page, put in a placeholder for it (any empty element). For the same reason, it's recommended to place messages in the<emphasis >
+ The Ajax framework should not append or delete, but only replace elements on the page. For successful updates, an element with the same ID as in the response must exist on the page. If you'd like to append any code to a page, put in a placeholder for it (any empty element). For the same reason, it's recommended to place messages in the<emphasis >
<property>"AjaxOutput"</property>
</emphasis> component (as no messages is also a message).
</listitem>
@@ -123,7 +123,7 @@
</emphasis> for self-rendered containers, since this component is transient and not saved in the tree.
</listitem>
<listitem>
- AJAX requests are made by XMLHttpRequest functions in XML format, but this XML bypasses most validations and the corrections that might be made in a browser. So, create only a strict standards-compliant code for HTML and XHTML, without skipping any required elements or attributes. Any necessary XML corrections are automatically made by the XML filter on the server, but lot's of unexpected effects can be produced by an incorrect HTML code.
+ Ajax requests are made by XMLHttpRequest functions in XML format, but this XML bypasses most validations and the corrections that might be made in a browser. So, create only a strict standards-compliant code for HTML and XHTML, without skipping any required elements or attributes. Any necessary XML corrections are automatically made by the XML filter on the server, but lot's of unexpected effects can be produced by an incorrect HTML code.
</listitem>
</itemizedlist>
</section>
@@ -132,8 +132,8 @@
<title>How To...</title>
<section id="SendAnAJAXRequest">
<?dbhtml filename="SendAnAJAXRequest.html"?>
- <title>Send an AJAX request</title>
- <para>There are different ways to send AJAX requests from your JSF page. You may use
+ <title>Send an Ajax request</title>
+ <para>There are different ways to send Ajax requests from your JSF page. You may use
<emphasis role="bold"><property><a4j:commandButton></property></emphasis>, <emphasis role="bold">
<property><a4j:commandLink></property>, <emphasis role="bold"><property><a4j:poll></property></emphasis>
</emphasis> or <emphasis role="bold">
@@ -141,8 +141,8 @@
</emphasis> tags.
</para>
<para>All these tags hide the usual JavaScript activities that are required for an XMHttpRequest
- object building and an AJAX request sending. Also, they allow you to decide which components of
- your JSF page are to be re-rendered as a result of the AJAX response (you can list the
+ object building and an Ajax request sending. Also, they allow you to decide which components of
+ your JSF page are to be re-rendered as a result of the Ajax response (you can list the
IDs of these components in the "reRender" attribute).
</para>
<para>
@@ -150,28 +150,28 @@
<property><a4j:commandButton></property>
</emphasis> and <emphasis role="bold">
<property><a4j:commandLink></property>
- </emphasis> tags are used to send an AJAX
+ </emphasis> tags are used to send an Ajax
request on "onclick" JavaScript event.
</para>
<para>
<emphasis role="bold">
<property><a4j:poll></property>
- </emphasis> tag is used to send an AJAX
+ </emphasis> tag is used to send an Ajax
request periodically using a timer.
</para>
<para>The <emphasis role="bold">
<property><a4j:support></property>
- </emphasis> tag allows you to add AJAX functionality to standard JSF components
- and send AJAX request onto a chosen JavaScript event: "onkeyup", "onmouseover",
+ </emphasis> tag allows you to add Ajax functionality to standard JSF components
+ and send Ajax request onto a chosen JavaScript event: "onkeyup", "onmouseover",
etc.
</para>
- <para>Most important attributes of components that provide AJAX request calling features are:</para>
+ <para>Most important attributes of components that provide Ajax request calling features are:</para>
<itemizedlist>
<listitem>
<emphasis >
<property>"reRender"</property>
</emphasis>attribute as it was mentioned <link linkend="SendAnAJAXRequest">before</link> specifies components to be reRendered
- after AJAX response. The attribute can be specified using EL expression and formed dynamicaly on the
+ after Ajax response. The attribute can be specified using EL expression and formed dynamicaly on the
server side (see <ulink url="index.html#FAQ">FAQ chapter</ulink>).
</listitem>
<listitem>
@@ -212,24 +212,24 @@
<title>Decide What to Send</title>
<para>You may describe a region on the page you wish to send to the server, in this way you can
control what part of the JSF View is decoded on the server side when you send an
- AJAX request.
+ Ajax request.
</para>
- <para>The easiest way to describe an AJAX region on your JSF page is to do nothing,
+ <para>The easiest way to describe an Ajax region on your JSF page is to do nothing,
because the content between the <emphasis role="bold">
<property><f:view></property>
</emphasis> and <emphasis role="bold">
<property></f:view></property>
</emphasis> tags is considered
- the default AJAX region.
+ the default Ajax region.
</para>
- <para>You may define multiple AJAX regions on the JSF page (they can even be nested) by using
+ <para>You may define multiple Ajax regions on the JSF page (they can even be nested) by using
the <emphasis role="bold">
<property><a4j:region></property>
</emphasis> tag.
</para>
- <para>If you wish to render the content of an AJAX response outside of the active region then
+ <para>If you wish to render the content of an Ajax response outside of the active region then
the value of the "renderRegionOnly" attribute should be set to "false". Otherwise, your
- AJAX updates are limited to elements of the active region.
+ Ajax updates are limited to elements of the active region.
</para>
</section>
<section id="DecideWhatToChange">
@@ -239,7 +239,7 @@
many cases.
</para>
<para>But you can not use this approach if your page contains, e.g. a <emphasis role="bold"><property><f:verbatim></property></emphasis>
- tag and you wish to update its content on an AJAX response.
+ tag and you wish to update its content on an Ajax response.
</para>
<para>The problem with the <emphasis role="bold">
<property><f:verbatim/></property>
@@ -254,7 +254,7 @@
tag inside of the output panel, then the content of the <emphasis role="bold">
<property><f:verbatim/></property>
</emphasis> tag and content of
- other panel's child tags could be updated on AJAX response. There are two ways to
+ other panel's child tags could be updated on Ajax response. There are two ways to
control this:
<itemizedlist>
<listitem>
@@ -274,7 +274,7 @@
<section id="RequestErrorsHandling">
<?dbhtml filename="RequestErrorsHandling.html"?>
<title>Request Errors Handling</title>
- <para>To execute your own code on the client in case of an error during AJAX request, it's necessary to redefine the standard "A4J.AJAX.onError " method:</para>
+ <para>To execute your own code on the client in case of an error during Ajax request, it's necessary to redefine the standard "A4J.AJAX.onError " method:</para>
<programlisting role="JAVA"><![CDATA[A4J.AJAX.onError = function(req,status,message) {
// Custom Developer Code
};]]></programlisting>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-08-21 11:46:56 UTC (rev 2365)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-08-21 11:47:45 UTC (rev 2366)
@@ -532,8 +532,8 @@
</h:inputText>]]></programlisting>
<para> So in this case
"<emphasis><property>doSomething()</property>"</emphasis>
- function is executed before the AJAX request. </para>
- <para> Besides, if this function returns "false", AJAX request
+ 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>
@@ -572,7 +572,7 @@
element as it was before. You may use <emphasis>
<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
+ 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>
<property>"onsubmit"</property>
@@ -616,7 +616,7 @@
<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>
+ Ajax action components inside table work properly). </para>
</section>
<!--<section id="RegionsInDataTables">
<?dbhtml filename="RegionsInDataTables.html"?>
@@ -634,7 +634,7 @@
<?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
+ 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
@@ -669,7 +669,7 @@
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>
+ 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>
@@ -685,7 +685,7 @@
...
</filter>]]></programlisting>
<para>The "false" setting for initialization parameter switches
- off application of filters for non-AJAX requests, if
+ 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
@@ -698,7 +698,7 @@
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>
+ updating via an Ajax error message inside a form:</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -737,7 +737,7 @@
<para>The <emphasis>
<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
+ client for response ignoring after an Ajax request if a newer request has
been already sent. <para> The additional information could be found <ulink
url="http://jboss.com/index.html?module=bb&op=viewtopic&t=105766"
>here</ulink>. </para>
@@ -810,7 +810,7 @@
<section id="CustomAjaxRequest">
<?dbhtml filename="CustomAjaxRequest.html"?>
- <title>Why custom AJAX request does not work?</title>
+ <title>Why custom Ajax request does not work?</title>
<para>More information about this problem could be found on the <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=114025"
>Ajax4Jsf Users Forum.</ulink>
@@ -844,7 +844,7 @@
<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
+ 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
@@ -855,12 +855,12 @@
<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.
+ 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
+ <para>Set reRender of an Ajax Action component on this wrapper
component instead of the component itself.</para>
</listitem>
</orderedlist>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCsetwebappl.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCsetwebappl.xml 2007-08-21 11:46:56 UTC (rev 2365)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCsetwebappl.xml 2007-08-21 11:47:45 UTC (rev 2366)
@@ -219,10 +219,10 @@
<?dbhtml filename="Environment.html" ?>
<title>Environment</title>
<para>
- To use Ajax4jsf framework you need JDK 1.4 or higher, any JSF implementation
+ To use RichFaces 3.1.0 framework you need JDK 1.4 or higher, any JSF implementation
and your favorite Servlet Container. To read more on the <property>Environments</property>, see further chapters.</para>
<para>
- Ajax4jsf is designed in an easy-to-use way, so that you should do only a few simple steps to get AJAX functionality in your JSF application.
+ RichFaces 3.1.0 is designed in an easy-to-use way, so that you should do only a few simple steps to get Ajax functionality in your JSF application.
</para>
</section>
<section id="DownloadingAjax4jsf">
@@ -280,7 +280,7 @@
</listitem>
<listitem>
- <para>Add the following line for each JSP page of your application where you are going to bring in AJAX functionality.</para>
+ <para>Add the following line for each JSP page of your application where you are going to bring in Ajax functionality.</para>
<programlisting role="XML"> <![CDATA[<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>]]></programlisting>
<para>For XHTML pages:</para>
<programlisting role="XML"><xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"></programlisting>
@@ -289,7 +289,7 @@
</section>
<section id="SimpleAJAXEchoProject">
<?dbhtml filename="SimpleAJAXEchoProject.html" ?>
- <title>Simple AJAX Echo Project </title>
+ <title>Simple Ajax Echo Project </title>
<para>
In our JSF project you need only one JSP page that has a form with a couple of child tags:
<emphasis role="bold">
@@ -329,11 +329,11 @@
</html>]]></programlisting>
<para>The only line that distinguishes this page from a "regular" JSF one is</para>
<programlisting role="XML"><![CDATA[<a4j:support event="onkeyup" reRender="rep"/>]]></programlisting>
- <para>The line adds an AJAX support to the parent <emphasis role="bold">
+ <para>The line adds an Ajax support to the parent <emphasis role="bold">
<property><h:inputText></property>
</emphasis> tag. This support is
bound to "onkeyup" JavaScript event, so that each time when this event is fired on the
- parent tag, our application sends an AJAX request to the server. It means that the
+ parent tag, our application sends an Ajax request to the server. It means that the
text field pointed to our managed bean property contains up-to-date value of our input.
</para>
<para>
18 years, 8 months
JBoss Rich Faces SVN: r2365 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-21 07:46:56 -0400 (Tue, 21 Aug 2007)
New Revision: 2365
Modified:
trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml
trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/columnGroup.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/commandButton.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml
trunk/docs/userguide/en/src/main/docbook/included/commandLink.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/dataGrid.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/dataList.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/dataTable.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
trunk/docs/userguide/en/src/main/docbook/included/datascroller.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml
trunk/docs/userguide/en/src/main/docbook/included/dropZone.xml
trunk/docs/userguide/en/src/main/docbook/included/form.desc.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/include.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/include.xml
trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
trunk/docs/userguide/en/src/main/docbook/included/listener.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml
trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
trunk/docs/userguide/en/src/main/docbook/included/outputPanel.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/page.xml
trunk/docs/userguide/en/src/main/docbook/included/poll.xml
trunk/docs/userguide/en/src/main/docbook/included/region.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/repeat.xml
trunk/docs/userguide/en/src/main/docbook/included/status.xml
trunk/docs/userguide/en/src/main/docbook/included/subTable.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
trunk/docs/userguide/en/src/main/docbook/included/support.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/support.xml
Log:
http://jira.jboss.com/jira/browse/RF-622
Modified: trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -83,7 +83,7 @@
<section>
<title>Relevant resources links</title>
<para>More information can be found on the <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063764"
- >Ajax4JSF Users Forum</ulink>.</para>
+ >Ajax4jsf Users Forum</ulink>.</para>
<para>
To see how component works on practice, look at a4j-actionparam example from
<ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/actionparam.jsf?c=act...">RichFaces Live Demo</ulink>.
Modified: trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<section>
<para>The <emphasis role="bold"><property><a4j:ajaxListener></property></emphasis>
-component is the same one as "ActionListener" or "ValueChangeListener", but for an AJAX container.</para>
+component is the same one as "ActionListener" or "ValueChangeListener", but for an Ajax container.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/columnGroup.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/columnGroup.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/columnGroup.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -22,7 +22,7 @@
<itemizedlist>
<listitem>Completely skinned table columns and child elements</listitem>
<listitem>Possibility to combine columns and rows inside</listitem>
- <listitem>Possibility to update a limited set of strings with AJAX </listitem>
+ <listitem>Possibility to update a limited set of strings with Ajax </listitem>
</itemizedlist>
</section>
</section>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/commandButton.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/commandButton.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandButton.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -6,6 +6,6 @@
<property><a4j:commandButton></property>
</emphasis>component is very similar to the<emphasis role="bold">
<property><h:commandButton></property>
- </emphasis>component, the only difference is that an AJAX form submit is generated on a click and it allows dynamic rerendering after a response comes back. It's not necessary to plug any support into the component, as AJAX support is already built in.</para>
+ </emphasis>component, the only difference is that an Ajax form submit is generated on a click and it allows dynamic rerendering after a response comes back. It's not necessary to plug any support into the component, as Ajax support is already built in.</para>
</section>
</chapter>
\ 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-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -33,7 +33,7 @@
<title>Creating on a page</title>
<para><emphasis role="bold"><property><a4j:commandButton></property></emphasis> is used in the same way as <emphasis role="bold"><property><h:commandButton></property></emphasis>, but with definition of the area that is updated after the response comes back from the server.</para>
<programlisting role="XML"><![CDATA[<a4j:commandButton reRender="someData" action="#{bean.action1}" value="Link"/>]]></programlisting>
- <para>This definition of the component provides a link, a click on the link causes an AJAX form submit on the server, "action1" method performance, and rendering of the component with "someData" id after the response comes back from the server.</para>
+ <para>This definition of the component provides a link, a click on the link causes an Ajax form submit on the server, "action1" method performance, and rendering of the component with "someData" id after the response comes back from the server.</para>
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
@@ -52,13 +52,13 @@
<para>The component <emphasis role="bold"><property><a4j:commandButton></property></emphasis> placed on a page generates the following HTML code:</para>
<programlisting role="XHTML"><![CDATA[<input type="submit" onclick="A4J.AJAX.Submit(...request parameters);return false;" value="sort"/>
]]></programlisting>
- <para>Hence, the utility method "A4J.AJAX.Submit" is called on a click, the method performs AJAX request as the <emphasis role="bold"><property><a4j:support></property></emphasis> component</para>
+ <para>Hence, the utility method "A4J.AJAX.Submit" is called on a click, the method performs Ajax request as the <emphasis role="bold"><property><a4j:support></property></emphasis> component</para>
<note>
<title>Note:</title>
<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 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>
+ <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 Core Ajax 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>
<section>
<title>Relevant resources links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/commandLink.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/commandLink.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandLink.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -6,6 +6,6 @@
<property><a4j:commandLink></property>
</emphasis>component is very similar to the <emphasis role="bold">
<property><h:commandLink></property>
- </emphasis> component, the only difference is that an AJAX form submit is generated on a click and it allows dynamic rerendering after a response comes back. It's not necessary to plug any support into the component, as AJAX support is already built in.</para>
+ </emphasis> component, the only difference is that an Ajax form submit is generated on a click and it allows dynamic rerendering after a response comes back. It's not necessary to plug any support into the component, as Ajax support is already built in.</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-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -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, and 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>
@@ -61,13 +61,13 @@
<span style="color: black;">Link Value</span>
</a>
]]></programlisting>
- <para>Hence, the utility method "A4J.AJAX.Submit" is called on a click, the method performs AJAX request as the <emphasis role="bold"><property><a4j:support></property></emphasis> component</para>
+ <para>Hence, the utility method "A4J.AJAX.Submit" is called on a click, the method performs Ajax request as the <emphasis role="bold"><property><a4j:support></property></emphasis> component</para>
<note>
<title>Note:</title>
<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>As any Ajax4jsf component sending AJAX requests and processing server responses <emphasis role="bold"><property><a4j:commandLink></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, etc.)</para>
+ <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>As any Core Ajax component sending Ajax requests and processing server responses <emphasis role="bold"><property><a4j:commandLink></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, etc.)</para>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -8,7 +8,7 @@
<section>
<title>Description</title>
<para>The component for definition lists rendering that allows choosing data from a model
- and obtains built-in support of AJAX updates.</para>
+ and obtains built-in support of Ajax updates.</para>
<figure>
<title>DataDefinitionList component</title>
<mediaobject>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataGrid.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataGrid.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataGrid.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -8,7 +8,7 @@
<section>
<title>Description</title>
<para>The component to render data as a grid that allows choosing data from a model
- and obtains built-in support of AJAX updates.</para>
+ and obtains built-in support of Ajax updates.</para>
<figure>
<title>DataGrid component</title>
<mediaobject>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataList.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataList.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataList.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -8,7 +8,7 @@
<section>
<title>Description</title>
<para>The component for unordered lists rendering that allows choosing data from a model
- and obtains built-in support of AJAX updates.</para>
+ and obtains built-in support of Ajax updates.</para>
<figure>
<title>DataList component</title>
<mediaobject>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -8,7 +8,7 @@
<section>
<title>Description</title>
<para>The component for ordered lists rendering that allows choosing data from a model
- and obtains built-in support of AJAX updates.</para>
+ and obtains built-in support of Ajax updates.</para>
<figure>
<title>DataOrderedList component</title>
<mediaobject>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataTable.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataTable.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataTable.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -8,7 +8,7 @@
<section>
<title>Description</title>
<para>The component for tables rendering that allows choosing data from a model and obtains
- built-in support of AJAX updates.</para>
+ built-in support of Ajax updates.</para>
<figure>
<title>DataTable component</title>
<mediaobject>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -76,13 +76,13 @@
<itemizedlist>
<listitem>Skin support. The <property>table</property> completely meets a three-class
principle of Rich Faces skinnability</listitem>
- <listitem>Support of AJAX updates for a limited set of strings</listitem>
+ <listitem>Support of Ajax updates for a limited set of strings</listitem>
</itemizedlist>
<para>Skins support is described in the <link linkend="ArchitectureOverview">corresponding
- section</link>. AJAX support is possible because the component is created basing on the
+ section</link>. Ajax support is possible because the component is created basing on the
<emphasis role="bold">
<property><a4j:repeat></property>
- </emphasis> component and as a result the component has its possibilities of AJAX updates for
+ </emphasis> component and as a result the component has its possibilities of Ajax updates for
a limited set of strings. The component is implemented with the <emphasis>
<property>"ajaxKeys"</property>
</emphasis> attribute for a <property>table</property> and in contrast to the <emphasis
Modified: trunk/docs/userguide/en/src/main/docbook/included/datascroller.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/datascroller.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/datascroller.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -7,7 +7,7 @@
</sectioninfo>
<section>
<title>Description</title>
- <para>The component designed for providing the functionality of tables scrolling using AJAX
+ <para>The component designed for providing the functionality of tables scrolling using Ajax
requests.</para>
<figure>
<title>Datascroller component</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -145,7 +145,7 @@
</listitem>
</itemizedlist>
- <para>An AJAX form submission is performed, and specified elements in the <emphasis>
+ <para>An Ajax form submission is performed, and specified elements in the <emphasis>
<property>"reRender"</property>
</emphasis> attribute are rerendered.</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -216,7 +216,7 @@
table and dropped on a panel in the middle. After each drop, a drop event is generated and a
common Ajax request is performed that renders results in the third table.</para>
- <para>As with every AJAX action component, <emphasis role="bold">
+ <para>As with every Ajax action component, <emphasis role="bold">
<property><rich:dropSupport></property>
</emphasis> has all the common attributes (<emphasis><property>"timeout"</property>,</emphasis>
<emphasis><property>"limitToList"</property>,</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropZone.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropZone.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropZone.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -100,7 +100,7 @@
]]></programlisting>
<para>Thus, here is a drag zone indicator of iconsDragged type that obtains DropIcon parameter
the same one as richParam gets. </para>
- <para>As any AJAX action, <property>dropZone</property> has all custom attributes of Ajax requests
+ <para>As any Ajax action, <property>dropZone</property> has all custom attributes of Ajax requests
customization (<emphasis ><property>"timeout"</property></emphasis>,
<emphasis ><property>"limitToList"</property></emphasis>,
<emphasis ><property>"reRender"</property></emphasis>, etc). To read more
Modified: trunk/docs/userguide/en/src/main/docbook/included/form.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/form.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/form.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -4,6 +4,6 @@
<title>Description</title>
<para>The <emphasis role="bold">
<property><a4j:form></property>
- </emphasis> component is very similar to the same component from the JSF HTML library, the only slight difference is in generation of links inside and possibility of AJAX by-default submission.</para>
+ </emphasis> component is very similar to the same component from the JSF HTML library, the only slight difference is in generation of links inside and possibility of Ajax by-default submission.</para>
</section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/included/form.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/form.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/form.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -53,10 +53,10 @@
</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 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>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 have appeared. With a new attribute definition as ajax=<emphasis >
<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 >
+ </emphasis>, it becomes possible to set Ajax submission way for any components inside, i.e. not a page URL is used as an <emphasis >
<property>"action"</property>
</emphasis> attribute, but the javascript:A4J.AJAX.Submit(...) call. In this case, rendering is defined as reRender=list of Ids for the form element itself.</para>
<para>Example</para>
@@ -74,13 +74,13 @@
]]></programlisting>
<para>This example shows that in order to make <emphasis role="bold">
<property><t:dataScroller></property>
- </emphasis> submissions to be AJAX ones it's required only to place this <emphasis role="bold">
+ </emphasis> submissions to be Ajax ones it's required only to place this <emphasis role="bold">
<property><t:dataScroller></property>
</emphasis> into <emphasis role="bold">
<property><a4j:form></property>
</emphasis>. In the other case it is necessary to redefine renders for its child links elements that are defined as <emphasis role="bold">
<property><h:commandLink></property>
- </emphasis> and can't be made AJAX ones with using e.g. <emphasis role="bold">
+ </emphasis> and can't be made Ajax ones with using e.g. <emphasis role="bold">
<property><a4j:support></property>
</emphasis>.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -57,7 +57,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 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>
+ </emphasis> elements are always rendered and it doesn't depend on links rendering on the initial page. It solves the problem with invalid links that weren't rendered on a page immediately, but after some Ajax request.</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/include.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/include.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/include.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -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 implementation 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-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/include.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -42,7 +42,7 @@
<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 navigation inside a page defined in viewId any components responsible for Ajax requests to the server generation are used.</para>
<para>For example, the following component on the page "/pages/include/first.xhtml"</para>
<para>
@@ -65,7 +65,7 @@
</navigation-case>
</navigation-rule>
]]></programlisting>
-<para>In this case after a click on a button defined inside "first.xhtml" view, navigation is performed after an AJAX request (the same as standard JSF one) only inside this view.</para>
+<para>In this case after a click on a button defined inside "first.xhtml" view, navigation is performed after an Ajax request (the same as standard JSF one) only inside this view.</para>
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
@@ -76,7 +76,7 @@
]]></programlisting>
<para>If <emphasis role="bold">
<property><a4j:include></property>
- </emphasis> is defined this way, any AJAX request returning outcome inside generates navigation with this <emphasis role="bold">
+ </emphasis> is defined this way, any Ajax request returning outcome inside generates navigation with this <emphasis role="bold">
<property><a4j:include></property>
</emphasis>.</para>
<para>Ajax Action for navigation implementation inside view must be placed inside <emphasis role="bold">
@@ -90,7 +90,7 @@
<property><a4j:include></property>
</emphasis>returns outcome defined as <emphasis role="bold">
<property><redirect/></property>,
- </emphasis> AJAX submit is performed with navigation of the whole 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>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -72,9 +72,9 @@
the page fired after calling function. </para>
<para> When using the <emphasis role="bold">
<property><a4j:jsFunction></property>
- </emphasis> it's possible to initiate the AJAX request from the JavaScript and
+ </emphasis> it's possible to initiate the Ajax request from the JavaScript and
perform partial update of a page and/or invoke the JavaScript function with data returned by
- AJAX response. </para>
+ Ajax response. </para>
<programlisting role="XML"><![CDATA[...
<body onload="callScript()">
...
@@ -96,7 +96,7 @@
<property><a4j:actionparam></property>
</emphasis> or pure <emphasis role="bold">
<property><f:param></property>
- </emphasis> for passing any number of parameters of the JavaScript function into AJAX request.
+ </emphasis> for passing any number of parameters of the JavaScript function into Ajax request.
<emphasis role="bold">
<property><a4j:jsFunction></property>
</emphasis> is similar to <emphasis role="bold">
Modified: trunk/docs/userguide/en/src/main/docbook/included/listener.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/listener.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/listener.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -6,6 +6,6 @@
<property><f:action></property>
</emphasis> or <emphasis role="bold">
<property><f:value></property>
- </emphasis> components but it is used for an AJAX container.
+ </emphasis> components but it is used for an Ajax container.
</para>
</section>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -94,7 +94,7 @@
</itemizedlist>
<note><title>Note:</title>A bean class transmitted into value should implement Serializable interface.
</note>
- <para>Hence, when using the component it's possible to output user data of any type on a page with AJAX requests.</para>
+ <para>Hence, when using the component it's possible to output user data of any type on a page with Ajax requests.</para>
</section>
<!--
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -118,7 +118,7 @@
</listitem>
</itemizedlist>
- <para>An AJAX form submission is performed, and specified elements in the <emphasis>
+ <para>An Ajax form submission is performed, and specified elements in the <emphasis>
<property>"reRender"</property>
</emphasis> attribute are rerendered.</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/outputPanel.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/outputPanel.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/outputPanel.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -2,6 +2,6 @@
<root>
<section>
<title>Description</title>
- <para>The component is used for components grouping in the AJAX output area, which offers several additional output opportunities such as inserting of non-present in tree components, saving of transient elements after Ajax request and some others.</para>
+ <para>The component is used for components grouping in the Ajax output area, which offers several additional output opportunities such as inserting of non-present in tree components, saving of transient elements after Ajax request and some others.</para>
</section>
</root>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/page.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -77,9 +77,9 @@
<property><f:view></property>
</emphasis> doesn't get control over the "<emphasis >
<property>RENDER_RESPONSE</property>
- </emphasis>" phase, thus AJAX can't get control and make a response also. To avoid this problem it was necessary to use <emphasis role="bold">
+ </emphasis>" phase, thus Ajax can't get control and make a response also. To avoid this problem it was necessary to use <emphasis role="bold">
<property><a4j:page></property>
- </emphasis> on the page round the AJAX updatable area. In the last versions of both frameworks the problem is successfully fixed and no <emphasis role="bold"><property><a4j:page></property></emphasis> usage is required.</para>
+ </emphasis> on the page round the Ajax updatable area. In the last versions of both frameworks the problem is successfully fixed and no <emphasis role="bold"><property><a4j:page></property></emphasis> usage is required.</para>
<para>The component is rendered as a full HTML page template (it was shown in the example). The "<emphasis >
<property>head</property>
</emphasis>" section is defined with the help of the corresponding facet with the name="head" and also there is an attribute with the same name for contentType definition.</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/poll.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -42,7 +42,7 @@
]]></programlisting>
<para>The <emphasis role="bold">
<property><a4j:poll></property>
- </emphasis> component defined this way every second submits AJAX form onto the server, performs the corresponding action and renders a components with the <emphasis >
+ </emphasis> component defined this way every second submits Ajax form onto the server, performs the corresponding action and renders a components with the <emphasis >
<property>"someDataTable"</property>
</emphasis> id after a response comes back.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/region.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/region.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/region.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -5,7 +5,7 @@
<para>
The <emphasis role="bold">
<property><a4j:region></property>
-</emphasis> component defines an area that is decoded on the server after AJAX submission.
+</emphasis> component defines an area that is decoded on the server after Ajax submission.
</para>
</section>
</root>
Modified: trunk/docs/userguide/en/src/main/docbook/included/repeat.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/repeat.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/repeat.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -59,7 +59,7 @@
<title>Key attributes and ways of usage</title>
<para>The main difference of this component from iterative components of other libraries is a special <emphasis >
<property>"ajaxKeys"</property>
- </emphasis> attribute. This attribute defines strings that are updated after an AJAX request. As a result it becomes easier to update several child components separately without updating the whole page.</para>
+ </emphasis> attribute. This attribute defines strings that are updated after an Ajax request. As a result it becomes easier to update several child components separately without updating the whole page.</para>
<programlisting role="JSP"><![CDATA[<a4j:poll intervall="1000" action="#{repeater.action}" reRender="list">
...
<table>
@@ -80,7 +80,7 @@
</emphasis> is output.</para>
<para>In the above-mentioned example the component <emphasis role="bold">
<property><a4j:poll></property>
- </emphasis> sends AJAX requests every second, calling the <emphasis >
+ </emphasis> sends Ajax requests every second, calling the <emphasis >
<property>"action"</property>
</emphasis> method of the <emphasis >
<property>"repeater"</property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/status.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/status.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/status.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -71,7 +71,7 @@
</section>
<section>
<title>Key attributes and ways of usage</title>
- <para>There are two ways for components or containers definition, which AJAX requests status is tracked by a component.<itemizedlist>
+ <para>There are two ways for components or containers definition, which Ajax requests status is tracked by a component.<itemizedlist>
<listitem>
Definition with the <emphasis >
<property>"for"</property>
@@ -81,7 +81,7 @@
</emphasis> component. Here <emphasis >
<property>"for"</property>
</emphasis>
-attribute should point at an AJAX container (<emphasis role="bold"><property><a4j:region></property></emphasis>) "id", which requests are tracked by a component.
+attribute should point at an Ajax container (<emphasis role="bold"><property><a4j:region></property></emphasis>) "id", which requests are tracked by a component.
</listitem>
</itemizedlist><itemizedlist>
<listitem>
@@ -95,7 +95,7 @@
</emphasis> component shows the status for the request fired from this action component.
</listitem>
</itemizedlist></para>
- <para>The component creates two <emphasis role="bold"><property><span></property></emphasis> elements with content defined for each status, one of the elements (start) is initially hidden. At the beginning of an AJAX request, elements state is inversed, hence the second element is shown and the first is hidden. At the end of a response processing, elements display states return to its initial values.</para>
+ <para>The component creates two <emphasis role="bold"><property><span></property></emphasis> elements with content defined for each status, one of the elements (start) is initially hidden. At the beginning of an Ajax request, elements state is inversed, hence the second element is shown and the first is hidden. At the end of a response processing, elements display states return to its initial values.</para>
<para>Example:</para>
<programlisting role="XML"><![CDATA[<a4j:status startText="Started" stopText="stopped" layout="block"/>]]></programlisting>
<para>is decoded on a page as:</para><programlisting role="XML"><![CDATA[<span id="j_id20:status.start" style="display: none">
@@ -104,7 +104,7 @@
<span id="j_id20:status.stop">
Stopped
</span>]]></programlisting>
- <para>And after the generation of an AJAX response is changed to:</para>
+ <para>And after the generation of an Ajax response is changed to:</para>
<programlisting role="XML"><![CDATA[<span id="j_id20:status.start">
Started
</span>
Modified: trunk/docs/userguide/en/src/main/docbook/included/subTable.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/subTable.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/subTable.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -13,7 +13,7 @@
<section>
<title>Description</title>
<para>The component is used for inserting <property>subtables</property> into tables with opportunity to choose data from a model
- and built-in AJAX updates support.</para>
+ and built-in Ajax updates support.</para>
<figure>
<title>SubTable element</title>
<mediaobject>
Modified: trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -78,11 +78,11 @@
of the master - details type. The component is also has common peculiarities of any rich component:</para>
<itemizedlist>
<listitem>Skin support. The table completely meets a three-class principle of Rich Faces skinnability</listitem>
- <listitem>Support of AJAX updates for a limited set of rows</listitem>
+ <listitem>Support of Ajax updates for a limited set of rows</listitem>
</itemizedlist>
- <para>Skins support is described in the <link linkend="ArchitectureOverview">corresponding section</link>. AJAX support is
+ <para>Skins support is described in the <link linkend="ArchitectureOverview">corresponding section</link>. Ajax support is
possible because the component is created basing on the <emphasis role="bold"><property><a4j:repeat></property></emphasis> component and as a result the
- component has its possibilities of AJAX updates for a limited set of rows. The component is implemented
+ component has its possibilities of Ajax updates for a limited set of rows. The component is implemented
with the <emphasis ><property>"ajaxKeys"</property></emphasis> attribute for a table and in contrast to the <emphasis role="bold"><property><a4j:repeat></property></emphasis> outputs the standard HTML
structure for table rendering.</para>
<programlisting role="XML"><![CDATA[...
Modified: trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -181,7 +181,7 @@
(for additional information, read JSF Reference) and custom attribute managing AJAX
requests sending (for additional information, see <ulink
url="http://www.jboss.org/projects/jbossajax4jsf">Ajax4JSF Project</ulink>).</para>
- <para>In addition to these attributes common for AJAX action components and limiting
+ <para>In addition to these attributes common for Ajax action components and limiting
requests quantity and frequency, <property>suggestionBox</property> has one more its own
attribute limiting requests (the <emphasis>
<property>"minChars"</property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.desc.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.desc.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -4,6 +4,6 @@
<title>Description</title>
<para>The <emphasis role="bold">
<property><a4j:support></property>
- </emphasis> component adds an AJAX support to any existing JSF component. It allows a component to generate asynchronous requests on the necessary event demand and with partial update of page content after a response incoming from the server.</para>
+ </emphasis> component adds an Ajax support to any existing JSF component. It allows a component to generate asynchronous requests on the necessary event demand and with partial update of page content after a response incoming from the server.</para>
</section>
</root>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-08-21 09:20:37 UTC (rev 2364)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-08-21 11:46:56 UTC (rev 2365)
@@ -35,8 +35,8 @@
<title>Creating on a page</title>
<para>To use a component, place <emphasis role="bold">
<property><a4j:support></property>
- </emphasis> as nested to the component requesting AJAX functionality and specify an event of a
- parent component that generates AJAX request and the components to be rerendered after a response
+ </emphasis> as nested to the component requesting Ajax functionality and specify an event of a
+ parent component that generates Ajax request and the components to be rerendered after a response
from the server.</para>
<para><emphasis role="bold">Example:</emphasis></para>
<programlisting role="XML"><![CDATA[<h:inputText value="#{bean.text}">
@@ -85,7 +85,7 @@
</note>
<para>With the help of <emphasis >
<property>"onsubmit"</property></emphasis> and <emphasis >
- <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>
+ <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"/>
@@ -95,7 +95,7 @@
{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>The components allows different AJAX request managing ways for its various optimization in particular conditions such as:
+ <para>The components allows different Ajax request managing ways for its various optimization in particular conditions such as:
<itemizedlist>
<listitem>
<emphasis role="bold">Limitation of the submit area and updating area for the request.</emphasis>
@@ -123,7 +123,7 @@
</h:inputText>
<h:outputText value="#{person.name}" id="test"/>
</form>]]></programlisting>
- <para>In this example the component "h:messages" is always updated (as it capturing all AJAX requests, located in ajaxRendered <emphasis role="bold"><property><a4j:outputPanel></property></emphasis>), except the case when a response is sent from the input component from the example. On sending this component marks that updating area is limited to the defined in it components, it means that on its usage with "limitToList"="true" the only component updated is the one with "d"="test".</para>
+ <para>In this example the component "h:messages" is always updated (as it capturing all Ajax requests, located in ajaxRendered <emphasis role="bold"><property><a4j:outputPanel></property></emphasis>), except the case when a response is sent from the input component from the example. On sending this component marks that updating area is limited to the defined in it components, it means that on its usage with "limitToList"="true" the only component updated is the one with "d"="test".</para>
<itemizedlist>
<listitem>
<emphasis role="bold">Limitation of requests frequency and updates quantity after the responses. </emphasis>
@@ -133,7 +133,7 @@
<para><emphasis ><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 ><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.
+ <para><emphasis ><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.
</para>
<para><emphasis ><property>"timeout"</property></emphasis> is an attribute that allows to set a time interval in millisecond to define a maximum time period of response wait time. In case of the interval interaction, a new request is sent and the previous one is canceled. Postprocessing of a response isn't performed.
</para>
18 years, 8 months
JBoss Rich Faces SVN: r2364 - trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script.
by richfaces-svn-commits@lists.jboss.org
Author: a.izobov
Date: 2007-08-21 05:20:37 -0400 (Tue, 21 Aug 2007)
New Revision: 2364
Modified:
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
Log:
http://jira.jboss.com/jira/browse/RF-641 fixed
Modified: trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
===================================================================
--- trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-08-21 01:08:19 UTC (rev 2363)
+++ trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-08-21 09:20:37 UTC (rev 2364)
@@ -54,6 +54,9 @@
this.documentBodyOload = this.load.bindAsEventListener(this);
Event.observe(window, "load", this.documentBodyOload);
+ this.eventWindowResized = this.windowResized.bindAsEventListener(this);
+ Event.observe(window, "resize", this.eventWindowResized);
+
if(!this.options.disabled){
//this.eventMouseUp = this.endDrag.bindAsEventListener(this);
this.eventMouseUp = this.processMouseUp.bindAsEventListener(this);
@@ -134,6 +137,10 @@
}
},
+ windowResized : function(evt){
+ this.setValue(this.value);
+ },
+
findTableForTrack: function(elem) {
var parent = elem.parentElement || elem.parentNode;
if (parent.tagName.toUpperCase()=="TABLE") {
18 years, 8 months
JBoss Rich Faces SVN: r2363 - in trunk/samples/seamEAR: ejbs/src/main and 19 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-08-20 21:08:19 -0400 (Mon, 20 Aug 2007)
New Revision: 2363
Added:
trunk/samples/seamEAR/ejbs/src/main/java/
trunk/samples/seamEAR/ejbs/src/main/java/org/
trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/
trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/
trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/StatelessBean.java
trunk/samples/seamEAR/ejbs/src/main/resources/META-INF/MANIFEST.MF
trunk/samples/seamEAR/primary-source/src/
trunk/samples/seamEAR/primary-source/src/main/
trunk/samples/seamEAR/primary-source/src/main/java/
trunk/samples/seamEAR/primary-source/src/main/java/META-INF/
trunk/samples/seamEAR/primary-source/src/main/java/META-INF/MANIFEST.MF
trunk/samples/seamEAR/primary-source/src/main/resources/
trunk/samples/seamEAR/projects/logging/META-INF/
trunk/samples/seamEAR/projects/logging/META-INF/MANIFEST.MF
trunk/samples/seamEAR/wars/seamWebapp/src/main/java/
trunk/samples/seamEAR/wars/seamWebapp/src/main/java/org/
trunk/samples/seamEAR/wars/seamWebapp/src/main/java/org/richfaces/
trunk/samples/seamEAR/wars/seamWebapp/src/main/java/org/richfaces/seam/
trunk/samples/seamEAR/wars/seamWebapp/src/main/java/org/richfaces/seam/ViewBean.java
trunk/samples/seamEAR/wars/seamWebapp/src/main/resources/
trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/META-INF/
trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/META-INF/MANIFEST.MF
trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/pages/
Modified:
trunk/samples/seamEAR/ejbs/pom.xml
Log:
Continue to test seam compability
Modified: trunk/samples/seamEAR/ejbs/pom.xml
===================================================================
--- trunk/samples/seamEAR/ejbs/pom.xml 2007-08-21 01:07:29 UTC (rev 2362)
+++ trunk/samples/seamEAR/ejbs/pom.xml 2007-08-21 01:08:19 UTC (rev 2363)
@@ -22,6 +22,31 @@
<groupId>org.richfaces.samples.seamEAR.projects</groupId>
<artifactId>logging</artifactId>
</dependency>
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-seam-core</artifactId>
+ <version>2.0.0.BETA</version>
+ <systemPath>${seamHome}/jboss-seam.jar</systemPath>
+ <scope>system</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-api</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>javax.ejb</groupId>
+ <artifactId>ejb-api</artifactId>
+ <version>3.0</version>
+ <scope>provided</scope>
+ <optional>true</optional>
+ </dependency>
</dependencies>
<build>
<finalName>ejbs</finalName>
Added: trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/StatelessBean.java
===================================================================
--- trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/StatelessBean.java (rev 0)
+++ trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/StatelessBean.java 2007-08-21 01:08:19 UTC (rev 2363)
@@ -0,0 +1,18 @@
+/**
+ *
+ */
+package org.richfaces.seam;
+
+import javax.ejb.Stateless;
+
+import org.jboss.seam.annotations.Name;
+
+/**
+ * @author asmirnov
+ *
+ */
+@Name("stateless")
+@Stateless
+public class StatelessBean {
+
+}
Property changes on: trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/StatelessBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/samples/seamEAR/ejbs/src/main/resources/META-INF/MANIFEST.MF
===================================================================
--- trunk/samples/seamEAR/ejbs/src/main/resources/META-INF/MANIFEST.MF (rev 0)
+++ trunk/samples/seamEAR/ejbs/src/main/resources/META-INF/MANIFEST.MF 2007-08-21 01:08:19 UTC (rev 2363)
@@ -0,0 +1,2 @@
+Manifest-Version: 1.0
+
Property changes on: trunk/samples/seamEAR/ejbs/src/main/resources/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/samples/seamEAR/primary-source/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- trunk/samples/seamEAR/primary-source/src/main/java/META-INF/MANIFEST.MF (rev 0)
+++ trunk/samples/seamEAR/primary-source/src/main/java/META-INF/MANIFEST.MF 2007-08-21 01:08:19 UTC (rev 2363)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/samples/seamEAR/primary-source/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/samples/seamEAR/projects/logging/META-INF/MANIFEST.MF
===================================================================
--- trunk/samples/seamEAR/projects/logging/META-INF/MANIFEST.MF (rev 0)
+++ trunk/samples/seamEAR/projects/logging/META-INF/MANIFEST.MF 2007-08-21 01:08:19 UTC (rev 2363)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/samples/seamEAR/projects/logging/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/samples/seamEAR/wars/seamWebapp/src/main/java/org/richfaces/seam/ViewBean.java
===================================================================
--- trunk/samples/seamEAR/wars/seamWebapp/src/main/java/org/richfaces/seam/ViewBean.java (rev 0)
+++ trunk/samples/seamEAR/wars/seamWebapp/src/main/java/org/richfaces/seam/ViewBean.java 2007-08-21 01:08:19 UTC (rev 2363)
@@ -0,0 +1,18 @@
+/**
+ *
+ */
+package org.richfaces.seam;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+
+/**
+ * @author asmirnov
+ *
+ */
+@Name("viewBean")
+(a)Scope(ScopeType.PAGE)
+public class ViewBean {
+
+}
Property changes on: trunk/samples/seamEAR/wars/seamWebapp/src/main/java/org/richfaces/seam/ViewBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/META-INF/MANIFEST.MF (rev 0)
+++ trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/META-INF/MANIFEST.MF 2007-08-21 01:08:19 UTC (rev 2363)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
18 years, 8 months
JBoss Rich Faces SVN: r2362 - in trunk/samples/richfaces-demo/src/main: java/org/richfaces/demo/media and 15 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-08-20 21:07:29 -0400 (Mon, 20 Aug 2007)
New Revision: 2362
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/media/
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/media/MediaBean.java
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaBean.java
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaData.java
trunk/samples/richfaces-demo/src/main/webapp/images/cn_include2.gif
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/snippet/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/snippet/navigation.xml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/examples/jpeg.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/usage.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wizard.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep1.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml
Log:
demo update. include and media output
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/media/MediaBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/media/MediaBean.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/media/MediaBean.java 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,28 @@
+package org.richfaces.demo.media;
+
+import java.awt.Graphics2D;
+import java.awt.image.BufferedImage;
+import java.io.IOException;
+import java.io.OutputStream;
+import javax.imageio.ImageIO;
+
+public class MediaBean {
+
+ public void paint(OutputStream out, Object data) throws IOException{
+ if (data instanceof MediaData) {
+
+ MediaData paintData = (MediaData) data;
+ BufferedImage img = new BufferedImage(paintData.getWidth(),paintData.getHeight(),BufferedImage.TYPE_INT_RGB);
+ Graphics2D graphics2D = img.createGraphics();
+ graphics2D.setBackground(paintData.getBackground());
+ graphics2D.setColor(paintData.getDrawColor());
+ graphics2D.clearRect(0,0,paintData.getWidth(),paintData.getHeight());
+ graphics2D.drawLine(5,5,paintData.getWidth()-5,paintData.getHeight()-5);
+ graphics2D.drawChars(new String("RichFaces").toCharArray(),0,9,40,15);
+ graphics2D.drawChars(new String("mediaOutput").toCharArray(),0,11,5,45);
+
+ ImageIO.write(img,"jpeg",out);
+
+ }
+ }
+}
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-08-20 22:50:19 UTC (rev 2361)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-08-21 01:07:29 UTC (rev 2362)
@@ -55,8 +55,8 @@
loadScript= ajaxResources, Script, /images/ico_common.gif, /images/cn_Script.gif, RichFacesComponentsLibrary.html#loadScript, jbossajax4jsf/freezone/docs/tlddoc/a4j/loadScript.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIResource.html, /richfaces/script.jsf
loadStyle= ajaxResources, Style, /images/ico_common.gif, /images/cn_Style.gif, RichFacesComponentsLibrary.html#loadStyle, jbossajax4jsf/freezone/docs/tlddoc/a4j/loadStyle.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIResource.html, /richfaces/style.jsf
keepAlive= ajaxResources, Keep Alive, /images/ico_common.gif, /images/cn_KeepAlive.gif, RichFacesComponentsLibrary.html#keepAlive, jbossajax4jsf/freezone/docs/tlddoc/a4j/keepAlive.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/taglib/html/jsp/KeepAliveTag.html, /richfaces/keepAlive.jsf
-include= ajaxOutput, Include, /images/ico_common.gif, /images/cn_include.gif, RichFacesComponentsLibrary.html#include, jbossajax4jsf/freezone/docs/tlddoc/a4j/include.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIInclude.html, /richfaces/include.jsf
-mediaOutput= ajaxOutput, Media Output, /images/ico_common.gif, /images/cn_MediaOutput.gif, RichFacesComponentsLibrary.html#mediaOutput, jbossajax4jsf/freezone/docs/tlddoc/a4j/mediaOutput.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/resource/UIMediaOutput.html, /richfaces/comingSoon.jsf
+include= ajaxOutput, Include, /images/ico_common.gif, /images/cn_include2.gif, RichFacesComponentsLibrary.html#include, jbossajax4jsf/freezone/docs/tlddoc/a4j/include.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIInclude.html, /richfaces/include.jsf
+mediaOutput= ajaxOutput, Media Output, /images/ico_common.gif, /images/cn_MediaOutput.gif, RichFacesComponentsLibrary.html#mediaOutput, jbossajax4jsf/freezone/docs/tlddoc/a4j/mediaOutput.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/resource/UIMediaOutput.html, /richfaces/mediaOutput.jsf
outputPanel= ajaxOutput, Output Panel, /images/ico_common.gif, /images/cn_OutputPanel.gif, RichFacesComponentsLibrary.html#outputPanel, jbossajax4jsf/freezone/docs/tlddoc/a4j/outputPanel.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxOutputPanel.html, /richfaces/outputPanel.jsf
repeat= richDataIterators, Repeat, /images/ico_common.gif, /images/cn_Repeat.gif, RichFacesComponentsLibrary.html#repeat, jbossajax4jsf/freezone/docs/tlddoc/a4j/repeat.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/repeat/UIRepeat.html, /richfaces/comingSoon.jsf
htmlCommandLink= ajaxMisc, Html Command Link, /images/ico_common.gif, /images/cn_HtmlCommandLink.gif, RichFacesComponentsLibrary.html#htmlCommandLink, jbossajax4jsf/freezone/docs/tlddoc/a4j/htmlCommandLink.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/renderkit/html/HtmlCommandLinkRenderer.html, /richfaces/comingSoon.jsf
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-08-20 22:50:19 UTC (rev 2361)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -200,6 +200,16 @@
</managed-property>
</managed-bean>
<managed-bean>
+ <managed-bean-name>mediaBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.media.MediaBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>mediaData</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.media.MediaData</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
<managed-bean-name>auctionDataProvider</managed-bean-name>
<managed-bean-class>org.richfaces.demo.extendeddatamodel.AuctionDataProvider</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
Added: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaBean.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaBean.java 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,28 @@
+package org.richfaces.demo.media;
+
+import java.awt.Graphics2D;
+import java.awt.image.BufferedImage;
+import java.io.IOException;
+import java.io.OutputStream;
+import javax.imageio.ImageIO;
+
+public class MediaBean {
+
+ public void paint(OutputStream out, Object data) throws IOException{
+ if (data instanceof MediaData) {
+
+ MediaData paintData = (MediaData) data;
+ BufferedImage img = new BufferedImage(paintData.getWidth(),paintData.getHeight(),BufferedImage.TYPE_INT_RGB);
+ Graphics2D graphics2D = img.createGraphics();
+ graphics2D.setBackground(paintData.getBackground());
+ graphics2D.setColor(paintData.getDrawColor());
+ graphics2D.clearRect(0,0,paintData.getWidth(),paintData.getHeight());
+ graphics2D.drawLine(5,5,paintData.getWidth()-5,paintData.getHeight()-5);
+ graphics2D.drawChars(new String("RichFaces").toCharArray(),0,9,40,15);
+ graphics2D.drawChars(new String("mediaOutput").toCharArray(),0,11,5,45);
+
+ ImageIO.write(img,"jpeg",out);
+
+ }
+ }
+}
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaData.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaData.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaData.java 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,39 @@
+package org.richfaces.demo.media;
+
+import java.awt.Color;
+import java.io.Serializable;
+
+public class MediaData implements Serializable{
+
+ private static final long serialVersionUID = 1L;
+ Integer Width=110;
+ Integer Height=50;
+ Color Background=new Color(0,0,0);
+ Color DrawColor=new Color(255,255,255);
+ public MediaData() {
+ }
+ public Color getBackground() {
+ return Background;
+ }
+ public void setBackground(Color background) {
+ Background = background;
+ }
+ public Color getDrawColor() {
+ return DrawColor;
+ }
+ public void setDrawColor(Color drawColor) {
+ DrawColor = drawColor;
+ }
+ public Integer getHeight() {
+ return Height;
+ }
+ public void setHeight(Integer height) {
+ Height = height;
+ }
+ public Integer getWidth() {
+ return Width;
+ }
+ public void setWidth(Integer width) {
+ Width = width;
+ }
+}
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_include2.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_include2.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wizard.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wizard.xhtml 2007-08-20 22:50:19 UTC (rev 2361)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wizard.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -17,9 +17,13 @@
.rich-message { color:red; }
</style>
+ <rich:separator height="1" style="padding:10px"/>
<h:panelGrid width="100%" columns="2" columnClasses="col1,col2">
<f:verbatim>
- Additional explanation will be here.
+ The demo shows the example of three-steps wizard created
+ using a4j:include. The navigation rules defined in the
+ faces-config.xml are used to navigate between the steps
+ of the wizard.
</f:verbatim>
<a4j:keepAlive beanName="profile" />
@@ -33,5 +37,6 @@
</rich:panel>
</h:panelGrid>
+ <rich:separator height="1" style="padding:10px"/>
</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep1.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep1.xhtml 2007-08-20 22:50:19 UTC (rev 2361)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep1.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -18,6 +18,8 @@
<h:inputText id="comp" value="#{profile.company}" label="Company" required="true" />
<rich:message for="comp"/>
+
+
</h:panelGrid>
<a4j:commandButton value="Next >>" action="next"/>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/snippet/navigation.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/snippet/navigation.xml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/snippet/navigation.xml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+<!-- The rest parts of the faces-config.xml are not shown here -->
+<navigation-rule>
+ <from-view-id>/richfaces/include/examples/wstep1.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <navigation-rule>
+ <from-view-id>/richfaces/include/examples/wstep2.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/richfaces/include/examples/wstep1.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/richfaces/include/examples/finalStep.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <navigation-rule>
+ <from-view-id>/richfaces/include/examples/finalStep.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ </faces-config>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/usage.xhtml 2007-08-20 22:50:19 UTC (rev 2361)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/usage.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -16,8 +16,7 @@
<p>
<b>viewId</b> attribute specify the view id of the page that will be included. It should be
the full context-relative path of the resource in order to use as from-view and to-view in the
- JSF navigation cases. The following demo shows the example of three-steps wizard created
- using a4j:include:
+ JSF navigation cases.
</p>
<div class="sample-container">
@@ -26,7 +25,23 @@
<ui:param name="sourcepath" value="/richfaces/include/examples/wizard.xhtml"/>
<ui:param name="openlabel" value="View Page Source" />
</ui:include>
-
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/include/examples/wstep1.xhtml"/>
+ <ui:param name="openlabel" value="View wstep1.xhtml Source" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/include/examples/wstep2.xhtml"/>
+ <ui:param name="openlabel" value="View wstep2.xhtml Source" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/include/examples/finalStep.xhtml"/>
+ <ui:param name="openlabel" value="View finalStep.xhtml Source" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/include/snippet/navigation.xml"/>
+ <ui:param name="openlabel" value="View faces-config.xml Navigation Rules" />
+ <ui:param name="sourcetype" value="xml" />
+ </ui:include>
</div>
<p>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/examples/jpeg.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/examples/jpeg.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/examples/jpeg.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,14 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+
+ <rich:separator height="1" style="padding:10px"/>
+ <a4j:mediaOutput element="img" cacheable="false" session="true"
+ createContent="#{mediaBean.paint}" value="#{mediaData}" mimeType="image/jpeg" />
+ <rich:separator height="1" style="padding:10px"/>
+
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/usage.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,58 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>a4j:mediaOutput allows to generate images, video, sounds and other binary
+ resources defined by a user on-the-fly.
+ </p>
+ <p><b>createContent</b> attribute reference to the method that will be used
+ for content creating. The method accept two parameters. The first parameter
+ has an OutputStream type. It is a reference to the steam should be used for output.
+ The second parameter is a reference to 'value' attribute of the component.
+ </p>
+ <p>
+ <b>value</b> attribute references to data can be used as a input data for content
+ creator method. The data should be serializable because it is encoded to the URL
+ to the resource.
+ </p>
+ <p>
+ <b>mimeType</b> attribute defines the type of output content. It is used to define
+ the corresponded type in the header of HTTP response.
+ </p>
+ <p>
+ <b>cacheable</b> attribute is a flag that defines the caching strategy. If 'cachable'
+ is set to false, the request will be cached. If it is set to true, it will be cached
+ and the serialized value of 'value' attribute plays the role of cache key.
+ </p>
+ <div class="sample-container" >
+
+ <ui:include src="/richfaces/mediaOutput/examples/jpeg.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/mediaOutput/examples/jpeg.xhtml"/>
+ <ui:param name="openlabel" value="View Page Source" />
+ </ui:include>
+
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/demo/media/MediaBean.java"/>
+ <ui:param name="openlabel" value="View MediaBean.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/demo/media/MediaData.java"/>
+ <ui:param name="openlabel" value="View MediaData.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+
+
+ </div>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Media Output</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/mediaOutput/usage.xhtml"/>
+ </rich:tab>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Modified: trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml 2007-08-20 22:50:19 UTC (rev 2361)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -57,6 +57,7 @@
cursor:pointer;
display:block;
background-color:#E6F3F7;
+ text-decoration:none;
}
</style>
@@ -71,7 +72,9 @@
<rich:panel id="source1" bodyClass="viewsourcebody" headerClass="viewsourceheader" styleClass="viewsourcepanel" style="display:none">
<f:facet name="header">
<rich:spacer height="3px" />
- </f:facet>
+ </f:facet>
+
+
<div class="viewsourcediv">
<rich:insert src="#{sourcepath}" highlight="#{empty sourcetype? 'xhtml' : sourcetype }"/>
</div>
18 years, 8 months
JBoss Rich Faces SVN: r2361 - trunk/ui/calendar/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-20 18:50:19 -0400 (Mon, 20 Aug 2007)
New Revision: 2361
Modified:
trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
Log:
Invalid tagname replaced
Modified: trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
===================================================================
--- trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-08-20 22:49:46 UTC (rev 2360)
+++ trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-08-20 22:50:19 UTC (rev 2361)
@@ -128,7 +128,7 @@
tabindex="#{component.attributes['tabindex']}"
onclick="#{onclick}">
</input>
- <image id="#{clientId}PopupButton"
+ <img id="#{clientId}PopupButton"
class="calendar_popupicon"
src="#{icon}"
accesskey="#{component.attributes['accesskey']}"
@@ -136,7 +136,7 @@
onclick="$('#{clientId}').component.doExpand();return false;"
style="vertical-align: middle; #{component.attributes['style']}"
tabindex="#{component.attributes['tabindex']}">
- </image>
+ </img>
</span>
<jsp:scriptlet>
<![CDATA[
18 years, 8 months
JBoss Rich Faces SVN: r2360 - in trunk/framework/impl: src/main/java/org/ajax4jsf/resource and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-08-20 18:49:46 -0400 (Mon, 20 Aug 2007)
New Revision: 2360
Modified:
trunk/framework/impl/pom.xml
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java
trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/images/SliderArrowImage.java
Log:
Use custom serialisation for a slider arrow parameters.
Modified: trunk/framework/impl/pom.xml
===================================================================
--- trunk/framework/impl/pom.xml 2007-08-20 22:28:02 UTC (rev 2359)
+++ trunk/framework/impl/pom.xml 2007-08-20 22:49:46 UTC (rev 2360)
@@ -1,4 +1,6 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!--
<parent>
<artifactId>impl-parent</artifactId>
@@ -64,9 +66,11 @@
</goals>
<configuration>
<tasks>
- <ant antfile="${basedir}/generatescript.xml" inheritRefs="true">
+ <ant
+ antfile="${basedir}/generatescript.xml" inheritRefs="true">
<target name="assembly" />
- <property name="target-dir" value="${project.build.directory}/javascript">
+ <property name="target-dir"
+ value="${project.build.directory}/javascript">
</property>
</ant>
</tasks>
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java 2007-08-20 22:28:02 UTC (rev 2359)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java 2007-08-20 22:49:46 UTC (rev 2360)
@@ -29,6 +29,7 @@
import java.io.ObjectOutputStream;
import java.io.StreamCorruptedException;
import java.io.StringReader;
+import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.util.Collections;
import java.util.Date;
@@ -70,539 +71,540 @@
*/
public class ResourceBuilderImpl extends InternetResourceBuilder {
- private static final Log log = LogFactory.getLog(ResourceBuilderImpl.class);
+ private static final Log log = LogFactory.getLog(ResourceBuilderImpl.class);
- private static final String DATA_SEPARATOR = "/DATA/";
- private static final String DATA_BYTES_SEPARATOR = "/DATB/";
+ private static final String DATA_SEPARATOR = "/DATA/";
+ private static final String DATA_BYTES_SEPARATOR = "/DATB/";
- private static final Pattern DATA_SEPARATOR_PATTERN = Pattern.compile("/DAT(A|B)/");
-
- private static Map renderers;
+ private static final Pattern DATA_SEPARATOR_PATTERN = Pattern
+ .compile("/DAT(A|B)/");
- private static ResourceRenderer defaultRenderer = new MimeRenderer(null);
+ private static Map renderers;
- /**
- * keep resources instances . TODO - put this map to application-scope
- * attribute, for support clastering environment.
- */
- private Map resources = Collections.synchronizedMap(new HashMap());
+ private static ResourceRenderer defaultRenderer = new MimeRenderer(null);
- private long _startTime;
+ /**
+ * keep resources instances . TODO - put this map to application-scope
+ * attribute, for support clastering environment.
+ */
+ private Map resources = Collections.synchronizedMap(new HashMap());
- private Codec codec;
+ private long _startTime;
- static {
- renderers = new HashMap();
- // append known renderers for extentions.
- renderers.put(".gif", new GifRenderer());
- ResourceRenderer renderer = new JpegRenderer();
- renderers.put(".jpeg", renderer);
- renderers.put(".jpg", renderer);
- renderers.put(".png", new PngRenderer());
- renderers.put(".js", new ScriptRenderer());
- renderers.put(".css", new StyleRenderer());
- renderers.put(".log", new LogfileRenderer());
- renderers.put(".html", new HTMLRenderer());
- renderers.put(".xhtml", new MimeRenderer("application/xhtml+xml"));
- renderers.put(".xml", new MimeRenderer("text/xml"));
- renderers.put(".xcss", new TemplateCSSRenderer());
- // renderers.put(".htc",new BehaviorRenderer());
- // set in-memory caching ImageIO
- ImageIO.setUseCache(false);
+ private Codec codec;
- }
+ static {
+ renderers = new HashMap();
+ // append known renderers for extentions.
+ renderers.put(".gif", new GifRenderer());
+ ResourceRenderer renderer = new JpegRenderer();
+ renderers.put(".jpeg", renderer);
+ renderers.put(".jpg", renderer);
+ renderers.put(".png", new PngRenderer());
+ renderers.put(".js", new ScriptRenderer());
+ renderers.put(".css", new StyleRenderer());
+ renderers.put(".log", new LogfileRenderer());
+ renderers.put(".html", new HTMLRenderer());
+ renderers.put(".xhtml", new MimeRenderer("application/xhtml+xml"));
+ renderers.put(".xml", new MimeRenderer("text/xml"));
+ renderers.put(".xcss", new TemplateCSSRenderer());
+ // renderers.put(".htc",new BehaviorRenderer());
+ // set in-memory caching ImageIO
+ ImageIO.setUseCache(false);
- public WebXml getWebXml(FacesContext context) {
- WebXml webXml = (WebXml) context.getExternalContext().getApplicationMap().get(WebXml.CONTEXT_ATTRIBUTE);
- if (null == webXml) {
- throw new FacesException(
- "Resources framework is not initialised, check web.xml for Filter configuration");
}
- return webXml;
- }
- public ResourceBuilderImpl() {
- super();
- _startTime = System.currentTimeMillis();
- codec = new Codec();
- }
+ public WebXml getWebXml(FacesContext context) {
+ WebXml webXml = (WebXml) context.getExternalContext()
+ .getApplicationMap().get(WebXml.CONTEXT_ATTRIBUTE);
+ if (null == webXml) {
+ throw new FacesException(
+ "Resources framework is not initialised, check web.xml for Filter configuration");
+ }
+ return webXml;
+ }
- /**
- * @throws FacesException
- */
- protected void registerResources() throws FacesException {
- try {
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
- Enumeration e = loader
- .getResources("META-INF/resources-config.xml");
- while (e.hasMoreElements()) {
- URL resource = (URL) e.nextElement();
- registerConfig(resource);
- }
- } catch (IOException e) {
- throw new FacesException(e);
- }
- }
+ public ResourceBuilderImpl() {
+ super();
+ _startTime = System.currentTimeMillis();
+ codec = new Codec();
+ }
- private void registerConfig(URL resourceConfig) {
- try {
- if (log.isDebugEnabled()) {
- log.debug("Process resources configuration file "+resourceConfig.toExternalForm());
- }
-
- InputStream in = resourceConfig.openStream();
- try {
- Digester digester = new Digester();
- digester.setValidating(false);
- digester.setEntityResolver(new EntityResolver() {
- // Dummi resolver - alvays do nothing
- public InputSource resolveEntity(String publicId,
- String systemId) throws SAXException, IOException {
- return new InputSource(new StringReader(""));
- }
- });
- digester.setNamespaceAware(false);
- digester.setUseContextClassLoader(true);
- digester.push(this);
- digester.addObjectCreate("resource-config/resource", "class",
- JarResource.class);
- digester.addObjectCreate("resource-config/resource/renderer",
- "class", HTMLRenderer.class);
- digester.addCallMethod(
- "resource-config/resource/renderer/content-type",
- "setContentType", 0);
- digester.addSetNext("resource-config/resource/renderer",
- "setRenderer", ResourceRenderer.class.getName());
- digester.addCallMethod("resource-config/resource/name",
- "setKey", 0);
- digester.addCallMethod("resource-config/resource/path",
- "setPath", 0);
- digester.addCallMethod("resource-config/resource/cacheable",
- "setCacheable", 0);
- digester.addCallMethod(
- "resource-config/resource/session-aware",
- "setSessionAware", 0);
- digester.addCallMethod("resource-config/resource/property",
- "setProperty", 2);
- digester.addCallParam("resource-config/resource/property/name",
- 0);
- digester.addCallParam(
- "resource-config/resource/property/value", 1);
- digester.addCallMethod("resource-config/resource/content-type",
- "setContentType", 0);
- digester.addSetNext("resource-config/resource", "addResource",
- InternetResource.class.getName());
- digester.parse(in);
- } finally {
- in.close();
- }
- } catch (IOException e) {
- throw new FacesException(e);
- } catch (SAXException e) {
- throw new FacesException(e);
+ /**
+ * @throws FacesException
+ */
+ protected void registerResources() throws FacesException {
+ try {
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+ Enumeration e = loader
+ .getResources("META-INF/resources-config.xml");
+ while (e.hasMoreElements()) {
+ URL resource = (URL) e.nextElement();
+ registerConfig(resource);
+ }
+ } catch (IOException e) {
+ throw new FacesException(e);
+ }
}
- }
- /**
- */
- public void init()
- throws FacesException {
- // TODO - mace codec configurable.
- registerResources();
- }
+ private void registerConfig(URL resourceConfig) {
+ try {
+ if (log.isDebugEnabled()) {
+ log.debug("Process resources configuration file "
+ + resourceConfig.toExternalForm());
+ }
- /**
- * Base point for creating resource. Must detect type and build
- * appropriate instance. Currently - make static resource for ordinary
- * request, or instance of class.
- *
- * @param base
- * base object for resource ( resourcess in classpath
- * will be get relative to it package )
- * @param path
- * key - path to resource, resource class name etc.
- * @return
- * @throws FacesException
- */
- public InternetResource createResource(Object base, String path)
- throws FacesException {
- // TODO - detect type of resource ( for example, resources location path
- // in Skin
- try {
- return getResource(path);
- } catch (ResourceNotFoundException e) {
- try {
- return getResource(buildKey(base, path));
- } catch (ResourceNotFoundException e1) {
- if (log.isDebugEnabled()) {
- log.debug(Messages.getMessage(Messages.BUILD_RESOURCE_INFO,
- path));
+ InputStream in = resourceConfig.openStream();
+ try {
+ Digester digester = new Digester();
+ digester.setValidating(false);
+ digester.setEntityResolver(new EntityResolver() {
+ // Dummi resolver - alvays do nothing
+ public InputSource resolveEntity(String publicId,
+ String systemId) throws SAXException, IOException {
+ return new InputSource(new StringReader(""));
+ }
+ });
+ digester.setNamespaceAware(false);
+ digester.setUseContextClassLoader(true);
+ digester.push(this);
+ digester.addObjectCreate("resource-config/resource", "class",
+ JarResource.class);
+ digester.addObjectCreate("resource-config/resource/renderer",
+ "class", HTMLRenderer.class);
+ digester.addCallMethod(
+ "resource-config/resource/renderer/content-type",
+ "setContentType", 0);
+ digester.addSetNext("resource-config/resource/renderer",
+ "setRenderer", ResourceRenderer.class.getName());
+ digester.addCallMethod("resource-config/resource/name",
+ "setKey", 0);
+ digester.addCallMethod("resource-config/resource/path",
+ "setPath", 0);
+ digester.addCallMethod("resource-config/resource/cacheable",
+ "setCacheable", 0);
+ digester.addCallMethod(
+ "resource-config/resource/session-aware",
+ "setSessionAware", 0);
+ digester.addCallMethod("resource-config/resource/property",
+ "setProperty", 2);
+ digester.addCallParam("resource-config/resource/property/name",
+ 0);
+ digester.addCallParam(
+ "resource-config/resource/property/value", 1);
+ digester.addCallMethod("resource-config/resource/content-type",
+ "setContentType", 0);
+ digester.addSetNext("resource-config/resource", "addResource",
+ InternetResource.class.getName());
+ digester.parse(in);
+ } finally {
+ in.close();
+ }
+ } catch (IOException e) {
+ throw new FacesException(e);
+ } catch (SAXException e) {
+ throw new FacesException(e);
}
- }
}
- // path - is class name ?
- InternetResource res;
- try {
- Class resourceClass = Class.forName(path);
- res = createDynamicResource(path, resourceClass);
- } catch (Exception e) {
- try {
- res = createJarResource(base, path);
- } catch (ResourceNotFoundException ex) {
- res = createStaticResource(path);
- }
- // TODO - if resource not found, create static ?
+
+ /**
+ */
+ public void init() throws FacesException {
+ // TODO - mace codec configurable.
+ registerResources();
}
- return res;
- }
- private String buildKey(Object base, String path) {
- if (path.startsWith("/")) {
- return path.substring(1);
+ /**
+ * Base point for creating resource. Must detect type and build appropriate
+ * instance. Currently - make static resource for ordinary request, or
+ * instance of class.
+ *
+ * @param base
+ * base object for resource ( resourcess in classpath will be get
+ * relative to it package )
+ * @param path
+ * key - path to resource, resource class name etc.
+ * @return
+ * @throws FacesException
+ */
+ public InternetResource createResource(Object base, String path)
+ throws FacesException {
+ // TODO - detect type of resource ( for example, resources location path
+ // in Skin
+ try {
+ return getResource(path);
+ } catch (ResourceNotFoundException e) {
+ try {
+ return getResource(buildKey(base, path));
+ } catch (ResourceNotFoundException e1) {
+ if (log.isDebugEnabled()) {
+ log.debug(Messages.getMessage(Messages.BUILD_RESOURCE_INFO,
+ path));
+ }
+ }
+ }
+ // path - is class name ?
+ InternetResource res;
+ try {
+ Class resourceClass = Class.forName(path);
+ res = createDynamicResource(path, resourceClass);
+ } catch (Exception e) {
+ try {
+ res = createJarResource(base, path);
+ } catch (ResourceNotFoundException ex) {
+ res = createStaticResource(path);
+ }
+ // TODO - if resource not found, create static ?
+ }
+ return res;
}
- if (null == base) {
- return path;
+
+ private String buildKey(Object base, String path) {
+ if (path.startsWith("/")) {
+ return path.substring(1);
+ }
+ if (null == base) {
+ return path;
+ }
+ StringBuffer packageName = new StringBuffer(base.getClass()
+ .getPackage().getName().replace('.', '/'));
+ return packageName.append("/").append(path).toString();
}
- StringBuffer packageName = new StringBuffer(base.getClass()
- .getPackage().getName().replace('.', '/'));
- return packageName.append("/").append(path).toString();
- }
- public String getUri(InternetResource resource, FacesContext context,
- Object storeData) {
- StringBuffer uri = new StringBuffer();// ResourceServlet.DEFAULT_SERVLET_PATH).append("/");
- uri.append(resource.getKey());
- // append serialized data as Base-64 encoded request string.
- if (storeData != null) {
- try {
- byte[] objectData;
- if (storeData instanceof byte[]) {
- objectData = (byte[]) storeData;
- uri.append(DATA_BYTES_SEPARATOR);
- } else {
- ByteArrayOutputStream dataSteram = new ByteArrayOutputStream(
- 1024);
- ObjectOutputStream objStream = new ObjectOutputStream(
- dataSteram);
- objStream.writeObject(storeData);
- objStream.flush();
- objStream.close();
- dataSteram.close();
- objectData = dataSteram.toByteArray();
- uri.append(DATA_SEPARATOR);
+ public String getUri(InternetResource resource, FacesContext context,
+ Object storeData) {
+ StringBuffer uri = new StringBuffer();// ResourceServlet.DEFAULT_SERVLET_PATH).append("/");
+ uri.append(resource.getKey());
+ // append serialized data as Base-64 encoded request string.
+ if (storeData != null) {
+ try {
+ byte[] objectData;
+ if (storeData instanceof byte[]) {
+ objectData = (byte[]) storeData;
+ uri.append(DATA_BYTES_SEPARATOR);
+ } else {
+ ByteArrayOutputStream dataSteram = new ByteArrayOutputStream(
+ 1024);
+ ObjectOutputStream objStream = new ObjectOutputStream(
+ dataSteram);
+ objStream.writeObject(storeData);
+ objStream.flush();
+ objStream.close();
+ dataSteram.close();
+ objectData = dataSteram.toByteArray();
+ uri.append(DATA_SEPARATOR);
+ }
+ byte[] dataArray = encrypt(objectData);
+ uri.append(new String(dataArray, "ISO-8859-1"));
+
+ // / byte[] objectData = dataSteram.toByteArray();
+ // / uri.append("?").append(new
+ // String(Base64.encodeBase64(objectData),
+ // / "ISO-8859-1"));
+ } catch (Exception e) {
+ // Ignore errors, log it
+ log.error(Messages
+ .getMessage(Messages.QUERY_STRING_BUILDING_ERROR), e);
+ }
}
- byte[] dataArray = encrypt(objectData);
- uri.append(new String(dataArray, "ISO-8859-1"));
+ String resourceURL = getWebXml(context).getFacesResourceURL(context,
+ uri.toString());// context.getApplication().getViewHandler().getResourceURL(context,uri.toString());
+ if (resource.isSessionAware()) {
+ resourceURL = context.getExternalContext().encodeResourceURL(
+ resourceURL);
+ }
+ if (log.isDebugEnabled()) {
+ log.debug(Messages.getMessage(Messages.BUILD_RESOURCE_URI_INFO,
+ resource.getKey(), resourceURL));
+ }
+ return resourceURL;// context.getExternalContext().encodeResourceURL(resourceURL);
- // / byte[] objectData = dataSteram.toByteArray();
- // / uri.append("?").append(new
- // String(Base64.encodeBase64(objectData),
- // / "ISO-8859-1"));
- } catch (Exception e) {
- // Ignore errors, log it
- log.error(Messages
- .getMessage(Messages.QUERY_STRING_BUILDING_ERROR), e);
- }
}
- String resourceURL = getWebXml(context).getFacesResourceURL(context,
- uri.toString());// context.getApplication().getViewHandler().getResourceURL(context,uri.toString());
- if (resource.isSessionAware()) {
- resourceURL = context.getExternalContext().encodeResourceURL(
- resourceURL);
- }
- if (log.isDebugEnabled()) {
- log.debug(Messages.getMessage(Messages.BUILD_RESOURCE_URI_INFO,
- resource.getKey(), resourceURL));
- }
- return resourceURL;// context.getExternalContext().encodeResourceURL(resourceURL);
- }
+ /**
+ * @param key
+ * @return
+ */
+ public InternetResource getResourceForKey(String key)
+ throws ResourceNotFoundException {
- /**
- * @param key
- * @return
- */
- public InternetResource getResourceForKey(String key)
- throws ResourceNotFoundException {
+ Matcher matcher = DATA_SEPARATOR_PATTERN.matcher(key);
+ if (matcher.find()) {
+ int data = matcher.start();
+ key = key.substring(0, data);
+ }
- Matcher matcher = DATA_SEPARATOR_PATTERN.matcher(key);
- if (matcher.find()) {
- int data = matcher.start();
- key = key.substring(0, data);
- }
+ return getResource(key);
+ }
- return getResource(key);
- }
+ public Object getResourceDataForKey(String key) {
+ Object data = null;
+ String dataString = null;
+ Matcher matcher = DATA_SEPARATOR_PATTERN.matcher(key);
+ if (matcher.find()) {
+ if (log.isDebugEnabled()) {
+ log.debug(Messages.getMessage(
+ Messages.RESTORE_DATA_FROM_RESOURCE_URI_INFO, key,
+ dataString));
+ }
+ int dataStart = matcher.end();
+ dataString = key.substring(dataStart);
+ byte[] objectArray = null;
+ byte[] dataArray;
+ try {
+ dataArray = dataString.getBytes("ISO-8859-1");
+ objectArray = decrypt(dataArray);
+ } catch (UnsupportedEncodingException e1) {
+ // default encoding always presented.
+ }
+ if ("B".equals(matcher.group(1))) {
+ data = objectArray;
+ } else {
+ try {
+ ObjectInputStream in = new ObjectInputStream(
+ new ByteArrayInputStream(objectArray));
+ data = in.readObject();
+ } catch (StreamCorruptedException e) {
+ log.error(Messages
+ .getMessage(Messages.STREAM_CORRUPTED_ERROR), e);
+ } catch (IOException e) {
+ log.error(Messages
+ .getMessage(Messages.DESERIALIZE_DATA_INPUT_ERROR),
+ e);
+ } catch (ClassNotFoundException e) {
+ log
+ .error(
+ Messages
+ .getMessage(Messages.DATA_CLASS_NOT_FOUND_ERROR),
+ e);
+ }
+ }
+ }
- public Object getResourceDataForKey(String key) {
- Object data = null;
- String dataString = null;
- boolean serialized = true;
- Matcher matcher = DATA_SEPARATOR_PATTERN.matcher(key);
- if (matcher.find()) {
- int dataStart = matcher.end();
- dataString = key.substring(dataStart);
- if ("B".equals(matcher.group(1))) {
- serialized = false;
- }
- }
+ return data;
+ }
- if (log.isDebugEnabled()) {
- log.debug(Messages.getMessage(
- Messages.RESTORE_DATA_FROM_RESOURCE_URI_INFO, key,
- dataString));
- }
- if (dataString != null) {
- // dataString =
- // dataString.substring(dataStart+ResourceServlet.DATA_PARAMETER.length()+1);
- byte[] objectArray = null;
- try {
- byte[] dataArray = dataString.getBytes("ISO-8859-1");
- objectArray = decrypt(dataArray);
+ public InternetResource getResource(String path)
+ throws ResourceNotFoundException {
- if (serialized) {
- ObjectInputStream in = new ObjectInputStream(
- new ByteArrayInputStream(objectArray));
- data = in.readObject();
- } else {
- data = objectArray;
- }
- } catch (StreamCorruptedException e) {
- log.error(Messages
- .getMessage(Messages.STREAM_CORRUPTED_ERROR), e);
- } catch (IOException e) {
- log.error(Messages
- .getMessage(Messages.DESERIALIZE_DATA_INPUT_ERROR), e);
- } catch (ClassNotFoundException e) {
- log.error(Messages
- .getMessage(Messages.DATA_CLASS_NOT_FOUND_ERROR), e);
- }
- }
- return data;
- }
+ InternetResource internetResource = (InternetResource) resources
+ .get(path);
+ if (null == internetResource) {
+ throw new ResourceNotFoundException("Resource not registered : "
+ + path);
+ } else {
+ return internetResource;
+ }
+ }
- public InternetResource getResource(String path)
- throws ResourceNotFoundException {
+ public void addResource(InternetResource resource) {
+ resources.put(resource.getKey(), resource);
+ ResourceRenderer renderer = resource.getRenderer(null);
+ if (renderer == null) {
+ setRenderer(resource, resource.getKey());
+ }
+ }
- InternetResource internetResource = (InternetResource) resources
- .get(path);
- if (null == internetResource) {
- throw new ResourceNotFoundException("Resource not registered : "
- + path);
- } else {
- return internetResource;
+ public void addResource(String key, InternetResource resource) {
+ resources.put(key, resource);
+ resource.setKey(key);
+ // TODO - set renderer ?
}
- }
- public void addResource(InternetResource resource) {
- resources.put(resource.getKey(), resource);
- ResourceRenderer renderer = resource.getRenderer(null);
- if (renderer == null) {
- setRenderer(resource, resource.getKey());
- }
- }
+ // public String getFacesResourceKey(HttpServletRequest request) {
+ // return getWebXml(context).getFacesResourceKey(request);
+ // }
- public void addResource(String key, InternetResource resource) {
- resources.put(key, resource);
- resource.setKey(key);
- // TODO - set renderer ?
- }
+ public String getFacesResourceURL(FacesContext context, String Url) {
+ return getWebXml(context).getFacesResourceURL(context, Url);
+ }
-// public String getFacesResourceKey(HttpServletRequest request) {
-// return getWebXml(context).getFacesResourceKey(request);
-// }
+ /**
+ * Build resource for link to static context in webapp.
+ *
+ * @param path
+ * @return
+ * @throws FacesException
+ */
+ protected InternetResource createStaticResource(String path)
+ throws ResourceNotFoundException, FacesException {
+ FacesContext context = FacesContext.getCurrentInstance();
+ if (null != context) {
+ if (context.getExternalContext().getContext() instanceof ServletContext) {
+ ServletContext servletContext = (ServletContext) context
+ .getExternalContext().getContext();
+ InputStream in = servletContext.getResourceAsStream(path);
+ if (null != in) {
+ InternetResourceBase res = new StaticResource(path);
+ setRenderer(res, path);
+ res.setLastModified(new Date(getStartTime()));
+ addResource(path, res);
+ try {
+ in.close();
+ } catch (IOException e) {
+ }
+ return res;
+ }
+ }
+ }
+ throw new ResourceNotFoundException(Messages.getMessage(
+ Messages.STATIC_RESOURCE_NOT_FOUND_ERROR, path));
+ }
- public String getFacesResourceURL(FacesContext context, String Url) {
- return getWebXml(context).getFacesResourceURL(context, Url);
- }
+ private void setRenderer(InternetResource res, String path)
+ throws FacesException {
+ int lastPoint = path.lastIndexOf('.');
+ if (lastPoint > 0) {
+ String ext = path.substring(lastPoint);
+ ResourceRenderer resourceRenderer = (ResourceRenderer) renderers
+ .get(ext);
+ if (null != resourceRenderer) {
+ res.setRenderer(resourceRenderer);
+ } else {
+ if (log.isDebugEnabled()) {
+ log.debug(Messages.getMessage(
+ Messages.NO_RESOURCE_REGISTERED_ERROR_2, path,
+ renderers.keySet()));
+ }
- /**
- * Build resource for link to static context in webapp.
- *
- * @param path
- * @return
- * @throws FacesException
- */
- protected InternetResource createStaticResource(String path)
- throws ResourceNotFoundException, FacesException {
- FacesContext context = FacesContext.getCurrentInstance();
- if (null != context) {
- if (context.getExternalContext().getContext() instanceof ServletContext) {
- ServletContext servletContext = (ServletContext) context
- .getExternalContext().getContext();
- InputStream in = servletContext.getResourceAsStream(path);
- if (null != in) {
- InternetResourceBase res = new StaticResource(path);
- setRenderer(res, path);
- res.setLastModified(new Date(getStartTime()));
- addResource(path, res);
- try {
- in.close();
- } catch (IOException e) {
- }
- return res;
+ // String mimeType = servletContext.getMimeType(path);
+ res.setRenderer(defaultRenderer);
+ }
}
- }
}
- throw new ResourceNotFoundException(Messages.getMessage(
- Messages.STATIC_RESOURCE_NOT_FOUND_ERROR, path));
- }
- private void setRenderer(InternetResource res, String path)
- throws FacesException {
- int lastPoint = path.lastIndexOf('.');
- if (lastPoint > 0) {
- String ext = path.substring(lastPoint);
- ResourceRenderer resourceRenderer = (ResourceRenderer) renderers
- .get(ext);
- if (null != resourceRenderer) {
- res.setRenderer(resourceRenderer);
- } else {
- if (log.isDebugEnabled()) {
- log.debug(Messages.getMessage(
- Messages.NO_RESOURCE_REGISTERED_ERROR_2, path,
- renderers.keySet()));
+ /**
+ * Create resurce to send from classpath relative to base class.
+ *
+ * @param base
+ * @param path
+ * @return
+ * @throws FacesException
+ */
+ protected InternetResource createJarResource(Object base, String path)
+ throws ResourceNotFoundException, FacesException {
+ String key = buildKey(base, path);
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+ if (null != loader.getResource(key)) {
+ JarResource res = new JarResource(key);
+ setRenderer(res, path);
+ res.setLastModified(new Date(getStartTime()));
+ addResource(key, res);
+ return res;
+ } else {
+ throw new ResourceNotFoundException(Messages.getMessage(
+ Messages.NO_RESOURCE_EXISTS_ERROR, key));
}
- // String mimeType = servletContext.getMimeType(path);
- res.setRenderer(defaultRenderer);
- }
}
- }
- /**
- * Create resurce to send from classpath relative to base class.
- *
- * @param base
- * @param path
- * @return
- * @throws FacesException
- */
- protected InternetResource createJarResource(Object base, String path)
- throws ResourceNotFoundException, FacesException {
- String key = buildKey(base, path);
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
- if (null != loader.getResource(key)) {
- JarResource res = new JarResource(key);
- setRenderer(res, path);
- res.setLastModified(new Date(getStartTime()));
- addResource(key, res);
- return res;
- } else {
- throw new ResourceNotFoundException(Messages.getMessage(
- Messages.NO_RESOURCE_EXISTS_ERROR, key));
+ /**
+ * Create resource by instatiate given class.
+ *
+ * @param path
+ * @param instatiate
+ * @return
+ */
+ protected InternetResource createDynamicResource(String path,
+ Class instatiate) throws ResourceNotFoundException {
+ if (InternetResource.class.isAssignableFrom(instatiate)) {
+ InternetResource resource;
+ try {
+ resource = (InternetResource) instatiate.newInstance();
+ addResource(path, resource);
+ } catch (Exception e) {
+ String message = Messages.getMessage(
+ Messages.INSTANTIATE_RESOURCE_ERROR, instatiate
+ .toString());
+ log.error(message, e);
+ throw new ResourceNotFoundException(message, e);
+ }
+ return resource;
+ }
+ throw new FacesException(Messages
+ .getMessage(Messages.INSTANTIATE_CLASS_ERROR));
}
- }
-
- /**
- * Create resource by instatiate given class.
- *
- * @param path
- * @param instatiate
- * @return
- */
- protected InternetResource createDynamicResource(String path,
- Class instatiate) throws ResourceNotFoundException {
- if (InternetResource.class.isAssignableFrom(instatiate)) {
- InternetResource resource;
- try {
- resource = (InternetResource) instatiate.newInstance();
- addResource(path, resource);
- } catch (Exception e) {
- String message = Messages.getMessage(
- Messages.INSTANTIATE_RESOURCE_ERROR, instatiate
- .toString());
- log.error(message, e);
- throw new ResourceNotFoundException(message, e);
- }
- return resource;
+ /**
+ * Create resource by instatiate {@link UserResource} class with given
+ * properties ( or got from cache ).
+ *
+ * @param cacheable
+ * @param session
+ * @param mime
+ * @return
+ * @throws FacesException
+ */
+ public InternetResource createUserResource(boolean cacheable,
+ boolean session, String mime) throws FacesException {
+ String path = getUserResourceKey(cacheable, session, mime);
+ InternetResource userResource;
+ try {
+ userResource = getResource(path);
+ } catch (ResourceNotFoundException e) {
+ userResource = new UserResource(cacheable, session, mime);
+ addResource(path, userResource);
+ }
+ return userResource;
}
- throw new FacesException(Messages
- .getMessage(Messages.INSTANTIATE_CLASS_ERROR));
- }
- /**
- * Create resource by instatiate {@link UserResource} class with given
- * properties ( or got from cache ).
- *
- * @param cacheable
- * @param session
- * @param mime
- * @return
- * @throws FacesException
- */
- public InternetResource createUserResource(boolean cacheable,
- boolean session, String mime) throws FacesException {
- String path = getUserResourceKey(cacheable, session, mime);
- InternetResource userResource;
- try {
- userResource = getResource(path);
- } catch (ResourceNotFoundException e) {
- userResource = new UserResource(cacheable, session, mime);
- addResource(path, userResource);
+ /**
+ * Generate resource key for user-generated resource with given properties.
+ *
+ * @param cacheable
+ * @param session
+ * @param mime
+ * @return
+ */
+ private String getUserResourceKey(boolean cacheable, boolean session,
+ String mime) {
+ StringBuffer pathBuffer = new StringBuffer(UserResource.class.getName());
+ pathBuffer.append(cacheable ? "/c" : "/n");
+ pathBuffer.append(session ? "/s" : "/n");
+ if (null != mime) {
+ pathBuffer.append('/').append(mime.hashCode());
+ }
+ String path = pathBuffer.toString();
+ return path;
}
- return userResource;
- }
- /**
- * Generate resource key for user-generated resource with given
- * properties.
- *
- * @param cacheable
- * @param session
- * @param mime
- * @return
- */
- private String getUserResourceKey(boolean cacheable, boolean session,
- String mime) {
- StringBuffer pathBuffer = new StringBuffer(UserResource.class.getName());
- pathBuffer.append(cacheable ? "/c" : "/n");
- pathBuffer.append(session ? "/s" : "/n");
- if (null != mime) {
- pathBuffer.append('/').append(mime.hashCode());
+ /**
+ * @return Returns the startTime for application.
+ */
+ public long getStartTime() {
+ return _startTime;
}
- String path = pathBuffer.toString();
- return path;
- }
- /**
- * @return Returns the startTime for application.
- */
- public long getStartTime() {
- return _startTime;
- }
-
- protected byte[] encrypt(byte[] src) {
- try {
- Deflater compressor = new Deflater(Deflater.BEST_SPEED);
- byte[] compressed = new byte[src.length + 100];
- compressor.setInput(src);
- compressor.finish();
- int totalOut = compressor.deflate(compressed);
- byte[] zipsrc = new byte[totalOut];
- System.arraycopy(compressed, 0, zipsrc, 0, totalOut);
- compressor.end();
- return codec.encode(zipsrc);
- } catch (Exception e) {
- throw new FacesException("Error encode resource data", e);
+ protected byte[] encrypt(byte[] src) {
+ try {
+ Deflater compressor = new Deflater(Deflater.BEST_SPEED);
+ byte[] compressed = new byte[src.length + 100];
+ compressor.setInput(src);
+ compressor.finish();
+ int totalOut = compressor.deflate(compressed);
+ byte[] zipsrc = new byte[totalOut];
+ System.arraycopy(compressed, 0, zipsrc, 0, totalOut);
+ compressor.end();
+ return codec.encode(zipsrc);
+ } catch (Exception e) {
+ throw new FacesException("Error encode resource data", e);
+ }
}
- }
- protected byte[] decrypt(byte[] src) {
- try {
- byte[] zipsrc = codec.decode(src);
- Inflater decompressor = new Inflater();
- byte[] uncompressed = new byte[zipsrc.length * 5];
- decompressor.setInput(zipsrc);
- int totalOut = decompressor.inflate(uncompressed);
- byte[] out = new byte[totalOut];
- System.arraycopy(uncompressed, 0, out, 0, totalOut);
- decompressor.end();
- return out;
- } catch (Exception e) {
- throw new FacesException("Error decode resource data", e);
+ protected byte[] decrypt(byte[] src) {
+ try {
+ byte[] zipsrc = codec.decode(src);
+ Inflater decompressor = new Inflater();
+ byte[] uncompressed = new byte[zipsrc.length * 5];
+ decompressor.setInput(zipsrc);
+ int totalOut = decompressor.inflate(uncompressed);
+ byte[] out = new byte[totalOut];
+ System.arraycopy(uncompressed, 0, out, 0, totalOut);
+ decompressor.end();
+ return out;
+ } catch (Exception e) {
+ throw new FacesException("Error decode resource data", e);
+ }
}
- }
}
Modified: trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/images/SliderArrowImage.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/images/SliderArrowImage.java 2007-08-20 22:28:02 UTC (rev 2359)
+++ trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/images/SliderArrowImage.java 2007-08-20 22:49:46 UTC (rev 2360)
@@ -21,6 +21,9 @@
package org.richfaces.renderkit.html.images;
+import java.nio.ByteBuffer;
+import java.nio.IntBuffer;
+
import javax.faces.context.FacesContext;
import org.ajax4jsf.util.HtmlColor;
@@ -38,7 +41,16 @@
tmp = (String) defaultSkin.getParameter(context, skinParameter);
}
int intValue = HtmlColor.decode(tmp ==null? "#000000":tmp).getRGB();
- return new Integer(intValue);
+ // Serialize data as byte[]
+ ByteBuffer buff = ByteBuffer.allocate(1*4);
+ IntBuffer intBuffer = buff.asIntBuffer();
+ intBuffer.put(intValue);
+ return buff.array();
}
+ protected Object deserializeData(byte[] objectArray) {
+ // restore color value from a byte[] array.
+ int i = ByteBuffer.wrap(objectArray).asIntBuffer().get();
+ return new Integer(i);
+ }
}
\ No newline at end of file
18 years, 8 months
JBoss Rich Faces SVN: r2359 - trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images.
by richfaces-svn-commits@lists.jboss.org
Author: ishabalov
Date: 2007-08-20 18:28:02 -0400 (Mon, 20 Aug 2007)
New Revision: 2359
Modified:
trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeImageBase.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineCollapsedImage.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineExpandedImage.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineImage.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineLastImage.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineNodeImage.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeMinusImage.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreePlusImage.java
Log:
Shorter URI encoding
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeImageBase.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeImageBase.java 2007-08-20 21:55:41 UTC (rev 2358)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeImageBase.java 2007-08-20 22:28:02 UTC (rev 2359)
@@ -29,7 +29,9 @@
import org.ajax4jsf.resource.GifRenderer;
import org.ajax4jsf.resource.InternetResourceBuilder;
import org.ajax4jsf.resource.Java2Dresource;
+import org.ajax4jsf.resource.ResourceContext;
import org.ajax4jsf.util.HtmlColor;
+import org.ajax4jsf.util.Zipper;
import org.richfaces.skin.Skin;
import org.richfaces.skin.SkinFactory;
@@ -81,12 +83,16 @@
} else
dt.setTrimColor(null);
- return dt;
+ return dt.toByteArray();
}
public boolean isCacheable() {
return true;
}
+
+ public TreeImageData getTreeImageData(ResourceContext resourceContext) {
+ return new TreeImageData((byte[])resourceContext.getResourceData());
+ }
protected static class TreeImageData implements Serializable{
private static final long serialVersionUID = 1732700513743861251L;
@@ -94,7 +100,17 @@
private Integer controlColor;
private Integer trimColor;
private Integer generalColor;
+
+ public TreeImageData() {
+
+ }
+ public TreeImageData(byte[] data) {
+ controlColor = new Integer(Zipper.unzip(data,0));
+ trimColor = new Integer(Zipper.unzip(data,3));
+ generalColor = new Integer(Zipper.unzip(data,6));
+ }
+
public Integer getControlColor() {
return controlColor;
}
@@ -113,6 +129,14 @@
public void setGeneralColor(Integer generalColor) {
this.generalColor = generalColor;
}
+
+ public byte[] toByteArray() {
+ byte[] ret = new byte[9];
+ Zipper.zip(ret,controlColor.intValue(),0);
+ Zipper.zip(ret,trimColor.intValue(),3);
+ Zipper.zip(ret,generalColor.intValue(),6);
+ return ret;
+ }
}
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineCollapsedImage.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineCollapsedImage.java 2007-08-20 21:55:41 UTC (rev 2358)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineCollapsedImage.java 2007-08-20 22:28:02 UTC (rev 2359)
@@ -44,7 +44,7 @@
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);
g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
- TreeImageData dataToStore = (TreeImageData)resourceContext.getResourceData();
+ TreeImageData dataToStore = getTreeImageData(resourceContext);
if (dataToStore.getTrimColor()!=null) {
Color trimColor = new Color(dataToStore.getTrimColor().intValue());
g2d.setColor(trimColor);
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineExpandedImage.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineExpandedImage.java 2007-08-20 21:55:41 UTC (rev 2358)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineExpandedImage.java 2007-08-20 22:28:02 UTC (rev 2359)
@@ -44,7 +44,7 @@
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);
g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
- TreeImageData dataToStore = (TreeImageData)resourceContext.getResourceData();
+ TreeImageData dataToStore = getTreeImageData(resourceContext);
if (dataToStore.getTrimColor()!=null) {
Color trimColor = new Color(dataToStore.getTrimColor().intValue());
g2d.setColor(trimColor);
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineImage.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineImage.java 2007-08-20 21:55:41 UTC (rev 2358)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineImage.java 2007-08-20 22:28:02 UTC (rev 2359)
@@ -44,7 +44,7 @@
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);
g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
- TreeImageData dataToStore = (TreeImageData)resourceContext.getResourceData();
+ TreeImageData dataToStore = getTreeImageData(resourceContext);
if (dataToStore.getTrimColor()!=null) {
Color trimColor = new Color(dataToStore.getTrimColor().intValue());
g2d.setColor(trimColor);
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineLastImage.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineLastImage.java 2007-08-20 21:55:41 UTC (rev 2358)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineLastImage.java 2007-08-20 22:28:02 UTC (rev 2359)
@@ -44,7 +44,7 @@
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);
g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
- TreeImageData dataToStore = (TreeImageData)resourceContext.getResourceData();
+ TreeImageData dataToStore = getTreeImageData(resourceContext);
if (dataToStore.getTrimColor()!=null) {
Color trimColor = new Color(dataToStore.getTrimColor().intValue());
g2d.setColor(trimColor);
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineNodeImage.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineNodeImage.java 2007-08-20 21:55:41 UTC (rev 2358)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeLineNodeImage.java 2007-08-20 22:28:02 UTC (rev 2359)
@@ -44,7 +44,7 @@
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);
g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
- TreeImageData dataToStore = (TreeImageData)resourceContext.getResourceData();
+ TreeImageData dataToStore = getTreeImageData(resourceContext);
if (dataToStore.getTrimColor()!=null) {
Color trimColor = new Color(dataToStore.getTrimColor().intValue());
g2d.setColor(trimColor);
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeMinusImage.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeMinusImage.java 2007-08-20 21:55:41 UTC (rev 2358)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreeMinusImage.java 2007-08-20 22:28:02 UTC (rev 2359)
@@ -32,6 +32,7 @@
import org.ajax4jsf.resource.ResourceContext;
+
public class TreeMinusImage extends TreeImageBase {
private static final Dimension dimensions = new Dimension(16, 16);
@@ -46,7 +47,7 @@
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);
g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
- TreeImageData dataToStore = (TreeImageData)resourceContext.getResourceData();
+ TreeImageData dataToStore = getTreeImageData(resourceContext);
if (dataToStore.getControlColor()!=null && dataToStore.getGeneralColor()!=null && dataToStore.getTrimColor()!=null) {
Color trimColor = new Color(dataToStore.getTrimColor().intValue());
Color controlColor = new Color(dataToStore.getControlColor().intValue());
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreePlusImage.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreePlusImage.java 2007-08-20 21:55:41 UTC (rev 2358)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/html/images/TreePlusImage.java 2007-08-20 22:28:02 UTC (rev 2359)
@@ -46,7 +46,7 @@
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);
g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
- TreeImageData dataToStore = (TreeImageData)resourceContext.getResourceData();
+ TreeImageData dataToStore = getTreeImageData(resourceContext);
if (dataToStore.getControlColor()!=null && dataToStore.getGeneralColor()!=null && dataToStore.getTrimColor()!=null) {
Color trimColor = new Color(dataToStore.getTrimColor().intValue());
Color controlColor = new Color(dataToStore.getControlColor().intValue());
18 years, 8 months
JBoss Rich Faces SVN: r2358 - trunk/docs/userguide.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-08-20 17:55:41 -0400 (Mon, 20 Aug 2007)
New Revision: 2358
Modified:
trunk/docs/userguide/pom.xml
Log:
Generate relative links to a images.
Modified: trunk/docs/userguide/pom.xml
===================================================================
--- trunk/docs/userguide/pom.xml 2007-08-20 18:43:49 UTC (rev 2357)
+++ trunk/docs/userguide/pom.xml 2007-08-20 21:55:41 UTC (rev 2358)
@@ -549,7 +549,7 @@
true
</imageCopyingRequired>
<imagePathSettingRequired>
- true
+ false
</imagePathSettingRequired>
</format>
@@ -562,7 +562,7 @@
true
</imageCopyingRequired>
<imagePathSettingRequired>
- true
+ false
</imagePathSettingRequired>
<finalName>
richfaces_reference.html
@@ -574,7 +574,7 @@
<options>
<xincludeSupported>true</xincludeSupported>
<useRelativeImageUris>
- false
+ true
</useRelativeImageUris>
<xmlTransformerType>
saxon
18 years, 8 months