JBoss Rich Faces SVN: r2277 - trunk/ui/tooltip/src/test/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: dbiatenia
Date: 2007-08-15 15:00:14 -0400 (Wed, 15 Aug 2007)
New Revision: 2277
Modified:
trunk/ui/tooltip/src/test/java/org/richfaces/renderkit/html/ToolTipRendererTest.java
Log:
Modified: trunk/ui/tooltip/src/test/java/org/richfaces/renderkit/html/ToolTipRendererTest.java
===================================================================
--- trunk/ui/tooltip/src/test/java/org/richfaces/renderkit/html/ToolTipRendererTest.java 2007-08-15 17:09:03 UTC (rev 2276)
+++ trunk/ui/tooltip/src/test/java/org/richfaces/renderkit/html/ToolTipRendererTest.java 2007-08-15 19:00:14 UTC (rev 2277)
@@ -1,25 +1,119 @@
package org.richfaces.renderkit.html;
import java.io.IOException;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlOutputText;
+import javax.faces.context.FacesContext;
+
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+import org.richfaces.component.UIToolTip;
+import com.gargoylesoftware.htmlunit.html.HtmlElement;
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+
public class ToolTipRendererTest extends AbstractAjax4JsfTestCase{
+
+ private static Set javaScripts = new HashSet();
+ static {
+ javaScripts.add("org.ajax4jsf.javascript.AjaxScript");
+ javaScripts.add("org/richfaces/renderkit/html/scripts/utils.js");
+ javaScripts.add("org/richfaces/renderkit/html/scripts/tooltip.js");
+ javaScripts.add("prototype.js");
+ }
+ private UIToolTip toolTip;
+ private UIToolTip blockToolTip;
+ private ToolTipRenderer renderer;
+ //private ToolTipRendererBlock rendererBlock;
+
public ToolTipRendererTest(String name){
super(name);
-
}
- protected void setupResponseWriter() throws IOException {
+
+
+ public void setUp() throws Exception {
// TODO Auto-generated method stub
- super.setupResponseWriter();
+ super.setUp();
+ renderer = new ToolTipRenderer();
+
+
+ toolTip = (UIToolTip)application.createComponent("org.richfaces.component.ToolTip");
+ toolTip.setId("tootipId");
+ toolTip.setLayout("inline");
+ toolTip.setDirection("top-left");
+
+ toolTip.setHorizontalOffset(20);
+ HtmlOutputText defContent = (HtmlOutputText) application.createComponent("javax.faces.HtmlOutputText");
+ defContent.setValue("Wait...");
+ toolTip.getFacets().put("defaultContent", defContent);
+ HtmlOutputText toolTipContent = (HtmlOutputText) application.createComponent("javax.faces.HtmlOutputText");
+ toolTipContent.setValue("ToolTip Conntent");
+ toolTip.getChildren().add(toolTipContent);
+
+ HtmlOutputText parentComp = (HtmlOutputText) application.createComponent("javax.faces.HtmlOutputText");
+ parentComp.setId("parentID");
+ parentComp.setValue("Text with tooltip");
+ parentComp.getChildren().add(toolTip);
+
+ blockToolTip = (UIToolTip)application.createComponent("org.richfaces.component.ToolTip");
+ blockToolTip.setId("blocktootipId");
+ blockToolTip.setLayout("block");
+ blockToolTip.setMode("ajax");
+ blockToolTip.setValue("Simple block tooltip");
+
+ facesContext.getViewRoot().getChildren().add(parentComp);
+ facesContext.getViewRoot().getChildren().add(blockToolTip);
}
- protected void setupWebClient() {
+ public void tearDown() throws Exception {
// TODO Auto-generated method stub
- super.setupWebClient();
+ super.tearDown();
+ renderer = null;
}
+
+ public void testRender(){
+
+ try {
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ HtmlElement elem = page.getHtmlElementById(toolTip.getClientId(facesContext));
+ assertNotNull(elem);
+ assertEquals(elem.getTagName(), "span");
+
+ HtmlElement blockElem = page.getHtmlElementById(blockToolTip.getClientId(facesContext));
+ assertNotNull(blockElem);
+ assertEquals(blockElem.getTagName(), "div");
+
+ renderer.encodeTooltipText(facesContext, blockToolTip);
+
+ renderer.doEncodeBegin(writer, this.facesContext, toolTip);
+ renderer.doEncodeChildren(facesContext.getResponseWriter(), facesContext, toolTip);
+ renderer.doEncodeEnd(facesContext.getResponseWriter(), facesContext, toolTip);
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ fail();
+ }
+ }
+
+ public void testBuildEventOptions(){
+ Map eventOptions = renderer.buildEventOptions(facesContext, toolTip);
+ assertNotNull(eventOptions);
+ assertNotNull(eventOptions.get("oncomplete"));
+ }
+
+ public void testconstructJSVariable(){
+
+ String var = renderer.constructJSVariable(facesContext, blockToolTip);
+ assertTrue(var.indexOf(blockToolTip.getClientId(facesContext)) != -1);
+ assertTrue(var.indexOf(blockToolTip.getParent().getClientId(facesContext)) != -1);
+ }
+
}
18 years, 8 months
JBoss Rich Faces SVN: r2276 - trunk/framework/impl/src/main/javascript/ajaxjsf.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-08-15 13:09:03 -0400 (Wed, 15 Aug 2007)
New Revision: 2276
Modified:
trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
Log:
Fix memory leak in IE
Modified: trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
===================================================================
--- trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2007-08-15 16:22:54 UTC (rev 2275)
+++ trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2007-08-15 17:09:03 UTC (rev 2276)
@@ -289,13 +289,14 @@
var oldnode = window.document.getElementById(id);
if ( oldnode ) {
var anchor = oldnode.parentNode;
- // need to check for firstChild due to opera 8 bug with hasChildNodes
- Sarissa.clearChildNodes(oldnode);
if(oldnode.outerHTML && !oldnode.tagName.match( /(tbody|thead|tfoot|tr|th|td)/i ) ){
LOG.debug("Replace content of node by outerHTML()");
+ oldnode.innerHTML = "";
oldnode.outerHTML = new XMLSerializer().serializeToString(newnode);
} else {
var importednode ;
+ // need to check for firstChild due to opera 8 bug with hasChildNodes
+ Sarissa.clearChildNodes(oldnode);
importednode = window.document.importNode(newnode, true);
LOG.debug("Replace content of node by replaceChild()");
anchor.replaceChild(importednode,oldnode);
18 years, 8 months
JBoss Rich Faces SVN: r2275 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-15 12:22:54 -0400 (Wed, 15 Aug 2007)
New Revision: 2275
Modified:
trunk/docs/userguide/en/src/main/docbook/included/columnGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml
Log:
http://jira.jboss.com/jira/browse/RF-584
Modified: trunk/docs/userguide/en/src/main/docbook/included/columnGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/columnGroup.xml 2007-08-15 16:08:19 UTC (rev 2274)
+++ trunk/docs/userguide/en/src/main/docbook/included/columnGroup.xml 2007-08-15 16:22:54 UTC (rev 2275)
@@ -41,7 +41,7 @@
</table>
<section>
<title>Creating the Component with a Page Tag</title>
- <para>To create the simplest variant of <property>columnGroup</property> on a page, which you can see at the screenshot, use the following syntax:</para>
+ <para>To create the simplest variant of <property>columnGroup</property> on a page, use the following syntax:</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -182,8 +182,7 @@
</section>
<section>
<title>Definition custom style classes</title>
- <para>On the screenshot there are classes names defining specified elements.</para>
-
+
<para>To redefine an appearance of all <property>columnGroups</property> on a page, redefine the corresponding class in the
CSS file used with the page.</para>
<para>To redefine a style of a particular page, use component class attributes which list is the same
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml 2007-08-15 16:08:19 UTC (rev 2274)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml 2007-08-15 16:22:54 UTC (rev 2275)
@@ -118,8 +118,8 @@
</section>
<section>
<title>Definition custom style classes:</title>
- <para>On the screenshot there are classes names defining specified elements.</para>
+
<para>To redefine an appearance of all <property>dataGrids</property> on a page, redefine the corresponding class in
the CSS file used with the page.</para>
18 years, 8 months
JBoss Rich Faces SVN: r2274 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-15 12:08:19 -0400 (Wed, 15 Aug 2007)
New Revision: 2274
Modified:
trunk/docs/userguide/en/src/main/docbook/included/tree.xml
Log:
http://jira.jboss.com/jira/browse/RF-396
Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-08-15 16:07:50 UTC (rev 2273)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-08-15 16:08:19 UTC (rev 2274)
@@ -73,11 +73,13 @@
<para>As it has been mentioned above the tree component allows to render any tree-like structure
of data.</para>
<para>A bean property is passed into a tree <property>value</property> attribute. The property
- keeps the structure of a org.richfaces.component.TreeNode type. (You could have a look at this
- interface description in the API document) The default classes for lists building of a
- TreeNodeImpl type (it implements a TreeNode interface) for an XML structure XmlNodeData and
- XmlTreeDataBuilder are implemented in the tree component. Hence, in order to provide your own
- class for TreeNode, it's necessary only to implement this interface, i.e. the <emphasis>
+ keeps the structure of a org.richfaces.component.TreeNode type (you could have a look at this
+ interface description in the <ulink
+ url="http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..."
+ >API document</ulink>). The default classes for lists building of a TreeNodeImpl type (it
+ implements a TreeNode interface) for an XML structure XmlNodeData and XmlTreeDataBuilder are
+ implemented in the tree component. Hence, in order to provide your own class for TreeNode,
+ it's necessary only to implement this interface, i.e. the <emphasis>
<property>"var"</property>
</emphasis> attribute contains a name providing an access to data defined with a value. </para>
<para>For data output, named <property>tree</property> nodes elements are used. Each element,
@@ -160,10 +162,10 @@
</section>
<section>
<title>Built-In Drag and Drop</title>
- <para>The tree component functionalityity provides a built-in support for Drag and Drop operations.
- The main usage principles are the same as for Rich Faces Drag and Drop wrapper components.
- Hence, to get additional information on the topic, read the corresponding chapters:<link
- linkend="dndParam">"rich:dndParam"</link>
+ <para>The tree component functionalityity provides a built-in support for Drag and Drop
+ operations. The main usage principles are the same as for Rich Faces Drag and Drop wrapper
+ components. Hence, to get additional information on the topic, read the corresponding
+ chapters:<link linkend="dndParam">"rich:dndParam"</link>
<link linkend="dragSupport">"rich:dragSupport"</link>
<link linkend="dragIndicator">"rich:dragIndicator"</link>
<link linkend="dropSupport">"rich:dropSupport"</link>
@@ -238,8 +240,8 @@
<para> Also standart HTML event attributes like "onclick", "onmousedown", "onmouseover" and etc.
could be used. Event handlers of a tree component capture events occured on any tree part. But
- event handlers of treeNode capture events occured on treeNode only, except for children events.
- </para>
+ event handlers of treeNode capture events occured on treeNode only, except for children
+ events. </para>
</section>
<section>
<title>Look-and-Feel Customization</title>
@@ -261,8 +263,8 @@
<para>There is only one skin parameter for the <property>tree</property> since <emphasis
role="bold">
<property><rich:tree></property>
- </emphasis> is a wrapper component for <property>tree</property> nodes. Look and feel
- is described in details in the <link linkend="treeNode">"treeNode"
+ </emphasis> is a wrapper component for <property>tree</property> nodes. Look and feel is
+ described in details in the <link linkend="treeNode">"treeNode"
chapter</link>.</para>
<table>
<title>Skin parameters for wrapper element</title>
18 years, 8 months
JBoss Rich Faces SVN: r2273 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-15 12:07:50 -0400 (Wed, 15 Aug 2007)
New Revision: 2273
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
Log:
http://jira.jboss.com/jira/browse/RF-446
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-08-15 15:36:17 UTC (rev 2272)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-08-15 16:07:50 UTC (rev 2273)
@@ -77,125 +77,167 @@
...</programlisting>
</section>
- <!--section>
+ <section>
<title>Details of Usage</title>
-
- <para>All attributes are not required.</para>
- <para>Use <emphasis>
- <property>"event"</property>
- </emphasis> attribute to define an event for appearance of collapsing/expanding sublevels.
- Default value is <emphasis>
- <property>"onclick"</property>
- </emphasis>. An example could be seen below.</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="xml">...
- <rich:panelMenu event="onmouseover">
- <<Nested panelMenu components>
- </rich:panelMenu>
-...</programlisting>
-
- <para>Switching mode could be chosen with the <emphasis>
- <property>"mode"</property>
- </emphasis> attribute for all panelMenu items except ones where this attribute was redefined.
- By default all items send traditional request. </para>
<para>The <emphasis>
- <property>"expandMode"</property>
- </emphasis> attribute defines the submission modes for all collapsing/expanding panelMenu
- groups except ones where this attribute was redefined. </para>
- <para>The <emphasis>
- <property>"mode"</property>
- </emphasis> and <emphasis>
- <property>"expandMode"</property>
- </emphasis> attributes could be used with three possible parameters.</para>
+ <property>"popup"</property>
+ </emphasis> attribute defines calendar representation mode on a page. Default value for the <emphasis>
+ <property>"popup"</property>
+ </emphasis> attribute is "false". If it's "true"
+ the calendar is represented on a page as an input field and a button. Clicking on the button
+ calls the calendar popup as it's shown on the picture below. </para>
+ <figure>
+ <title>Using the "popup" attribute</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/calendar.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>There are three button-related attributes:</para>
<itemizedlist>
<listitem>
- <para>Server (default)</para>
+ <para><emphasis>
+ <property>"buttonLabel"</property>
+ </emphasis> defines a label for the button</para>
</listitem>
</itemizedlist>
-
- <para>The common submission of the form is performed and a page is completely refreshed.</para>
-
<itemizedlist>
<listitem>
- <para>Ajax</para>
+ <para><emphasis>
+ <property>"buttonIcon"</property>
+ </emphasis> defines an icon for the button</para>
</listitem>
</itemizedlist>
-
- <para>An Ajax form submission is performed additionally specified elements in the <emphasis>
- <property>"reRender"</property>
- </emphasis> attribute are reRendered.</para>
-
<itemizedlist>
<listitem>
- <para>None</para>
+ <para><emphasis>
+ <property>"buttonIconDisabled"</property>
+ </emphasis> defines an icon for the disabled state of the button</para>
</listitem>
</itemizedlist>
-
- <para><emphasis>
- <property>"Action"</property>
+ <para>The <emphasis>
+ <property>"direction"</property>
</emphasis> and <emphasis>
- <property>"ActionListener"</property>
- </emphasis> attributes are ignored. Items don't fire any submits itself. Behavior is
- fully defined by the components nested to items. Groups expand on the client side.</para>
-
+ <property>"jointPoint"</property>
+ </emphasis> attributes are used for defining aspects of calendar appearance.</para>
+ <para>The possible values for the <emphasis>
+ <property>"direction"</property>
+ </emphasis> are: </para>
+ <itemizedlist>
+ <listitem>top-left - a calendar drops to the top and left</listitem>
+ <listitem>top-right - a calendar drops to the top and right</listitem>
+ <listitem>bottom-left - a calendar drops to the bottom and left</listitem>
+ <listitem>bottom-right - a calendar drops to the bottom and right</listitem>
+ <listitem>auto - smart positioning activation</listitem>
+ </itemizedlist>
+ <para> By default, the <emphasis>
+ <property>"direction"</property>
+ </emphasis> attribute is set to "auto".</para>
+ <para>The <emphasis>
+ <property>"direction"</property>
+ </emphasis> and <emphasis>
+ <property>"jointPoint"</property>
+ </emphasis> attributes are used for defining aspects of calendar appearance.</para>
+ <para>The possible values for the <emphasis>
+ <property>"jointPoint"</property>
+ </emphasis> are: </para>
+ <itemizedlist>
+ <listitem>top-left - a calendar docked to the top-left point of the button element</listitem>
+ <listitem>topright - a calendar docked to the top-right point of the button element</listitem>
+ <listitem>bottom-left - a calendar docked to the bottom-left point of the button element</listitem>
+ <listitem>bottom-right - a calendar docked to the bottom-right point of the button element</listitem>
+ <listitem>auto - smart positioning activation</listitem>
+ </itemizedlist>
+ <para> By default, the <emphasis>
+ <property>"jointPoint"</property>
+ </emphasis> attribute is set to "auto".</para>
+ <para>The <emphasis role="bold">
+ <property><rich:calendar></property>
+ </emphasis> component provides to use <emphasis>
+ <property>"header"</property>
+ </emphasis> facet. For example, you can add following scrolling elements to the facet:
+ {currentMonthControl}, {nextMonthControl}, {nextYearControl}, {previousYearControl},
+ {previousMonthControl}.</para>
+ <para>Simple example is placed below.</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml">...
- <rich:panelMenu event="onclick" submitMode="none">
- < rich:panelMenuItem label="Link to external page">
- <h:outputLink ... >
- <rich:panelMenuItem>
- </rich:panelMenu>
+ <f:facet name="header">
+ <f:verbatim>
+ {previousMonthControl} | {nextMonthControl}
+ </f:verbatim>
+ </f:facet>
...</programlisting>
+ <para>It's possible to define <emphasis>
+ <property>"footer"</property>
+ </emphasis> facet and replace in it (in the same way how it was described for <emphasis>
+ <property>"header"</property>
+ </emphasis> facet), for example, following today bar elements: {todayControl},
+ {selectedDateControl}, {helpControl}.</para>
+ <para>Also you can use <emphasis>
+ <property>"optionalHeader"</property>
+ </emphasis> and <emphasis>
+ <property>"optionalFooter"</property>
+ </emphasis> facets. These facets define the top and the bottom elements of the calendar. They
+ are not attached to the control parts of the calendar. You can replace in them any content.</para>
+ <para>The <emphasis role="bold">
+ <property><rich:calendar></property>
+ </emphasis> component provides the possibility to use <emphasis>
+ <property>"weekNumber"</property>
+ </emphasis> and <emphasis>
+ <property>"weekDay"</property>
+ </emphasis> facets. For example, using these facets you can change text style for the elements
+ of the calendar as it's shown in the example below:</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="xml">...
+ <f:facet name="weekNumber">
+ <h:outputText style="font-weight: bold;" value="{weekNumber}" />
+ </f:facet>
+...</programlisting>
- <note><title>Note:</title> As the <emphasis role="bold">
- <property><rich:panelMenu></property>
- </emphasis> component doesn't provide its own form, use it between
- <h:form> and </h:form> tags.</note>
+ <para>The <emphasis role="bold">
+ <property><rich:calendar></property>
+ </emphasis> component provides the possibility to use a special data model to define data for
+ element rendering. Data model includes two major interfaces: </para>
- <para>The <emphasis>
- <property>"expandSingle"</property>
- </emphasis> attribute is defined for expanding more than one submenu on the same level. The
- default value is <emphasis>
- <property>"false"</property>
- </emphasis>. If it's true the previously opened group on the top level closes before
- opening another one. See the picture below.</para>
+ <itemizedlist>
+ <listitem>CalendarDataModel</listitem>
+ <listitem>CalendarDataModelItem</listitem>
+ </itemizedlist>
- <figure>
- <title>Using the "expandSingle" attribute</title>
+ <para><emphasis role="bold">CalendarDataModel</emphasis> provides the following function:</para>
+ <itemizedlist>
+ <listitem>CalendarDataModelItem[] getData(Date[]);</listitem>
+ </itemizedlist>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panelMenu1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <para>This method is called when it's necessary to represent the next block of
+ CalendarDataItems. It happens during navigation to the next (previous) month or in any other
+ case when calendar renders. This method is called in "Ajax" mode when the
+ calendar renders a new page. </para>
- <para>The <emphasis>
- <property>"selectedChild"</property>
- </emphasis> attribute is used for defining the name of the selected group or item. An example
- for group is placed below:</para>
+ <para><emphasis role="bold">CalendarDataModelItem</emphasis> provides the following function:</para>
+ <itemizedlist>
+ <listitem>Date getDate() - returns date from the item. Default implementation returns date.</listitem>
+ <listitem>Boolean isEnabled() - returns "true" if date is
+ "selectable" on the calendar. Default implementation returns
+ "true".</listitem>
+ <listitem>String getStyleClass() - returns string appended to the style class for the date
+ span. For example it could be "relevant holyday". It means that the class
+ could be defined like the "rich-cal-day-relevant-holyday" one. Default
+ implementation returns empty string.</listitem>
+ <listitem>Object getData() - returns any additional payload that must be JSON-serializable
+ object. It could be used in the custom date representation on the calendar (inside the
+ custom facet).</listitem>
+ </itemizedlist>
- <para>Here is an example:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="xml">...
- <rich:panelMenu selectedChild="thisChild">
- <rich:panelMenuGroup label="Group1" name="thisChild">
- <!ested panelMenu components>
- </rich:panelMenuGroup>
- </rich:panelMenu>
-...</programlisting>
</section>
- <section>
+ <!--section>
<title>JavaScript API</title>
<para>In Java Script code for expanding/collapsing group element creation it's
necessary to use doExpand()/doCollapse() function.</para>
18 years, 8 months
JBoss Rich Faces SVN: r2272 - in trunk/ui/scrollable-grid/src: test/java/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-08-15 11:36:17 -0400 (Wed, 15 Aug 2007)
New Revision: 2272
Added:
trunk/ui/scrollable-grid/src/test/java/org/richfaces/model/
Removed:
trunk/ui/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGridColumn.java
Log:
http://jira.jboss.com/jira/browse/RF-588
Deleted: trunk/ui/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGridColumn.java
===================================================================
--- trunk/ui/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGridColumn.java 2007-08-15 15:29:15 UTC (rev 2271)
+++ trunk/ui/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGridColumn.java 2007-08-15 15:36:17 UTC (rev 2272)
@@ -1,82 +0,0 @@
-/**
- *
- */
-package org.richfaces.component;
-
-import java.util.Iterator;
-
-import javax.faces.component.UIColumn;
-import javax.faces.component.UIComponent;
-
-import org.richfaces.event.sort.SortListener;
-import org.richfaces.event.sort.SortSource;
-
-/**
- * @author Anton Belevich
- *
- */
-public abstract class UIScrollableGridColumn extends UIColumn implements SortSource{
-
- public static String ASC_ICON = "ascIcon";
- public static String DESC_ICON = "descIcon";
-
- public Iterator getChildIterator(){
- return getChildren().iterator();
- }
-
- public Iterator getFacetIterator() {
- return getFacets().values().iterator();
- }
-
- public void addSortListener(SortListener listener) {
- addFacesListener(listener);
- }
-
- public SortListener[] getSortListeners() {
- return (SortListener[]) getFacesListeners(SortListener.class);
- }
-
- public void removeSortListener(SortListener listener) {
- removeFacesListener(listener);
- }
-
- public abstract boolean isSortable();
-
- public abstract void setSortable(boolean sortable);
-
- public abstract String getName();
-
- public abstract void setName(String name);
-
- public UIScrollableGrid getGrid() {
- return (UIScrollableGrid) getParent();
- }
-
- public UIComponent getAscIcon() {
- UIComponent facet = getFacet(ASC_ICON);
- return facet;
- }
-
- public void setAscIcon(UIComponent component) {
- if (component == null) {
- getFacets().remove(ASC_ICON);
- } else {
- getFacets().put(ASC_ICON, component);
- }
- }
-
- public UIComponent getDescIcon() {
- UIComponent facet = getFacet(DESC_ICON);
-
- return facet;
- }
-
- public void setDescIcon(UIComponent component) {
- if (component == null) {
- getFacets().remove(DESC_ICON);
- } else {
- getFacets().put(DESC_ICON, component);
- }
- }
-
-}
18 years, 8 months
JBoss Rich Faces SVN: r2271 - in trunk: samples/scrollable-grid-demo and 11 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-08-15 11:29:15 -0400 (Wed, 15 Aug 2007)
New Revision: 2271
Removed:
trunk/ui/scrollable-grid/src/test/java/org/richfaces/component/html/HtmlScrollableGridColumnComponentTest.java
trunk/ui/scrollable-grid/src/test/java/org/richfaces/taglib/ScrollableGridColumnTagTest.java
Modified:
trunk/framework/api/src/main/java/org/richfaces/component/Column.java
trunk/samples/scrollable-grid-demo/pom.xml
trunk/samples/scrollable-grid-demo/src/main/webapp/pages/columns.xhtml
trunk/samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml
trunk/ui/dataTable/src/main/config/component/column.xml
trunk/ui/scrollable-grid/pom.xml
trunk/ui/scrollable-grid/src/main/config/component/scrollable-grid.xml
trunk/ui/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java
trunk/ui/scrollable-grid/src/main/java/org/richfaces/event/sort/MultiColumnSortListener.java
trunk/ui/scrollable-grid/src/main/java/org/richfaces/event/sort/SingleColumnSortListener.java
trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnIterator.java
trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnVisitor.java
trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnWalker.java
trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ExtendedColumnVisitor.java
trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java
trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/SortIconRenderer.java
trunk/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx
trunk/ui/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java
Log:
http://jira.jboss.com/jira/browse/RF-588
Modified: trunk/framework/api/src/main/java/org/richfaces/component/Column.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/component/Column.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/framework/api/src/main/java/org/richfaces/component/Column.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -41,5 +41,20 @@
*/
public abstract void setBreakBefore(boolean newBreakBefore);
+
+ /**
+ * The column allows data sorting
+ * @return
+ */
+ public abstract boolean isSortable();
+
+ public abstract void setSortable(boolean sortable);
+ /*
+ * name of sort field bound to this column
+ public abstract String getName();
+
+ public abstract void setName(String name);
+
+ */
}
Modified: trunk/samples/scrollable-grid-demo/pom.xml
===================================================================
--- trunk/samples/scrollable-grid-demo/pom.xml 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/samples/scrollable-grid-demo/pom.xml 2007-08-15 15:29:15 UTC (rev 2271)
@@ -28,6 +28,11 @@
<artifactId>core</artifactId>
<version>3.1.0-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>dataTable</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ </dependency>
</dependencies>
<build>
Modified: trunk/samples/scrollable-grid-demo/src/main/webapp/pages/columns.xhtml
===================================================================
--- trunk/samples/scrollable-grid-demo/src/main/webapp/pages/columns.xhtml 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/samples/scrollable-grid-demo/src/main/webapp/pages/columns.xhtml 2007-08-15 15:29:15 UTC (rev 2271)
@@ -3,10 +3,11 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:sg="http://labs.jboss.com/jbossrichfaces/ui/scrollable-grid">
+ xmlns:sg="http://labs.jboss.com/jbossrichfaces/ui/scrollable-grid"
+ xmlns:dt="http://labs.jboss.com/jbossrichfaces/ui/dataTable">
<ui:composition>
- <sg:column width="200px">
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -14,8 +15,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -23,8 +24,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -32,8 +33,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -41,8 +42,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -50,8 +51,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -59,8 +60,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -68,8 +69,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -77,8 +78,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -86,8 +87,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -95,8 +96,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -104,8 +105,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -113,8 +114,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -122,8 +123,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -131,8 +132,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -140,8 +141,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -149,8 +150,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -158,8 +159,8 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
- <sg:column width="200px">
+ </dt:column>
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="header"></h:outputText>
</f:facet>
@@ -167,6 +168,6 @@
<f:facet name="footer">
<h:outputText value="footer"></h:outputText>
</f:facet>
- </sg:column>
+ </dt:column>
</ui:composition>
</jsp:root>
Modified: trunk/samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml
===================================================================
--- trunk/samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml 2007-08-15 15:29:15 UTC (rev 2271)
@@ -1,10 +1,12 @@
<!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:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jstl/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:sg="http://labs.jboss.com/jbossrichfaces/ui/scrollable-grid"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
+ xmlns:dt="http://labs.jboss.com/jbossrichfaces/ui/dataTable"
>
<head>
@@ -19,6 +21,11 @@
font-weight:normal;
line-height:normal;
}
+
+ .rich-sgrid-row {
+ height: 30px;
+ }
+
</style>
</head>
@@ -30,17 +37,19 @@
<h:commandLink action="#{skinBean.change}" value="set skin" />
</h:form>
<h:form>
-
+
+ <c:set var="renderFooter" value="#{true}"/>
+
<sg:scrollable-grid value="#{dataModel2}"
var="issues"
frozenColCount="3"
first="0"
rows="40"
width="800px"
- height="500px">
+ height="500px" hideWhenScrolling="false">
- <sg:column width="100px" sortable="false">
+ <dt:column width="100px" sortable="false">
<f:facet name="header">
<h:outputText value="Index"></h:outputText>
@@ -48,13 +57,15 @@
<h:outputText value="#{issues.index}"></h:outputText>
+ <c:if test="#{renderFooter}">
<f:facet name="footer">
<h:outputText value="footer0"></h:outputText>
</f:facet>
+ </c:if>
- </sg:column>
+ </dt:column>
- <sg:column width="200px">
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="Key"></h:outputText>
@@ -62,14 +73,15 @@
<h:outputText value="#{issues.key.value}"></h:outputText>
+ <c:if test="#{renderFooter}">
<f:facet name="footer">
<h:outputText value="footer1"></h:outputText>
</f:facet>
-
- </sg:column>
+ </c:if>
+ </dt:column>
- <sg:column width="200px">
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="Summary"></h:outputText>
@@ -77,13 +89,14 @@
<h:outputText value="#{issues.summary}"></h:outputText>
+ <c:if test="#{renderFooter}">
<f:facet name="footer">
<h:outputText value="footer2"></h:outputText>
</f:facet>
-
- </sg:column>
+ </c:if>
+ </dt:column>
- <sg:column width="200px">
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="Assignee"></h:outputText>
@@ -91,13 +104,14 @@
<h:inputText value="#{issues.assignee}" converter="#{jiraUserConverter}" styleClass="inputStyle"></h:inputText>
+ <c:if test="#{renderFooter}">
<f:facet name="footer">
<h:outputText value="footer3"></h:outputText>
</f:facet>
-
- </sg:column>
+ </c:if>
+ </dt:column>
- <sg:column width="200px">
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="Status"></h:outputText>
@@ -111,13 +125,14 @@
<f:selectItem itemValue="#{status_reopened}" itemLabel="Reopened"/>
</h:selectOneMenu>
+ <c:if test="#{renderFooter}">
<f:facet name="footer">
<h:outputText value="footer4"></h:outputText>
</f:facet>
-
- </sg:column>
+ </c:if>
+ </dt:column>
- <sg:column width="200px">
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="Reporter"></h:outputText>
@@ -125,13 +140,14 @@
<h:outputText value="#{issues.reporter.username}"></h:outputText>
+ <c:if test="#{renderFooter}">
<f:facet name="footer">
<h:outputText value="footer5"></h:outputText>
</f:facet>
-
- </sg:column>
+ </c:if>
+ </dt:column>
- <sg:column width="200px">
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="Priority"></h:outputText>
@@ -145,13 +161,14 @@
<f:selectItem itemValue="#{priority_cosmetic}" itemLabel="Cosmetic"/>
</h:selectOneMenu>
+ <c:if test="#{renderFooter}">
<f:facet name="footer">
<h:outputText value="footer6"></h:outputText>
</f:facet>
-
- </sg:column>
+ </c:if>
+ </dt:column>
- <sg:column width="200px">
+ <dt:column width="200px">
<f:facet name="header">
<h:outputText value="Resolution"></h:outputText>
@@ -159,15 +176,20 @@
<h:inputText value="#{issues.resolution}" styleClass="inputStyle"></h:inputText>
+ <c:if test="#{renderFooter}">
<f:facet name="footer">
<h:outputText value="footer8"></h:outputText>
</f:facet>
-
- </sg:column>
+ </c:if>
+ </dt:column>
</sg:scrollable-grid>
<h:commandButton value="submit"></h:commandButton>
<h:messages showDetail="true"/>
</h:form>
+
+ <h:outputLink target="_blank" value="resource:///org/ajax4jsf/javascript/jsshell.html">Console</h:outputLink>
+
+
</f:view>
</body>
</html>
\ No newline at end of file
Modified: trunk/ui/dataTable/src/main/config/component/column.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/column.xml 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/dataTable/src/main/config/component/column.xml 2007-08-15 15:29:15 UTC (rev 2271)
@@ -60,6 +60,19 @@
<classname>java.lang.String</classname>
<description>Space-separated list of CSS style class(es) that are be applied to any footer generated for this table</description>
</property>
+ <property>
+ <name>width</name>
+ <classname>java.lang.String</classname>
+ <description></description>
+ <defaultvalue>"100px"</defaultvalue>
+ </property>
+
+ <property>
+ <name>sortable</name>
+ <classname>boolean</classname>
+ <description></description>
+ <defaultvalue>true</defaultvalue>
+ </property>
<!--
<property>
<name>param</name>
Modified: trunk/ui/scrollable-grid/pom.xml
===================================================================
--- trunk/ui/scrollable-grid/pom.xml 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/pom.xml 2007-08-15 15:29:15 UTC (rev 2271)
@@ -67,5 +67,10 @@
<artifactId>richfaces-impl</artifactId>
<version>3.1.0-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>dataTable</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ </dependency>
</dependencies>
</project>
\ No newline at end of file
Modified: trunk/ui/scrollable-grid/src/main/config/component/scrollable-grid.xml
===================================================================
--- trunk/ui/scrollable-grid/src/main/config/component/scrollable-grid.xml 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/main/config/component/scrollable-grid.xml 2007-08-15 15:29:15 UTC (rev 2271)
@@ -124,76 +124,6 @@
&ui_component_attributes;
</component>
- <component>
- <name>org.richfaces.component.ScrollableGridColumn</name>
- <family>org.richfaces.component.ScrollableGrid</family>
- <classname>
- org.richfaces.component.html.HtmlScrollableGridColumn
- </classname>
- <superclass>org.richfaces.component.UIScrollableGridColumn</superclass>
- <!--
- <test>
- <classname> org.richfaces.component.html.HtmlScrollableGridColumnTest</classname>
- <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
- </test> -->
- <tag>
- <name>column</name>
- <classname>org.richfaces.taglib.ScrollableGridColumnTag</classname>
- <superclass>
- org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
- </superclass>
- <!--
- <test>
- <classname>org.richfaces.taglib.ScrollableGridColumnTagTest</classname>
- <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
- </test> -->
- <description>
- <![CDATA[ Scrollable Grid custom column impl]]>
- </description>
- </tag>
- <property>
- <name>width</name>
- <classname>java.lang.String</classname>
- <description></description>
- <defaultvalue>"100px"</defaultvalue>
- </property>
-
- <property>
- <name>sortable</name>
- <classname>boolean</classname>
- <description></description>
- <defaultvalue>true</defaultvalue>
- </property>
-
- <property>
- <name>footerClass</name>
- <classname>java.lang.String</classname>
- </property>
-
- <property>
- <name>headerClass</name>
- <classname>java.lang.String</classname>
- </property>
-
- <property>
- <name>styleClass</name>
- <classname>java.lang.String</classname>
- </property>
-
- <property>
- <name>cellStyle</name>
- <classname>java.lang.String</classname>
- </property>
-
- <property>
- <name>cellClass </name>
- <classname>java.lang.String</classname>
- </property>
-
- &ui_component_attributes;
- &html_style_attributes;
- </component>
-
<renderer generate="true">
<template>org/richfaces/scrollable-grid-cell.jspx</template>
</renderer>
Modified: trunk/ui/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java
===================================================================
--- trunk/ui/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -246,9 +246,8 @@
chain.addIterator(getFacets().values().iterator());
for (Iterator i = getChildren().iterator(); i.hasNext(); ) {
UIComponent kid = (UIComponent)i.next();
- if (kid instanceof UIScrollableGridColumn) {
- UIScrollableGridColumn column = (UIScrollableGridColumn) kid;
- chain.addIterator(column.getChildIterator());
+ if (kid instanceof Column) {
+ chain.addIterator(kid.getChildren().iterator());
}
}
@@ -260,9 +259,8 @@
IteratorChain chain = new IteratorChain(getFacets().values().iterator());
for (Iterator i = getChildren().iterator(); i.hasNext(); ) {
UIComponent kid = (UIComponent)i.next();
- if (kid instanceof UIScrollableGridColumn) {
- UIScrollableGridColumn column = (UIScrollableGridColumn) kid;
- chain.addIterator(column.getFacetIterator());
+ if (kid instanceof Column) {
+ chain.addIterator(kid.getFacets().values().iterator());
}
}
Modified: trunk/ui/scrollable-grid/src/main/java/org/richfaces/event/sort/MultiColumnSortListener.java
===================================================================
--- trunk/ui/scrollable-grid/src/main/java/org/richfaces/event/sort/MultiColumnSortListener.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/main/java/org/richfaces/event/sort/MultiColumnSortListener.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -8,10 +8,11 @@
import java.util.LinkedList;
import java.util.List;
+import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
+import org.richfaces.component.Column;
import org.richfaces.component.UIScrollableGrid;
-import org.richfaces.component.UIScrollableGridColumn;
import org.richfaces.model.SortField;
import org.richfaces.model.SortOrder;
@@ -32,10 +33,13 @@
public void processSort(SortEvent e) {
UIScrollableGrid grid = (UIScrollableGrid) e.getComponent();
int columnIndex = e.getSortColumn();
- UIScrollableGridColumn column =
- (UIScrollableGridColumn) grid.getChildren().get(columnIndex);
- String name = column.getName();
+
+ UIComponent column =
+ (UIComponent) grid.getChildren().get(columnIndex);
+ //TODO: replace with getName?
+ String name = column.getId();
+
SortOrder sortOrder = grid.getSortOrder();
if (sortOrder == null) {
sortOrder = new SortOrder();
Modified: trunk/ui/scrollable-grid/src/main/java/org/richfaces/event/sort/SingleColumnSortListener.java
===================================================================
--- trunk/ui/scrollable-grid/src/main/java/org/richfaces/event/sort/SingleColumnSortListener.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/main/java/org/richfaces/event/sort/SingleColumnSortListener.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -3,10 +3,12 @@
*/
package org.richfaces.event.sort;
+import javax.faces.component.UIColumn;
+import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
+import org.richfaces.component.Column;
import org.richfaces.component.UIScrollableGrid;
-import org.richfaces.component.UIScrollableGridColumn;
import org.richfaces.model.SortField;
import org.richfaces.model.SortOrder;
@@ -27,10 +29,12 @@
public void processSort(SortEvent e) {
UIScrollableGrid grid = (UIScrollableGrid) e.getComponent();
int columnIndex = e.getSortColumn();
- UIScrollableGridColumn column =
- (UIScrollableGridColumn) grid.getChildren().get(columnIndex);
- String name = column.getName();
+ UIComponent column =
+ (UIComponent) grid.getChildren().get(columnIndex);
+ //TODO: replace with getName?
+ String name = column.getId();
+
SortOrder sortOrder = grid.getSortOrder();
if (sortOrder == null) {
sortOrder = new SortOrder();
Modified: trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnIterator.java
===================================================================
--- trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnIterator.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnIterator.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -6,8 +6,8 @@
import java.util.Iterator;
import java.util.List;
+import org.richfaces.component.Column;
import org.richfaces.component.UIScrollableGrid;
-import org.richfaces.component.UIScrollableGridColumn;
/**
* @author Maksim Kaszynski
@@ -65,8 +65,8 @@
return o;
}
- public UIScrollableGridColumn nextColumn() {
- return (UIScrollableGridColumn) next();
+ public Column nextColumn() {
+ return (Column) next();
}
public void remove() {
Modified: trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnVisitor.java
===================================================================
--- trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnVisitor.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnVisitor.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -5,16 +5,15 @@
import java.io.IOException;
+import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
-import org.richfaces.component.UIScrollableGridColumn;
-
/**
* @author Anton Belevich
*
*/
public interface ColumnVisitor {
- public int visit(FacesContext context, UIScrollableGridColumn column, ResponseWriter writer, GridRendererState state) throws IOException;
+ public int visit(FacesContext context, UIComponent column, ResponseWriter writer, GridRendererState state) throws IOException;
}
Modified: trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnWalker.java
===================================================================
--- trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnWalker.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnWalker.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -10,8 +10,8 @@
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
+import org.richfaces.component.Column;
import org.richfaces.component.UIScrollableGrid;
-import org.richfaces.component.UIScrollableGridColumn;
/**
* @author Anton Belevich
@@ -44,9 +44,8 @@
for (Iterator iter = component.getChildren().iterator(); iter.hasNext(); ) {
UIComponent kid = (UIComponent) iter.next();
if (kid.isRendered()) {
- if (kid instanceof UIScrollableGridColumn){
- UIScrollableGridColumn column = (UIScrollableGridColumn)kid;
- columnsCount += visitor.visit(context, column, writer, state);
+ if (kid instanceof Column){
+ columnsCount += visitor.visit(context, kid, writer, state);
state.nextCell();
}
}
Modified: trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ExtendedColumnVisitor.java
===================================================================
--- trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ExtendedColumnVisitor.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ExtendedColumnVisitor.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -5,11 +5,10 @@
import java.io.IOException;
+import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
-import org.richfaces.component.UIScrollableGridColumn;
-
/**
* @author Anton Belevich
*
@@ -19,7 +18,7 @@
/* (non-Javadoc)
* @see org.richfaces.renderkit.html.ColumnVisitor#visit(javax.faces.context.FacesContext, org.richfaces.component.UIScrollableGridColumn, javax.faces.context.ResponseWriter, org.richfaces.renderkit.html.GridRendererState)
*/
- public int visit(FacesContext context, UIScrollableGridColumn column,
+ public int visit(FacesContext context, UIComponent column,
ResponseWriter writer, GridRendererState state) throws IOException {
if(state.isFrozenColumn()){
@@ -35,5 +34,5 @@
return 1;
};
- abstract public void renderContent(FacesContext context, UIScrollableGridColumn column,ResponseWriter writer, GridRendererState state) throws IOException;
+ abstract public void renderContent(FacesContext context, UIComponent column,ResponseWriter writer, GridRendererState state) throws IOException;
}
Modified: trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java
===================================================================
--- trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -20,8 +20,8 @@
import org.ajax4jsf.renderkit.RendererUtils.HTML;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.richfaces.component.Column;
import org.richfaces.component.UIScrollableGrid;
-import org.richfaces.component.UIScrollableGridColumn;
import org.richfaces.event.scroll.ScrollEvent;
import org.richfaces.event.sort.SortEvent;
import org.richfaces.model.SortField;
@@ -63,7 +63,7 @@
private final ColumnVisitor columnsWidthCounter = new ColumnVisitor(){
- public int visit(FacesContext context, UIScrollableGridColumn column, ResponseWriter writer, GridRendererState state) throws IOException {
+ public int visit(FacesContext context, UIComponent column, ResponseWriter writer, GridRendererState state) throws IOException {
int prevWidth = 0;
int width = 0;
@@ -83,7 +83,7 @@
private final ColumnVisitor colsRenderer = new ExtendedColumnVisitor(){
- public void renderContent(FacesContext context, UIScrollableGridColumn column, ResponseWriter writer, GridRendererState state) throws IOException {
+ public void renderContent(FacesContext context, UIComponent column, ResponseWriter writer, GridRendererState state) throws IOException {
writer.startElement("col", column);
getUtils().writeAttribute(writer, "width", column.getAttributes().get("width"));
getUtils().writeAttribute(writer, "style", column.getAttributes().get("style"));
@@ -97,7 +97,7 @@
private final ColumnVisitor headerCellRenderer = new ExtendedColumnVisitor(){
- public void renderContent(FacesContext context, UIScrollableGridColumn column, ResponseWriter writer, GridRendererState state) throws IOException {
+ public void renderContent(FacesContext context, UIComponent column, ResponseWriter writer, GridRendererState state) throws IOException {
int cell_index = state.getCellIndex();
@@ -132,7 +132,7 @@
private final ColumnVisitor headerRenderer = new ColumnVisitor() {
- public int visit(FacesContext context, UIScrollableGridColumn column,
+ public int visit(FacesContext context, UIComponent column,
ResponseWriter writer, GridRendererState state)
throws IOException {
@@ -170,9 +170,12 @@
Boolean sorting = null;
- UIScrollableGridColumn column =
- (UIScrollableGridColumn) grid.getChildren().get(columnIndex);
- String name = column.getName();
+ UIComponent column =
+ (UIComponent) grid.getChildren().get(columnIndex);
+
+ //TODO: replace with getName?
+ String name = column.getId();
+
SortOrder sortOrder = grid.getSortOrder();
if (sortOrder != null) {
@@ -197,7 +200,7 @@
private final ColumnVisitor footerCellRenderer = new ExtendedColumnVisitor(){
- public void renderContent(FacesContext context, UIScrollableGridColumn column, ResponseWriter writer, GridRendererState state) throws IOException {
+ public void renderContent(FacesContext context, UIComponent column, ResponseWriter writer, GridRendererState state) throws IOException {
int cell_index = state.getCellIndex();
String client_id = state.getClientId();
@@ -220,7 +223,7 @@
private final ColumnVisitor cellRenderer = new ExtendedColumnVisitor(){
- public void renderContent(FacesContext context, UIScrollableGridColumn column, ResponseWriter writer, GridRendererState state) throws IOException {
+ public void renderContent(FacesContext context, UIComponent column, ResponseWriter writer, GridRendererState state) throws IOException {
String cell_id = state.getRowIndex()+ "_" + state.getCellIndex();
if (log.isTraceEnabled()) {
@@ -325,8 +328,9 @@
if (kid.isRendered()) {
- if (kid instanceof UIScrollableGridColumn){
+ if (kid instanceof Column){
String baseClientId = grid.getBaseClientId(context);
+
if(state.isFrozenColumn() && !frozenTRRendered){
state.setFrozenPart(true);
@@ -355,8 +359,7 @@
}
- UIScrollableGridColumn column = (UIScrollableGridColumn)kid;
- columnsCount += cellRenderer.visit(context, column, writer, state);
+ columnsCount += cellRenderer.visit(context, kid, writer, state);
// columnsCount += cellRenderer.visit(context, column, writer, state);
@@ -568,7 +571,7 @@
int sortDataIndex = Integer.parseInt((String)parameters.get(clientId + ":sortIndex"));
Integer sortStartRow = Integer.valueOf((String)parameters.get(clientId + ":sortStartRow"));
- UIScrollableGridColumn column = (UIScrollableGridColumn)grid.getChildren().get(sortColumn);
+ Column column = (Column)grid.getChildren().get(sortColumn);
if(column.isSortable()){
Modified: trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/SortIconRenderer.java
===================================================================
--- trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/SortIconRenderer.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/SortIconRenderer.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -11,7 +11,6 @@
import org.ajax4jsf.renderkit.RendererBase;
import org.ajax4jsf.renderkit.RendererUtils.HTML;
-import org.richfaces.component.UIScrollableGridColumn;
/**
* @author Maksim Kaszynski
@@ -21,11 +20,11 @@
public void renderAscIcon(FacesContext context, UIComponent component) throws IOException{
- renderFacetOrIcon(context, component, UIScrollableGridColumn.ASC_ICON, "dr-sgrid-sort-asc");
+ renderFacetOrIcon(context, component, "ascIcon", "dr-sgrid-sort-asc");
}
public void renderDescIcon(FacesContext context, UIComponent component) throws IOException{
- renderFacetOrIcon(context, component, UIScrollableGridColumn.DESC_ICON, "dr-sgrid-sort-desc");
+ renderFacetOrIcon(context, component, "descIcon", "dr-sgrid-sort-desc");
}
private void renderFacetOrIcon(FacesContext context, UIComponent component, String facetName, String clazz) throws IOException{
Modified: trunk/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx
===================================================================
--- trunk/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx 2007-08-15 15:29:15 UTC (rev 2271)
@@ -11,7 +11,7 @@
baseclass="org.richfaces.renderkit.html.ScrollableGridBaseRenderer"
component="org.richfaces.component.UIScrollableGrid"
>
- <jsp:directive.page import="javax.faces.component.UIComponent, java.util.List, java.util.Iterator, org.richfaces.component.UIScrollableGridColumn"/>
+ <jsp:directive.page import="javax.faces.component.UIComponent,javax.faces.component.UIColumn, java.util.List, java.util.Iterator, org.richfaces.component.Column"/>
<h:styles>
/org/richfaces/renderkit/html/css/grid.xcss
</h:styles>
@@ -36,9 +36,9 @@
for (Iterator iterator = children.iterator(); iterator.hasNext();) {
UIComponent column = (UIComponent) iterator.next();
- if(column instanceof UIScrollableGridColumn){
- UIComponent hFacet = column.getFacet(HEADER_PART);
- UIComponent fFacet = column.getFacet(FOOTER_PART);
+ if(column instanceof UIColumn){
+ UIComponent hFacet = ((UIColumn) column).getHeader();
+ UIComponent fFacet = ((UIColumn) column).getFooter();
if(hFacet != null){
if(!header)
header = true;
Deleted: trunk/ui/scrollable-grid/src/test/java/org/richfaces/component/html/HtmlScrollableGridColumnComponentTest.java
===================================================================
--- trunk/ui/scrollable-grid/src/test/java/org/richfaces/component/html/HtmlScrollableGridColumnComponentTest.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/test/java/org/richfaces/component/html/HtmlScrollableGridColumnComponentTest.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -1,132 +0,0 @@
-/**
- * GENERATED FILE - DO NOT EDIT
- *
- */
-
-package org.richfaces.component.html;
-
-import javax.faces.component.UIForm;
-import javax.faces.component.html.HtmlForm;
-
-import org.ajax4jsf.tests.MockValueBinding;
-
-//import org.richfaces.component.html.HtmlScrollableGridColumn;
-
-public class HtmlScrollableGridColumnComponentTest extends org.ajax4jsf.tests.AbstractAjax4JsfTestCase {
-
-// public static final String COMPONENT_TYPE = "org.richfaces.component.ScrollableGridColumn";
-
-
- private boolean _breakBeforeSet = false;
- private boolean _sortableSet = false;
-
- private HtmlScrollableGridColumn component;
- private UIForm form;
-// private FacesContext context;
-
- /**
- * Constructor to init default renderers
- */
- public HtmlScrollableGridColumnComponentTest (String name){
- super(name);
- }
-
- /*
- * setup the tets
- */
- public void setUp() throws Exception {
- super.setUp();
- component = new HtmlScrollableGridColumn();
- form = new HtmlForm();
- form.setId("form");
- facesContext.getViewRoot().getChildren().add(form);
-
- component.setId("component");
- component.setWidth("width" );
- component.setHeaderClass("headerClass" );
- component.setFooterClass("footerClass" );
- component.setStyleClass("styleClass" );
- //component.setBreakBefore(true );
- component.setStyle("style" );
- component.setSortable(true );
-
- form.getChildren().add(component);
-
- }
-
- /*
- * setup the tets
- */
- public void tearDown() throws Exception{
- super.tearDown();
- component = null;
- form = null;
- }
-
- public void testComponent() throws Exception {
-
- }
-
- public void testContext(){
-
- Object state = component.saveState(facesContext);
- testRestoreState(state);
- }
-
- public void testGetters() {
- HtmlScrollableGridColumn component = new HtmlScrollableGridColumn();
-
- component.setValueBinding("width", new MockValueBinding("width", java.lang.String.class));
- assertEquals("width", component.getWidth());
- component.setWidth("width_width" );
- assertEquals("width_width", component.getWidth());
- component.setValueBinding("headerClass", new MockValueBinding("headerClass", java.lang.String.class));
- assertEquals("headerClass", component.getHeaderClass());
- component.setHeaderClass("headerClass_headerClass" );
- assertEquals("headerClass_headerClass", component.getHeaderClass());
- component.setValueBinding("footerClass", new MockValueBinding("footerClass", java.lang.String.class));
- assertEquals("footerClass", component.getFooterClass());
- component.setFooterClass("footerClass_footerClass" );
- assertEquals("footerClass_footerClass", component.getFooterClass());
- component.setValueBinding("styleClass", new MockValueBinding("styleClass", java.lang.String.class));
- assertEquals("styleClass", component.getStyleClass());
- component.setStyleClass("styleClass_styleClass" );
- assertEquals("styleClass_styleClass", component.getStyleClass());
- component.setValueBinding("breakBefore", new MockValueBinding(new Boolean(true), java.lang.Boolean.class));
- //assertEquals(true, component.isBreakBefore());
- //component.setBreakBefore(false );
- //assertEquals(false, component.isBreakBefore());
- component.setValueBinding("style", new MockValueBinding("style", java.lang.String.class));
- assertEquals("style", component.getStyle());
- component.setStyle("style_style" );
- assertEquals("style_style", component.getStyle());
- component.setValueBinding("sortable", new MockValueBinding(new Boolean(true), java.lang.Boolean.class));
- assertEquals(true, component.isSortable());
- component.setSortable(false );
- assertEquals(false, component.isSortable());
-
-
- }
-
- private void testRestoreState(Object state){
- HtmlScrollableGridColumn restoredComponent = new HtmlScrollableGridColumn();
- restoredComponent.restoreState(facesContext, state);
-
- assertEquals(component.getWidth(), restoredComponent.getWidth());
- assertEquals(component.getHeaderClass(), restoredComponent.getHeaderClass());
- assertEquals(component.getFooterClass(), restoredComponent.getFooterClass());
- assertEquals(component.getStyleClass(), restoredComponent.getStyleClass());
- //assertEquals(component.isBreakBefore(), restoredComponent.isBreakBefore());
- assertEquals(component.getStyle(), restoredComponent.getStyle());
- assertEquals(component.isSortable(), restoredComponent.isSortable());
-
- }
-
- private void assertEquals(double d1, double d2) {
- assertEquals(d1, d2, 0);
- }
-
- private void assertEquals(float d1, float d2) {
- assertEquals(d1, d2, 0);
- }
-}
Modified: trunk/ui/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java
===================================================================
--- trunk/ui/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -5,6 +5,7 @@
import java.util.List;
import java.util.Set;
+import javax.faces.component.UIColumn;
import javax.faces.component.UIOutput;
import javax.faces.component.html.HtmlOutputText;
@@ -12,21 +13,19 @@
import org.ajax4jsf.javascript.PrototypeScript;
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
import org.apache.commons.lang.StringUtils;
-import org.richfaces.component.UIScrollableGridColumn;
-import org.richfaces.component.html.HtmlScrollableGrid;
-import org.richfaces.component.html.HtmlScrollableGridColumn;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlScript;
+import org.richfaces.component.UIScrollableGrid;
/**
* @author Anton Belevich
*
*/
public class ScrollableGridRendererTest extends AbstractAjax4JsfTestCase{
- HtmlScrollableGrid grid;
+ UIScrollableGrid grid;
int columns = 7;
private static Set javaScripts = new HashSet();
@@ -45,17 +44,19 @@
super.setUp();
// create grid
- grid = (HtmlScrollableGrid)application.createComponent("org.richfaces.component.ScrollableGrid");
+ grid = (UIScrollableGrid)application.createComponent("org.richfaces.component.ScrollableGrid");
grid.setId("grid");
- grid.setFrozenColCount(3);
+ grid.getAttributes().put("frozenColCount", new Integer(3));
// add columns
for (int i = 0; i < columns; i++) {
- UIScrollableGridColumn column = (UIScrollableGridColumn) createComponent(
- HtmlScrollableGridColumn.COMPONENT_TYPE,
- HtmlScrollableGridColumn.class.getName(),
+ UIColumn column = (UIColumn) createComponent(
+ "org.richfaces.Column",
+ "org.richfaces.component.Column",
null, null, null);
+
+
UIOutput outputText = (UIOutput) createComponent(
HtmlOutputText.COMPONENT_TYPE, HtmlOutputText.class.getName(),
null, null, null);
Deleted: trunk/ui/scrollable-grid/src/test/java/org/richfaces/taglib/ScrollableGridColumnTagTest.java
===================================================================
--- trunk/ui/scrollable-grid/src/test/java/org/richfaces/taglib/ScrollableGridColumnTagTest.java 2007-08-15 14:55:07 UTC (rev 2270)
+++ trunk/ui/scrollable-grid/src/test/java/org/richfaces/taglib/ScrollableGridColumnTagTest.java 2007-08-15 15:29:15 UTC (rev 2271)
@@ -1,116 +0,0 @@
-/**
- * GENERATED FILE - DO NOT EDIT
- *
- */
-package org.richfaces.taglib;
-
-import java.lang.String ;
-import org.ajax4jsf.tests.AbstractAjax4JsfTestCase ;
-import javax.faces.component.UIComponent ;
-import javax.faces.component.UIComponent;
-import javax.faces.webapp.UIComponentTag;
-import org.richfaces.component.html.HtmlScrollableGridColumn;
-import javax.faces.application.Application;
-import javax.faces.el.ValueBinding;
-import javax.servlet.Servlet;
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletContext;
-import javax.servlet.ServletException;
-import javax.servlet.ServletRequest;
-import javax.servlet.ServletResponse;
-import javax.servlet.http.HttpServletRequestWrapper;
-import javax.servlet.http.HttpSession;
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.JspWriter;
-import javax.servlet.jsp.PageContext;
-import javax.servlet.jsp.el.ExpressionEvaluator;
-import javax.servlet.jsp.el.VariableResolver;
-import javax.servlet.jsp.tagext.Tag;
-import java.io.IOException;
-import java.util.Enumeration;
-
-
-
-/**
- * @author shura (latest modification by $Author: alexsmirnov $)
- * @version $Revision: 1.1.2.2 $ $Date: 2007/01/03 21:05:14 $
- *
- */
-public class ScrollableGridColumnTagTest extends org.ajax4jsf.tests.AbstractAjax4JsfTestCase {
-
-
- private ScrollableGridColumnTag tag;
-
- /**
- * Constructor to init default renderers
- */
- public ScrollableGridColumnTagTest (String name){
- super(name);
- }
-
-
- public void setUp() throws Exception {
- super.setUp();
- tag = new ScrollableGridColumnTag();
- tag.setParent(new UIComponentTag(){
-
- public String getComponentType() {
- // TODO Auto-generated method stub
- return null;
- }
-
- public String getRendererType() {
- // TODO Auto-generated method stub
- return null;
- }
-
- public int doStartTag() throws JspException {
- // TODO Auto-generated method stub
- return Tag.EVAL_BODY_INCLUDE;
- }
-
- public int doEndTag() throws JspException {
- // TODO Auto-generated method stub
- return Tag.EVAL_BODY_INCLUDE;
- }
-
- });
-
- }
-
- public void tearDown() throws Exception {
- super.tearDown();
- tag = null;
- }
-
-
- public void testSetPropertiesUIComponent() {
- HtmlScrollableGridColumn component = new HtmlScrollableGridColumn();
- // create binding
- Application application = null;
- ValueBinding binding = null;
-
-
- tag.setProperties(component);
-
-/*
- // TODO - setup properties for other cases.
- // name footer with type javax.faces.component.UIComponent
- setStringProperty(component, "width",this._width);
- // TODO - setup properties for other cases.
- // name header with type javax.faces.component.UIComponent
- setStringProperty(component, "headerClass",this._headerClass);
- setStringProperty(component, "footerClass",this._footerClass);
- // Simple type - boolean
- setBooleanProperty(component, "breakBefore",this._breakBefore);
- // Simple type - boolean
- setBooleanProperty(component, "sortable",this._sortable);
- */
- }
-
- public void testGetComponentType(){
- assertNotNull(tag.getComponentType());
- }
-
-
-}
18 years, 8 months
JBoss Rich Faces SVN: r2270 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-08-15 10:55:07 -0400 (Wed, 15 Aug 2007)
New Revision: 2270
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
Log:
http://jira.jboss.com/jira/browse/RF-597
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-08-15 14:06:00 UTC (rev 2269)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-08-15 14:55:07 UTC (rev 2270)
@@ -485,19 +485,22 @@
>here</ulink>.</para>
</section>
+ <section id="RerenderingPartPage">
+ <?dbhtml filename="RerenderingPartPage.html"?>
+ <title>How to reRender only particular row(s) of dataTable?</title>
+ <para> If you use dataTable then you may use ajaxKeys attribute to bind the rowKeys to be
+ reRendered there. After you need to point reRender on the whole table and only specified
+ rows will be reRedered.
+ <!--
+ Also the example of usage of <emphasis role="bold"
+ ><a4j:repeat></emphasis> component are available <ulink
+ url="http://livedemo.exadel.com/richfaces-demo/richfaces/repeat.jsf?c=repeat">here</ulink>.
+ -->
+ </para>
+ </section>
+
+
<section>
- <?dbhtml filename="RerenderingPartPage.html"?>
- <title>How to reRender only particular row(s) of dataTable?</title>
- <para> If you use <emphasis role="bold"><rich:dataTable></emphasis>
- then you may use ajaxKeys attribute to bind the rowKeys to be reRendered
- there. After you need to point reRender on the whole table and only
- specified rows will be reRedered. Also the example of usage of <emphasis
- role="bold"><a4j:repeat></emphasis> component are
- available <ulink url="http://livedemo.exadel.com/a4j-repeat/"
- >here</ulink>.</para>
- </section>
-
- <section>
<?dbhtml filename="Howtomakehtmlscrollbars.html"?>
<title>How to make html scrollbars in modalPanel?</title>
<para>The answer could be found on the RichFaces Users Forum:</para>
@@ -806,13 +809,13 @@
</para>
</section>
- <section id="SeveralStatusOnPage">
- <?dbhtml filename="SeveralStatusOnPage.html"?>
- <title>Can I have several <a4j:status> components on one page?</title>
- <para>Yes, you can. More information about this problem could be found on the <ulink
- url="http://livedemo.exadel.com/a4j-status/">JBoss Ajax4jsf Online
- Demos</ulink>. </para>
- </section>
+ <section id="SeveralStatusOnPage">
+ <?dbhtml filename="SeveralStatusOnPage.html"?>
+ <title>Can I have several <a4j:status> components on one page?</title>
+ <para>Yes, you can. More information about this problem could be found on the <ulink
+ url="http://livedemo.exadel.com/richfaces-demo/richfaces/status.jsf?c=status">JBoss RichFaces Online Demos</ulink>.
+ </para>
+ </section>
<section id="SomeProblemsWithRendering">
<?dbhtml filename="SomeProblemsWithRendering.html"?>
18 years, 8 months
JBoss Rich Faces SVN: r2269 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-08-15 10:06:00 -0400 (Wed, 15 Aug 2007)
New Revision: 2269
Modified:
trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml
trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml
trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml
trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
trunk/docs/userguide/en/src/main/docbook/included/form.xml
trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml
trunk/docs/userguide/en/src/main/docbook/included/include.xml
trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
trunk/docs/userguide/en/src/main/docbook/included/keepAlive.xml
trunk/docs/userguide/en/src/main/docbook/included/loadBundle.xml
trunk/docs/userguide/en/src/main/docbook/included/loadScript.xml
trunk/docs/userguide/en/src/main/docbook/included/loadStyle.xml
trunk/docs/userguide/en/src/main/docbook/included/log.xml
trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml
trunk/docs/userguide/en/src/main/docbook/included/outputPanel.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/portlet.xml
trunk/docs/userguide/en/src/main/docbook/included/push.xml
trunk/docs/userguide/en/src/main/docbook/included/region.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/support.xml
Log:
http://jira.jboss.com/jira/browse/RF-597
Modified: trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -54,7 +54,7 @@
<title>Key attributes and ways of usage</title>
<para>The component <emphasis role="bold">
<property><a4j:actionparam></property>
- </emphasis> is a combination of the functionalityity of two JSF tags: <emphasis role="bold">
+ </emphasis> is a combination of the functionality of two JSF tags: <emphasis role="bold">
<property><f:param></property>
</emphasis> and <emphasis role="bold">
<property><f:actionListener></property>
@@ -88,8 +88,11 @@
<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"
+ <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>
+ <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>.
+ </para>
</section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -28,7 +28,7 @@
</tgroup>
</table>
- <!--
+
<section>
<title>Creating on a page</title>
<para>Simple Component definition on a page:</para>
@@ -37,14 +37,14 @@
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[<a4j:ajaxListenet type=""/>
+ <programlisting role="XML"><![CDATA[...
+ <a4j:ajaxListener type="demo.Bean"/>
+...
]]></programlisting>
</section>
- -->
-
+
<section>
<title>Dynamical creation of a component from Java code</title>
-
<para>
<emphasis role="bold">Example:</emphasis>
<programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.AjaxListener;
@@ -66,9 +66,51 @@
a good place for update the list of re-rendered components, for example.
Ajax Listener is not invoked for non-Ajax request and when RichFaces works in "Ajax Request generates
Non-Ajax Response" mode. Therefore, Ajax Listener invocation is a good indicator that Ajax response is going to be processed.
-Attribute 'type' defines the fully qualified Java class name for listener. This class should implement org.ajax4jsf.events.AjaxListener interface.
-You can access to the source of the event (Ajax component) using event.getSource() call.
+Attribute 'type' defines the fully qualified Java class name for listener. This class should implement org.ajax4jsf.framework.ajax.AjaxListener
+interface. You can access to the source of the event (Ajax component) using event.getSource() call.
</para>
+ </section>
+ <section>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
+
+ <a4j:commandLink id="cLink" value="Click it To Send Ajax Request">
+ <a4j:ajaxListener type="demo.Bean"/>
+ </a4j:commandLink>
+...
+]]></programlisting>
+
+<para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+
+ <programlisting role="XML"><![CDATA[
+package demo;
+
+import org.ajax4jsf.framework.ajax.AjaxEvent;
+
+public class Bean implements org.ajax4jsf.framework.ajax.AjaxListener{
+
+...
+ public void processAjax(AjaxEvent arg0){
+ //Custom Developer Code
+ }
+...
+}
+]]></programlisting>
+ </section>
+
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/ajaxListener.jsf?c=aj...">here.
+ </ulink>
+ </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-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -52,12 +52,20 @@
<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>As any Ajax4jsf component sending AJAX requests and processing server responses <emphasis role="bold"><property><a4j:commandButton></property></emphasis> has all attributes described above (see <emphasis role="bold"><property><a4j:support></property></emphasis> chapter) that provide the required behavior of requests sending (delay, limitation of submit area and rendering, and etc.)</para>
</section>
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/commandButton.jsf?c=c...">here.
+ </ulink>
+ </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-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -61,12 +61,22 @@
<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>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>
</section>
+
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/commandLink.jsf?c=com...">here.
+ </ulink>
+ </para>
+ </section>
+
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/form.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/form.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/form.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -53,7 +53,7 @@
</section>
<section>
<title>Key attributes and ways of usage</title>
- <para>The difference with the original component is that all hidden fields required for command links 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 >
@@ -84,4 +84,12 @@
<property><a4j:support></property>
</emphasis>.</para>
</section>
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/form.jsf?c=form">here.
+ </ulink>
+ </para>
+ </section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -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>
@@ -74,6 +74,15 @@
<property><a4j:htmlCommandLink></property>
</emphasis>works as standard <emphasis role="bold">
<property><h:commandLink></property>
- </emphasis>, but here hidden fields required for correct functionalityity are rendered before the first downloading of a page, though it doesn't happen if its attribute isn't set to "false".</para>
+ </emphasis>, but here hidden fields required for correct functionality are rendered before the first downloading of a page, though it doesn't happen if its attribute isn't set to "false".</para>
</section>
+ <!--
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/htmlCommandLink.jsf?c...">here.
+ </ulink>
+ </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-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/include.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -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>
@@ -75,7 +75,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">
@@ -97,6 +97,8 @@
<title>Relevant resources links</title>
<para>
Some additional information can be found on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104158">Ajax4Jsf Users Forum.</ulink>
- </para>
+ </para><!--
+ To see how component works on practice, look at a4j-include example from
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/include.jsf?c=include">RichFaces Live Demo</ulink>. -->
</section>
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -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,13 +96,13 @@
<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">
<property><a4j:commandButton></property>
</emphasis>, but it could be activated from the JavaScript code. It allows to invoke some
- server side functionalityity and use the returned data in the JavaScript function invoked from
+ server side functionality and use the returned data in the JavaScript function invoked from
"oncomplete" attribute. So it's possible to use <emphasis
role="bold">
<property><a4j:jsFunction></property>
@@ -116,6 +116,6 @@
<para> To see how <emphasis role="bold">
<property><a4j:jsFunction></property>
</emphasis> works on practice, look at a4j-jsFunction example from <ulink
- url="http://labs.jboss.com/jbossajax4jsf/demo/index.html">here</ulink>.</para>
+ url="http://livedemo.exadel.com/richfaces-demo/richfaces/jsFunction.jsf?c=jsFu...">here</ulink>.</para>
</section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/included/keepAlive.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/keepAlive.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/keepAlive.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -84,7 +84,7 @@
<section>
<title>Relevant resources links</title>
<para>
- Some additional information about usage of components can be found <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104989">here.
+ Some additional information about usage of component can be found <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104989">here.
</ulink>
</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/loadBundle.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/loadBundle.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/loadBundle.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -44,7 +44,7 @@
<emphasis role="bold">Example:</emphasis>
<programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.AjaxLoadBundle;
...
-LoadBundle myBundle = new LoadBundle();
+AjaxLoadBundle myBundle = new AjaxLoadBundle();
...
]]></programlisting>
</para>
@@ -68,7 +68,7 @@
</emphasis> are unavailable.
Instead of
<emphasis role="bold"><property><f:loadBundle></property>
- </emphasis> that could be located anywhere on the page, the
+ </emphasis> that might be located anywhere on the page, the
<emphasis role="bold"><property><a4j:loadBundle></property>
</emphasis> should be declared inside the
@@ -82,4 +82,12 @@
</para>
</section>
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/bundle.jsf?c=loadBundle">here.
+ </ulink>
+ </para>
+ </section>
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/loadScript.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/loadScript.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/loadScript.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -68,4 +68,14 @@
page while using <property>facelets templates</property> .
</para>
</section>
+
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/script.jsf?c=loadScript">here.
+ </ulink>
+ </para>
+ </section>
+
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/loadStyle.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/loadStyle.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/loadStyle.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -55,7 +55,7 @@
<section>
<title>Key attributes and ways of usage</title>
<para>
- As it was mentioned <link linkend="loadStyle">before</link> this component returns its value passing it to the
+ As it was mentioned <link linkend="loadStyle">before</link> this componment returns its value passing it to the
getResourceUR() method of the ViewHandler for this application, and passing
the result via the encodeResourceURL() method of the ExternalContext.
</para>
@@ -68,5 +68,13 @@
page while using <property>facelets templates</property> .
</para>
</section>
-
+
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/log.jsf?c=log">here.
+ </ulink>
+ </para>
+ </section>
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/log.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/log.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/log.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -66,7 +66,16 @@
<para>The component defined this way is decoded on a page as <emphasis role="bold"><property><div></property></emphasis> inside a page, where all the information beginning with informational message is generated.</para>
<note>
<title>Note:</title>
- <para><emphasis role="bold"><a4j:log></emphasis> is getting renewed automatically after execution of Ajax requests. Don't renew <emphasis role="bold"><a4j:log></emphasis> by using reRender!</para>
+ <para><emphasis role="bold"><a4j:log></emphasis> is getting renewed automatically after execution of ajax requests. Don't renew <emphasis role="bold"><a4j:log></emphasis> by using reRender!</para>
</note>
</section>
+ <!--
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/log.jsf?c=log">here.
+ </ulink>
+ </para>
+ </section> -->
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -94,6 +94,15 @@
</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>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/mediaOutput.jsf?c=med...">here.
+ </ulink>
+ </para>
+ </section> -->
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -66,7 +66,7 @@
To speed up the performance, Ajax4jsf updates only a component tree. <emphasis role="bold">
<property><a4j:outputPanel></property>
- </emphasis> usage is recommended for wrapping components that aren't rendered during the primary non-Ajax response, as the components don't present in a component tree.
+ </emphasis> usage is recommended for wrapping components that aren't rendered during the primary non-ajax response, as the components don't present in a component tree.
</para>
<para><emphasis role="bold">Example:</emphasis></para>
<programlisting role="XML"><![CDATA[<a4j:support ... reRender="mypanel"/>
@@ -130,7 +130,11 @@
<section>
<title>Relevant resources links</title>
<para>
- Some additional information about usage of component can be found <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052203#...">here</ulink>.
+ Some additional information about usage of component can be found
+ <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052203#...">here</ulink>.
+ <!--
+ To see how component works on practice, look at a4j-outputPanel example from
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/outputPanel.jsf?c=out...">RichFaces Live Demo</ulink>. -->
</para>
</section>
</chapter>
\ 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-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -87,13 +87,19 @@
<section>
<title>Relevant resources links</title>
- <para>All other component functionalityity is the same as of <emphasis role="bold">
+ <para>All other component functionality is the same as of <emphasis role="bold">
<a4j:region>.
</emphasis> Its desctriprion could be found
<member>
<ulink url="http://webdownload.exadel.com/downloads/ajax4jsf/documentation/tldDoc/">here</ulink>.
</member>
- </para>
+ </para>
+ <!--
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/page.jsf?c=page">here.
+ </ulink>
+ </para> -->
</section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/included/poll.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -85,6 +85,11 @@
The aditional information about component usage you can find here:<ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=103909">Ajax4Jsf Users Forum.
</ulink>
</para>
+
+ <para>
+ To see how component works on practice, look at a4j-poll example from
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/poll.jsf?c=poll">RichFaces Live Demo</ulink>.
+ </para>
</section>
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/portlet.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/portlet.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/portlet.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version='1.0' encoding='UTF-8'?>
<chapter>
<table>
@@ -56,7 +56,7 @@
<para>
Portal page can include some instances of the same portlet but clientId of elements should be different for each window.
In that case 'namespace' is used for each portlet. The <emphasis role="bold"><property><a4j:portlet></property></emphasis>
- implements NaimingContainer interface and adds namespace to all components on a page.
+ implemets NaimingContainer interface and adds namespace to all componets on a page.
All portlet content should be wrapped by <emphasis role="bold"><property><a4j:portlet></property></emphasis> for resolving problems mentioned
before.
</para>
@@ -65,7 +65,7 @@
<section>
<title>Relevant resources links</title>
<para>
- The additional information about component usage you can find here:
+ The aditional information about component usage you can find here:
<ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=107325">Ajax4Jsf Users Forum.
</ulink>
</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/push.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/push.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/push.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -61,7 +61,9 @@
'interval' - Interval (in ms) for call push requests. Default value 1000 (1 sec).
<!-- If "0" a connection is permanent. Also user can set different value for parameter 'timeout'. -->
</para>
+<para>
Code for registration of listener:
+</para>
<programlisting role="JAVA"><![CDATA[
public void addListener(EventListener listener) {
synchronized (listener) {
@@ -70,16 +72,26 @@
}
]]></programlisting>
-
+<para>
Component can get message using current code:
+</para>
<programlisting role="JAVA"><![CDATA[
System.out.println("event occurs");
synchronized (listener) {
listener.onEvent(new EventObject(this));
}
]]></programlisting>
-
+<para>
Thus, component 'push' uses asynchronous model instead of polls.
-
+</para>
</section>
+ <!--
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/push.jsf?c=push">here.
+ </ulink>
+ </para>
+ </section> -->
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/region.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/region.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/region.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -117,4 +117,12 @@
region and encode performance time is reduced. This optimization doesn't allow data update out of the
region and should be implemented very carefully. The data out of the region described with "renderRegionOnly"="false" is updated successfully.</para>
</section>
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/region.jsf?c=region">here.
+ </ulink>
+ </para>
+ </section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/included/repeat.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/repeat.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/repeat.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -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>
@@ -115,4 +115,13 @@
<property><ui:repeat></property>
</emphasis>) and are used in the same way.</para>
</section>
+ <!--
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/repeat.jsf?c=repeat">here.
+ </ulink>
+ </para>
+ </section> -->
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/status.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/status.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/status.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -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>
@@ -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>
@@ -116,4 +116,12 @@
</emphasis>
attribute from "incline"(default) to "block".</para>
</section>
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/status.jsf?c=status">here.
+ </ulink>
+ </para>
+ </section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-08-15 13:36:54 UTC (rev 2268)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-08-15 14:06:00 UTC (rev 2269)
@@ -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 functionalityity 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}">
@@ -81,11 +81,11 @@
<property><a4j:poll></property>
</emphasis> and others from Ajax4jsf library are already supplied with <emphasis role="bold">
<property><a4j:support></property>
- </emphasis> functionalityity and there is no necessity to add the support to them. </para>
+ </emphasis> functionality and there is no necessity to add the support to them. </para>
</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>
@@ -151,4 +151,13 @@
</listitem>
</itemizedlist>
</section>
+
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/support.jsf?c=support">here.
+ </ulink>
+ </para>
+ </section>
</chapter>
\ No newline at end of file
18 years, 8 months
JBoss Rich Faces SVN: r2268 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-15 09:36:54 -0400 (Wed, 15 Aug 2007)
New Revision: 2268
Modified:
trunk/docs/userguide/en/src/main/docbook/included/actionparam.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml
trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.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/datascroller.xml
trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml
trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml
trunk/docs/userguide/en/src/main/docbook/included/dragIndicator1.xml
trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml
trunk/docs/userguide/en/src/main/docbook/included/draggable.xml
trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/dropZone.xml
trunk/docs/userguide/en/src/main/docbook/included/gmap.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/gmap.xml
trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml
trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
trunk/docs/userguide/en/src/main/docbook/included/loadBundle.xml
trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/page.xml
trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml
trunk/docs/userguide/en/src/main/docbook/included/panel.xml
trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml
trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml
trunk/docs/userguide/en/src/main/docbook/included/separator.xml
trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml
trunk/docs/userguide/en/src/main/docbook/included/spacer.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.xml
trunk/docs/userguide/en/src/main/docbook/included/tab.xml
trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/toggleControl.xml
trunk/docs/userguide/en/src/main/docbook/included/togglePanel.xml
trunk/docs/userguide/en/src/main/docbook/included/toolBar.xml
trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/tree.xml
trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml
trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.xml
Log:
http://jira.jboss.com/jira/browse/RF-398
some spelling mistakes were corrected
Modified: trunk/docs/userguide/en/src/main/docbook/included/actionparam.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/actionparam.desc.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/actionparam.desc.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -2,7 +2,7 @@
<section>
<para>The <emphasis role="bold">
<property><a4j:actionparam></property>
- </emphasis> component combines the functionality of both JSF components: <emphasis role="bold">
+ </emphasis> component combines the functionalityity of both JSF components: <emphasis role="bold">
<property><f:param></property>
</emphasis> and <emphasis role="bold">
<property><f:actionListener></property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/actionparam.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -54,7 +54,7 @@
<title>Key attributes and ways of usage</title>
<para>The component <emphasis role="bold">
<property><a4j:actionparam></property>
- </emphasis> is a combination of the functionality of two JSF tags: <emphasis role="bold">
+ </emphasis> is a combination of the functionalityity of two JSF tags: <emphasis role="bold">
<property><f:param></property>
</emphasis> and <emphasis role="bold">
<property><f:actionListener></property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -37,7 +37,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -45,7 +45,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
<emphasis role="bold">Example:</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-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/datascroller.desc.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -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 functionalityity of tables scrolling using AJAX
requests.</para>
<figure>
<title>Datascroller component</title>
@@ -23,7 +23,7 @@
<itemizedlist>
<listitem>
- <para>Provides table scrolling functionality</para>
+ <para>Provides table scrolling functionalityity</para>
</listitem>
<listitem>
Modified: trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -45,7 +45,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -75,7 +75,7 @@
<title>Details of Usage</title>
<para>The <emphasis role="bold">
<property><rich:Datascroller></property>
- </emphasis> component provides table scrolling functionality the same as tomahawk scroller but
+ </emphasis> component provides table scrolling functionalityity the same as tomahawk scroller but
with Ajax requests usage.</para>
<para>The component should be placed into footer of the parent table or be bound to it with the <emphasis>
<property>"for"</property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -51,7 +51,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page, nested in one of the drag-and-drop components:</para>
+ <para>Here is a simple example as it could be used on a page, nested in one of the drag-and-drop components:</para>
<para>
@@ -85,7 +85,7 @@
<para><property>dndParam</property> is used during drag-and-drop
operations to pass parameters to an indicator. At first, a parameter type
- is defined with the type attribute (to specify parameter functionality),
+ is defined with the type attribute (to specify parameter functionalityity),
then a parameter name could be defined with the name and value attribute.
Although, it's possible to use nested content defined inside
<property>dndParam</property> for value definition, instead of the
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -45,7 +45,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragIndicator1.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragIndicator1.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragIndicator1.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -45,7 +45,7 @@
</section>
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -59,7 +59,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/draggable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/draggable.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/draggable.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -45,7 +45,7 @@
</section>
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -55,7 +55,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropZone.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropZone.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropZone.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
</section>
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/gmap.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/gmap.desc.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/gmap.desc.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -20,7 +20,7 @@
<section>
<title>Key Features</title>
<itemizedlist>
- <listitem>Presents all the Google <property>map</property> functional</listitem>
+ <listitem>Presents all the Google <property>map</property> functionality</listitem>
<listitem>Highly customizable via attributes</listitem>
<listitem>No developers JavaScript writing needed to use on the pages</listitem>
</itemizedlist>
Modified: trunk/docs/userguide/en/src/main/docbook/included/gmap.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/gmap.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/gmap.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/htmlCommandLink.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -74,6 +74,6 @@
<property><a4j:htmlCommandLink></property>
</emphasis>works as standard <emphasis role="bold">
<property><h:commandLink></property>
- </emphasis>, but here hidden fields required for correct functionality are rendered before the first downloading of a page, though it doesn't happen if its attribute isn't set to "false".</para>
+ </emphasis>, but here hidden fields required for correct functionalityity are rendered before the first downloading of a page, though it doesn't happen if its attribute isn't set to "false".</para>
</section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -43,7 +43,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -95,7 +95,7 @@
</imageobject>
</mediaobject>
</figure>
- <para>There are also several attributes to define functional peculiarities:</para>
+ <para>There are also several attributes to define functionality peculiarities:</para>
<itemizedlist>
<listitem>
<emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -102,7 +102,7 @@
</emphasis> is similar to <emphasis role="bold">
<property><a4j:commandButton></property>
</emphasis>, but it could be activated from the JavaScript code. It allows to invoke some
- server side functionality and use the returned data in the JavaScript function invoked from
+ server side functionalityity and use the returned data in the JavaScript function invoked from
"oncomplete" attribute. So it's possible to use <emphasis
role="bold">
<property><a4j:jsFunction></property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/loadBundle.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/loadBundle.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/loadBundle.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -68,7 +68,7 @@
</emphasis> are unavailable.
Instead of
<emphasis role="bold"><property><f:loadBundle></property>
- </emphasis> that might be located anywhere on the page, the
+ </emphasis> that could be located anywhere on the page, the
<emphasis role="bold"><property><a4j:loadBundle></property>
</emphasis> should be declared inside the
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -42,7 +42,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -42,7 +42,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -42,7 +42,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -59,7 +59,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/page.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -87,7 +87,7 @@
<section>
<title>Relevant resources links</title>
- <para>All other component functionality is the same as of <emphasis role="bold">
+ <para>All other component functionalityity is the same as of <emphasis role="bold">
<a4j:region>.
</emphasis> Its desctriprion could be found
<member>
Modified: trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/separator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/separator.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/separator.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -45,7 +45,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/spacer.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/spacer.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/spacer.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -43,7 +43,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page:</para>
+ <para>Here is a simple example as it could be used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -35,7 +35,7 @@
<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
+ </emphasis> as nested to the component requesting AJAX functionalityity 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>
@@ -81,7 +81,7 @@
<property><a4j:poll></property>
</emphasis> and others from Ajax4jsf library are already supplied with <emphasis role="bold">
<property><a4j:support></property>
- </emphasis> functionality and there is no necessity to add the support to them. </para>
+ </emphasis> functionalityity and there is no necessity to add the support to them. </para>
</note>
<para>With the help of <emphasis >
<property>"onsubmit"</property></emphasis> and <emphasis >
Modified: trunk/docs/userguide/en/src/main/docbook/included/tab.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tab.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/tab.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -43,7 +43,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/toggleControl.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toggleControl.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/toggleControl.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -45,7 +45,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/togglePanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/togglePanel.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/togglePanel.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -86,7 +86,7 @@
<property>"initialState"</property>
</emphasis> attribute, where a facet name that is shown at first is defined.</para>
<note><title>Note:</title> It's also possible to define an
- <property>"empty"</property> facet to implement the functionality as
+ <property>"empty"</property> facet to implement the functionalityity as
drop-down panels have and make the facet active when no content is required to be rendered.</note>
<para>Switching mode could be defined with the <emphasis>
<property>"switchType"</property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/toolBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toolBar.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/toolBar.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -75,7 +75,7 @@
bar with possibility to group, arrange on the both bar sides, and place predefined separators
between them.</para>
<para>Grouping and an input side definition is described for <property>toolBarGroup</property>
- that defines this functionality.</para>
+ that defines this functionalityity.</para>
<para>Separators are located between components with the help of the <emphasis>
<property>"itemSeparator"</property>
</emphasis> attribute with four predefined values:</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
</section>
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -160,7 +160,7 @@
</section>
<section>
<title>Built-In Drag and Drop</title>
- <para>The tree component functionality provides a built-in support for Drag and Drop operations.
+ <para>The tree component functionalityity provides a built-in support for Drag and Drop operations.
The main usage principles are the same as for Rich Faces Drag and Drop wrapper components.
Hence, to get additional information on the topic, read the corresponding chapters:<link
linkend="dndParam">"rich:dndParam"</link>
@@ -296,7 +296,7 @@
<ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/tree.jsf?c=tree">Here</ulink>
you can see the example of <emphasis role="bold"><rich:tree></emphasis> usage
and sources for the given example. </para>
- <para>How to Expand/Collapse Tree Nodes from code see <ulink
+ <para>How to Expand/Collapse Tree Nodes from code, see <ulink
url="http://labs.jboss.com/wiki/ExpandCollapseTreeNodes">here</ulink>. </para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -44,7 +44,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -20,7 +20,7 @@
<section>
<title>Key Features</title>
<itemizedlist>
- <listitem>Presents the Microsoft <property>Virtual Earth map</property> functionality</listitem>
+ <listitem>Presents the Microsoft <property>Virtual Earth map</property> functionalityity</listitem>
<listitem>Highly customizable via attributes</listitem>
<listitem>No developers JavaScript writing is needed to use it on the pages</listitem>
</itemizedlist>
Modified: trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.xml 2007-08-15 13:34:33 UTC (rev 2267)
+++ trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.xml 2007-08-15 13:36:54 UTC (rev 2268)
@@ -43,7 +43,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it might be used in a page: </para>
+ <para>Here is a simple example as it could be used on a page: </para>
<para>
<emphasis role="bold">Example:</emphasis>
18 years, 8 months