Author: cluts
Date: 2009-01-14 12:09:39 -0500 (Wed, 14 Jan 2009)
New Revision: 12282
Modified:
trunk/docs/userguide/en/src/main/docbook/included/column.xml
Log:
RF-5448 - the information has been updated and corrected.
Modified: trunk/docs/userguide/en/src/main/docbook/included/column.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/column.xml 2009-01-14 17:08:39 UTC
(rev 12281)
+++ trunk/docs/userguide/en/src/main/docbook/included/column.xml 2009-01-14 17:09:39 UTC
(rev 12282)
@@ -222,7 +222,8 @@
<para> In order to sort the columns you should use
<emphasis>
<property>"sortBy"</property>
</emphasis> attribute that indicates what
values to be
- sorted. In order to sort the column you should
click on its
+ sorted.This attribute can be used only with the
<emphasis
role="bold"><property><rich:dataTable></property></emphasis>
component.
+ In order to sort the column you should click on
its
header. See the following example. </para>
<para>
<emphasis
role="bold">Example:</emphasis>
@@ -263,6 +264,49 @@
</imageobject>
</mediaobject>
</figure>
+ <para>The <emphasis>
+
<property>"sortExpression"</property>
+ </emphasis> attribute defines a bean property which
is used
+ for sorting of a column. This attribute can be
used only with the <emphasis
role="bold"><property><rich:scrollableDataTable></property></emphasis>
component.
+ The following example is a example of the
attribute usage.
+ </para>
+ <para>
+ <emphasis
role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:scrollableDataTable id="carList"
value="#{dataTableScrollerBean.allCars}"
+ sortMode="single" binding="#{dataTableScrollerBean.table}">
+ <rich:column id="make" sortExpression="#{cap.state}">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText"
value="Make"/>
+ </f:facet>
+ <h:outputText value="#{category.make}"/>
+ </rich:column>
+ <rich:column id="model">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText"
value="Model"/>
+ </f:facet>
+ <h:outputText value="#{category.model}"/>
+ </rich:column>
+ <rich:column id="price">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText"
value="Price"/>
+ </f:facet>
+ <h:outputText value="#{category.price}"/>
+ </rich:column>
+</rich:scrollableDataTable>
+...]]></programlisting>
+ <!-- <figure>
+ <title>The <emphasis>
+
<property>"sortExpression"</property>
+ </emphasis> attribute usage</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
fileref="images/column7.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>-->
<para> The <emphasis>
<property>"selfSorted"</property>
</emphasis> attribute that would add the
possibility of
@@ -367,51 +411,8 @@
</emphasis> attribute which is used with
<emphasis
role="bold">
<property><rich:scrollableDataTable></property>
- </emphasis> component. In the following
example only the
- first column could be sorted. </para>
- <para>
- <emphasis
role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
-<rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1"
- id="carList" columnClasses="col"
value="#{dataTableScrollerBean.allCars}" var="category"
- sortMode="single" binding="#{dataTableScrollerBean.table}"
- selection="#{dataTableScrollerBean.selection}">
- <rich:column id="make" sortable="true">
- <f:facet name="header">
- <h:outputText styleClass="headerText"
value="Make"/>
- </f:facet>
- <h:outputText value="#{category.make}"/>
- </rich:column>
- <rich:column id="model">
- <f:facet name="header">
- <h:outputText styleClass="headerText"
value="Model"/>
- </f:facet>
- <h:outputText value="#{category.model}"/>
- </rich:column>
- <rich:column id="price">
- <f:facet name="header">
- <h:outputText styleClass="headerText"
value="Price"/>
- </f:facet>
- <h:outputText value="#{category.price}"/>
- </rich:column>
-</rich:scrollableDataTable>
-...]]></programlisting>
- <figure>
- <title>The <emphasis>
-
<property>"sortable"</property>
- </emphasis> attribute
usage</title>
- <mediaobject>
- <imageobject>
- <imagedata
fileref="images/column7.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- <para><emphasis>
-
<property>"sortExpression"</property>
- </emphasis> attribute defines a bean
property which is used
- for sorting of a column. This attribute can be
used only with the <emphasis
role="bold"><property><rich:scrollableDataTable></property></emphasis>
component.</para>
+ </emphasis> component.</para>
+
</section>
<section id="filter">
Show replies by date