Author: msorokin
Date: 2009-03-30 10:21:15 -0400 (Mon, 30 Mar 2009)
New Revision: 13296
Added:
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
files with components' descriptions
Added: trunk/docs/userguide/en/src/main/docbook/included/rich_page.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/rich_page.desc.xml
(rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/rich_page.desc.xml 2009-03-30
14:21:15 UTC (rev 13296)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section role="updated">
+ <sectioninfo>
+ <keywordset>
+ <keyword>layouPanel</keyword>
+ <keyword>rich:layouPanel</keyword>
+ </keywordset>
+ </sectioninfo>
+ <section>
+ <title>Description</title>
+ <para>The <emphasis role="bold">
+ <property><rich:page></property>
+ </emphasis>
+ </para>
+
+
+ </section>
Added: trunk/docs/userguide/en/src/main/docbook/included/rich_page.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/rich_page.xml
(rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/rich_page.xml 2009-03-30 14:21:15
UTC (rev 13296)
@@ -0,0 +1,68 @@
+
+ <section>
+ <title>Details of Usage</title>
+ <para>The <emphasis
role="bold"><property><rich:page></property></emphasis>
+
+ component together with the <emphasis
role="bold"><property><rich:laout></property></emphasis>
component provide
+ a full-fledged mechanism for markup creation. </para>
+
+
+ <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".
+ 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.
+
+ </para>
+<para>
+ <emphasis role="bold">Example:</emphasis>
+</para>
+
+<programlisting role="XML"><![CDATA[...
+<rich:page pageTitle="The title of the page" markupType="xhtml"
contentType="text/html; charset=utf-8" >
+ <f:facet name="pageHeader" >
+ <meta content="The rich:page component" name="keywords" />
+ <link rel="shortcut icon" href="/images/favicon.ico"/>
+ <link href="/css/style.css" rel="stylesheet"
type="text/css" />
+ <script type="text/javascript"
src="/js/menu.js"></script>
+ </f:facet>
+ <!-- page content -->
+</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 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>
+ </para>
+
+
+
+ <programlisting role="XML"><![CDATA[...
+<rich:page sidebarPosition="left" sidebarWidth="300">
+ <f:facet name="header" >
+ <!-- header content -->
+ </f:facet>
+ <f:facet name="sidebar">
+ <!-- side panel content -->
+ </f:facet>
+ <!-- body content -->
+ <f:facet name="footer">
+ <!-- footer content -->
+ </f:facet>
+ </rich:page>
+
+...]]></programlisting>
+
+
+ <para>The <emphasis
role="bold"><property><rich:page></property></emphasis>
component also provides attributes to define CSS classes for each nested facet as well as
a body part of the page created with the component.</para>
+
+
+ <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>
+
+ </section>