Author: ochikvina
Date: 2009-08-28 09:31:47 -0400 (Fri, 28 Aug 2009)
New Revision: 15407
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_columnGroup.xml
Log:
https://jira.jboss.org/jira/browse/RF-7686 - the component description is updated;
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_columnGroup.xml
===================================================================
---
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_columnGroup.xml 2009-08-28
13:28:27 UTC (rev 15406)
+++
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_columnGroup.xml 2009-08-28
13:31:47 UTC (rev 15407)
@@ -73,7 +73,7 @@
</rich:dataTable>
...
</programlisting>
- <para>And representation without a grouping:</para>
+ <para>And here is a representation without a grouping:</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -87,10 +87,10 @@
<rich:column breakBefore="true">
<h:outputText value="#{cap.state}"/>
</rich:column>
- <rich:column breakBefore="true">
+ <rich:column>
<h:outputText value="#{cap.name}"/>
</rich:column>
- <rich:column >
+ <rich:column>
<h:outputText value="#{cap.timeZone}"/>
</rich:column>
</rich:dataTable>
@@ -110,35 +110,48 @@
</imageobject>
</mediaobject>
</figure>
- <para>It's also possible to use the component for output of complex
headers in a table. For example adding
+ <para>It's also possible to use the component for output of complex
headers in a table. For example, adding
of a complex header to a facet for the whole table looks the following
way:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
-<f:facet name="header">
- <rich:columnGroup>
- <rich:column rowspan="2">
- <h:outputText value="State Flag"/>
- </rich:column>
- <rich:column colspan="3">
- <h:outputText value="State Info"/>
- </rich:column>
- <rich:column breakBefore="true">
- <h:outputText value="State Name"/>
- </rich:column>
- <rich:column>
- <h:outputText value="State Capital"/>
- </rich:column>
- <rich:column>
- <h:outputText value="Time Zone"/>
- </rich:column>
- </rich:columnGroup>
-</f:facet>
-...
-</programlisting>
- <para>Generated on a page as:</para>
+ <programlisting role="XML"><![CDATA[...
+<rich:dataTable value="#{capitalsBean.capitals}" var="cap"
rows="5" id="sublist">
+ <f:facet name="header">
+ <rich:columnGroup>
+ <rich:column rowspan="2">
+ <h:outputText value="State Flag"/>
+ </rich:column>
+ <rich:column colspan="3">
+ <h:outputText value="State Info"/>
+ </rich:column>
+ <rich:column breakBefore="true">
+ <h:outputText value="State Name"/>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="State Capital"/>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="Time Zone"/>
+ </rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <rich:column>
+ <h:graphicImage value="#{cap.stateFlag}"/>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{cap.state}"/>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{cap.name}"/>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{cap.timeZone}"/>
+ </rich:column>
+</rich:dataTable>
+...]]></programlisting>
+ <para>The generated table on a page looks as follows:</para>
<figure>
<title>
<emphasis role="bold">
@@ -191,15 +204,18 @@
</tbody>
</tgroup>
</table>
- You can find all necessary information about style classes redefinition in
+ <para>Custom style classes as well as skin parameters for <emphasis
role="bold">
+ <property><rich:columnGroup></property></emphasis>
are the same as for the <link linkend="dataTableRefData"><emphasis
role="bold">
+ <property><rich:dataTable></property></emphasis>
component.</link></para>
+ <para>You can find all necessary information about style classes redefinition
in
<link linkend="customstyles">Definition of Custom Style
Classes</link>
- section.
+ section.</para>
</section>
<section>
<title>Relevant Resources Links</title>
- <para>
- <ulink
url="http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.j...
the component LiveDemo page</ulink> you can see the example of <emphasis
role="bold">
+ <para>On the
+ <ulink
url="http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.j...
LiveDemo page</ulink> you can find the example of the <emphasis
role="bold">
<property><rich:columnGroup></property>
- </emphasis> usage and sources for the given example. </para>
+ </emphasis> usage and sources as well.</para>
</section>
</section>
\ No newline at end of file