Author: msorokin
Date: 2009-04-10 06:02:52 -0400 (Fri, 10 Apr 2009)
New Revision: 13484
Modified:
trunk/docs/userguide/en/src/main/docbook/included/rich_page.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/rich_page.xml
Log:
https://jira.jboss.org/jira/browse/RF-6593
Added descriptions of layout components
Modified: trunk/docs/userguide/en/src/main/docbook/included/rich_page.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/rich_page.desc.xml 2009-04-10
10:02:31 UTC (rev 13483)
+++ trunk/docs/userguide/en/src/main/docbook/included/rich_page.desc.xml 2009-04-10
10:02:52 UTC (rev 13484)
@@ -1,17 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section role="updated">
+<section>
<sectioninfo>
- <keywordset>
- <keyword>layouPanel</keyword>
- <keyword>rich:layouPanel</keyword>
+ <keywordset>
+ <keyword>rich:page</keyword>
</keywordset>
- </sectioninfo>
-
- <title>Description</title>
- <para>The <emphasis role="bold">
- <property><rich:page></property>
- </emphasis>
- </para>
+ </sectioninfo>
+ <section>
+ <title>Description</title>
+ <para>The <emphasis role="bold">
+ <property><rich:page></property>
+ </emphasis> component is used to create structured layouts containing
header, bottom, center and left or right layout areas as well as to define the content
of the <head/> element, declare DOCTYPE etc.</para>
+
-
- </section>
+ </section>
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+
+
+ <listitem><para>Option to change the renderer of the
component</para></listitem>
+ <listitem><para>Possibility to define parameters of an HTML
page</para></listitem>
+
+
+ </itemizedlist>
+ </section>
+</section>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/rich_page.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/rich_page.xml 2009-04-10 10:02:31
UTC (rev 13483)
+++ trunk/docs/userguide/en/src/main/docbook/included/rich_page.xml 2009-04-10 10:02:52
UTC (rev 13484)
@@ -1,5 +1,71 @@
-
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>rich:page</keyword>
+ <keyword>page</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.component.html.HtmlPage</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlPage</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.Page</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.PageRenderer</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.PageTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
<section>
+ <title>Creating the Component with a Page Tag</title>
+ <para>To create the simplest variant on a page use the following
syntax:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:layout>
+ <rich:layoutPanel position="center">
+ <!--center-->
+</rich:layoutPanel>
+</rich:layout>
+...]]></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.HtmllayoutPanel;
+...
+HtmllayoutPanel mylayoutPanel = new HtmllayoutPanel();
+...]]></programlisting>
+ </section>
+ <section>
<title>Details of Usage</title>
<para>The <emphasis
role="bold"><property><rich:page></property></emphasis>
@@ -9,13 +75,26 @@
<para>
- In the first place, to declare the document type of the page you should use
the
<emphasis><property>"markupType"</property></emphasis>
attribute which has the following values: "html",
"xhtml", "html-transitional",
"html-3.2".
+ In the first place, to declare the document type of the page you should use
the
<emphasis><property>"markupType"</property></emphasis>
attribute which has the following values:
+ </para>
+
+ <itemizedlist>
+
<listitem><para>"html"</para></listitem>
+
<listitem><para>"html-transitional"</para></listitem>
+
<listitem><para>"xhtml"</para></listitem>
+
<listitem><para>"xhtml-transitional"</para></listitem>
+
<listitem><para>"html-frameset"</para></listitem>
+
<listitem><para>"html-3.2"</para></listitem>
+
+ </itemizedlist>
+
+ <para>
The
<emphasis><property>"contentType"</property></emphasis>
allows to specify the type of the content and encoding for the page.
</para>
<para>
The title of the page can be set with the
<emphasis><property>"pageTile"</property></emphasis>
attribute.
- To place some other page parameters (like meta information, links to CSS
style sheets etc.) in the <head> part of an HTML page use
"pageHeader" facet.
+ To place some other page parameters (like meta information, links to CSS
style sheets etc.) in the <head> element of an HTML page use
"pageHeader" facet.
</para>
<para>
@@ -34,7 +113,7 @@
</rich:page>
...]]></programlisting>
- <para>The implementation of the <emphasis
role="bold"><property><rich:></property></emphasis>
component provides three facets that you can use to arrange the layout of the page:
"header", "sidebar" and "footer"
.</para>
+ <para>The implementation of the <emphasis
role="bold"><property><rich:page></property></emphasis>
component provides three facets that you can use to arrange the layout of the page:
"header", "subheader", "sidebar"
and "footer". Their behavior is quite self-explanatory. </para>
<para>The position of the panel rendered by a "sidebar"
facet can be set with the
<emphasis><property>"sidebarPosition"</property></emphasis>
attribute that can take either "right" or "left"
values, you can also specify width for this facet with the
"sidebarWidth" attribute. </para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -63,6 +142,101 @@
<para>Several templates are available for the <emphasis
role="bold"><property><rich:page></property></emphasis>
component. A template can be activated with the
<emphasis><property>"theme"</property></emphasis>
attribute.</para>
- <para></para>
+ <para>The template defines the way the <emphasis
role="bold"><property><rich:page></property></emphasis>
is rendered. Standard renderer(default) of the <emphasis
role="bold"><property><rich:page></property></emphasis>
</para>
</section>
+
+ <section>
+ <title>Facets</title>
+ <table>
+ <title>Facets</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Facet Name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>pageHeader</entry>
+ <entry>Creates the <head/> part of the HTML
page</entry>
+ </row>
+ <row>
+ <entry>header</entry>
+ <entry>Creates a header</entry>
+ </row>
+
+ <row>
+ <entry>subheader</entry>
+ <entry>Creates a horizontal panel under the
header</entry>
+ </row>
+ <row>
+ <entry>footer</entry>
+ <entry>Creates a footer</entry>
+ </row>
+
+ <row>
+ <entry>sidebar</entry>
+ <entry>Creates a left/right panel</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
+
+ <section>
+ <title>Component CSS Selectors</title>
+
+ <table id="comboBoxC">
+ <title>CSS Selectors that define the representation of the
component's blocks</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>CSS Selector</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+
+
+ <row>
+ <entry>.rich-page</entry>
+ <entry>Defines styles for the whole page</entry>
+ </row>
+
+
+ <row>
+ <entry>.rich-page-header</entry>
+ <entry>Defines styles for the header</entry>
+ </row>
+
+ <row>
+ <entry>.rich-page-subheader</entry>
+ <entry>Defines styles for the block under the
header</entry>
+ </row>
+
+ <row>
+ <entry>.rich-page-sidebar</entry>
+ <entry>Defines styles for the sidebar</entry>
+ </row>
+
+ <row>
+ <entry>.rich-page-body</entry>
+ <entry>Defines styles for the body part of the
page</entry>
+ </row>
+
+ <row>
+ <entry>.rich-page-footer</entry>
+ <entry>Defines styles for the footer</entry>
+ </row>
+
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
+</section>
\ No newline at end of file