Author: cluts
Date: 2008-04-09 09:09:43 -0400 (Wed, 09 Apr 2008)
New Revision: 7701
Modified:
trunk/docs/userguide/en/src/main/docbook/included/column.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/column.xml
trunk/docs/userguide/en/src/main/resources/images/columnFilt1.png
trunk/docs/userguide/en/src/main/resources/images/columnsort1.png
Log:
RF-1740 - updated information for sorting and filtering; updated screens
Modified: trunk/docs/userguide/en/src/main/docbook/included/column.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/column.desc.xml 2008-04-09 13:06:51
UTC (rev 7700)
+++ trunk/docs/userguide/en/src/main/docbook/included/column.desc.xml 2008-04-09 13:09:43
UTC (rev 7701)
@@ -23,7 +23,8 @@
<listitem>Completely skinned table rows and child elements</listitem>
<listitem>Possibility to combine columns with the help of <emphasis
><property>"colspan"</property></emphasis></listitem>
<listitem>Possibility to combine rows with the help of <emphasis
><property>"rowspan"</property></emphasis> and
<emphasis
><property>"breakBefore"</property></emphasis></listitem>
- <listitem>Possibility to sort and to filter of columns</listitem>
+ <listitem>Sorting column values</listitem>
+ <listitem>Filtering column values</listitem>
</itemizedlist>
</section>
</section>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/column.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/column.xml 2008-04-09 13:06:51 UTC
(rev 7700)
+++ trunk/docs/userguide/en/src/main/docbook/included/column.xml 2008-04-09 13:09:43 UTC
(rev 7701)
@@ -189,8 +189,8 @@
<section>
<title>Sorting</title>
<para>
- In order to sort the columns you could use
<emphasis><property>"sortBy"</property></emphasis>
attribute
- which defines a bean property which is used for sorting of a column. See
the following example.
+ In order to sort the columns you could use
<emphasis><property>"sortBy"</property></emphasis>
attribute indicates what values to be sorted column.
+ The original column is not sorted. In order to sort the column should
double-click on its header. See the following example.
</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -227,10 +227,34 @@
</imageobject>
</mediaobject>
</figure>
-
<para>
- In order to change sort order you could use
<emphasis><property>"sortOrder"</property></emphasis>
attribute.
+ The
<emphasis><property>"selfSorted"</property></emphasis>
attribute
+ that would add the possibility of automatic sorting by clicking the
column header.
+ Default value is "true". In the example below the
second column is unavailable for sorting.
</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:dataTable value="#{capitalsBean.capitals}" var="cap">
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="State Flag"/>
+ </f:facet>
+ <h:graphicImage value="#{cap.stateFlag}"/>
+ </rich:column>
+ <rich:column sortBy="#{cap.state}" selfSorted="false">
+ <f:facet name="header">
+ <h:outputText value="State Name"/>
+ </f:facet>
+ <h:outputText value="#{cap.state}"/>
+ </rich:column>
+</rich:dataTable>
+...]]></programlisting>
+ <para>
+
<emphasis><property>"sortOrder"</property></emphasis>
attribute
+ is used for changing the sorting of columns by means of external controls.
+ </para>
<para>Possible values are:</para>
<itemizedlist>
<listitem>
@@ -244,12 +268,6 @@
</listitem>
</itemizedlist>
<para>
- If you don't use
<emphasis><property>"sortOrder"</property></emphasis>
attribute then the first column is sorted in ascending.
- </para>
- <para>
- In order to change the sort order, you could double-click on the header
of column, which you want to sort.
- </para>
- <para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
@@ -289,14 +307,14 @@
<para>
The
<emphasis><property>"sortPriority"</property></emphasis>
attribute
defines a set of column <property>ids</property> in the order
the columns could be set.
- </para>
+ </para>
<para>
If the columns sort order changed externally sort priorities could be
used to define which columns will be sorted first.
</para>
<!--para>
Note that
<emphasis><property>"sortPriority"</property></emphasis>
attribute is defined in
the <emphasis
role="bold"><property><rich:dataTable></property></emphasis>
component!
- </para-->
+ </para-->
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -322,38 +340,6 @@
</h:form>
...]]></programlisting>
<para>
- You could manage if the header of the column is clickable, icons rendered
and sorting is fired after click on the header
- with the help of the following attributes:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- The
<emphasis><property>"selfSorted"</property></emphasis>
attribute
- which is defined in <emphasis
role="bold"><property><rich:dataTable></property></emphasis>
component.
- Default value is "true". In the example
below the second column is unavailable for sorting.
- </para>
- <para>
- <emphasis
role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
-<rich:dataTable value="#{capitalsBean.capitals}" var="cap">
- <rich:column>
- <f:facet name="header">
- <h:outputText value="State Flag"/>
- </f:facet>
- <h:graphicImage value="#{cap.stateFlag}"/>
- </rich:column>
- <rich:column sortBy="#{cap.state}" selfSorted="false">
- <f:facet name="header">
- <h:outputText value="State Name"/>
- </f:facet>
- <h:outputText value="#{cap.state}"/>
- </rich:column>
-</rich:dataTable>
-...]]></programlisting>
- </listitem>
- <listitem>
- <para>
The
<emphasis><property>"sortable"</property></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.
@@ -394,18 +380,6 @@
</imageobject>
</mediaobject>
</figure>
- </listitem>
- </itemizedlist>
-
- <note>
- <title>Note:</title>
- <para>
- The
<emphasis><property>"sortExpression"</property></emphasis>
attribute that defines
- sorting property is deprecated! You could use the
<emphasis><property>"sortBy"</property></emphasis>
attribute
- for the same purpose.
- </para>
- </note>
-
<para>
Sorting could not be used together with pagination.
Only row that currently on the client could be sorted.
@@ -471,7 +445,7 @@
</listitem>
<listitem>
<para>
- Using external filtering. In this case you need to write your
custom filtering function and define controls.
+ Using external filtering. In this case you need to write your
custom filtering function or expression and define controls.
</para>
<para>
The
<emphasis><property>"filterExpression"</property></emphasis>
attribute is used to define expression evaluated to boolean value.
Modified: trunk/docs/userguide/en/src/main/resources/images/columnFilt1.png
===================================================================
(Binary files differ)
Modified: trunk/docs/userguide/en/src/main/resources/images/columnsort1.png
===================================================================
(Binary files differ)
Show replies by date