[richfaces-svn-commits] JBoss Rich Faces SVN: r5363 - trunk/docs/userguide/en/src/main/docbook/included.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon Jan 14 13:53:37 EST 2008


Author: artdaw
Date: 2008-01-14 13:53:37 -0500 (Mon, 14 Jan 2008)
New Revision: 5363

Added:
   trunk/docs/userguide/en/src/main/docbook/included/columns.xml
Log:
http://jira.jboss.com/jira/browse/RF-1199 - add Creating the Component with a Page Tag, Creating the Component Dynamically Using Java, Details of Usage

Added: trunk/docs/userguide/en/src/main/docbook/included/columns.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/columns.xml	                        (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/columns.xml	2008-01-14 18:53:37 UTC (rev 5363)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+    <sectioninfo>
+        <keywordset>
+            <keyword>rich:orderingList</keyword>
+            <keyword>orderingList</keyword>
+        </keywordset>
+    </sectioninfo>
+    <table>
+        <title>Component identification parameters</title>
+        
+        <tgroup cols="2">
+            <thead>
+                <row>
+                    <entry>Name</entry>
+                    
+                    <entry>Value</entry>
+                </row>
+            </thead>
+            <tbody>
+                <row>
+                    <entry>component-type</entry>
+                    <entry>org.richfaces.Column</entry>
+                </row>
+                <!--row>
+                    <entry>component-class</entry>
+                    <entry></entry>
+                </row>
+                <row>
+                    <entry>component-family</entry>
+                    <entry></entry>
+                </row>
+                <row>
+                    <entry>renderer-type</entry>
+                    <entry></entry>
+                </row-->
+                <row>
+                    <entry>tag-class</entry>
+                    <entry>org.richfaces.taglib.ColumnsTagHandler</entry>
+                </row>
+            </tbody>
+        </tgroup>
+    </table>
+    <section>
+        <title>Creating the Component with a Page Tag</title>
+        <para>Here is a simple example as it could be used on a page: </para>
+        <para>
+            <emphasis role="bold">Example:</emphasis>
+        </para>
+        <programlisting role="XML"><![CDATA[...
+<rich:dataTable value="#{bean.model}" var="var" id="tb">
+        <rich:columns value="#{bean.columns}" var="col">
+                <h:outputText value="#{var.property1}" />
+        </rich:columns>
+</rich:dataTable>
+...]]></programlisting>
+    </section>
+    <section>
+        <title>Creating the Component Dynamically Using Java</title>
+        <para>
+            <emphasis role="bold">Example:</emphasis>
+        </para>
+        <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlColumns;
+...	
+HtmlColumns myColumns = new HtmlColumns();
+...]]></programlisting>
+    </section>
+    <section>
+        <title>Details of Usage</title>
+        <para>The <emphasis role="bold">
+            <property>&lt;rich:columns&gt;</property>
+        </emphasis> component gets a list from data model and outputs corresponding set of columns inside 
+            <emphasis role="bold"><property>&lt;rich:dataTable&gt;</property></emphasis> on a page. 
+        </para>
+    </section>
+    
+    
+    </section>
\ No newline at end of file




More information about the richfaces-svn-commits mailing list