<?xml version='1.0' encoding='UTF-8'?>
<section>
          <sectioninfo>
                    <keywordset>
                              <keyword>rich:layout</keyword>
                              <keyword>rich:layout</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.layout</entry>
                                        </row>
                                        <row>
                                                  <entry>component-class</entry>
                                                  <entry>org.richfaces.component.html.HtmlLayout</entry>
                                        </row>
                                        <row>
                                                  <entry>component-family</entry>
                                                  <entry>org.richfaces.Layout</entry>
                                        </row>
                                        <row>
                                                  <entry>renderer-type</entry>
                                                  <entry>org.richfaces.LayoutRenderer</entry>
                                        </row>
                                        <row>
                                                  <entry>tag-class</entry>
                                                  <entry>org.richfaces.taglib.layoutTag</entry>
                                        </row>
                              </tbody>
                    </tgroup>
          </table>

          <section>
                    <title>Creating the Component with a Page Tag</title>
                    <para>To create the simplest layout with the <emphasis role="bold"><property>&lt;rich:layout&gt;</property></emphasis> 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.HtmlLayout;
...
Htmllayout mylayout = new HtmlLayout();
...
]]></programlisting>
          </section>
          <section>
                    <title>Details of Usage</title>
                    
                    <para>The <emphasis role="bold"><property>&lt;rich:layout&gt;</property></emphasis> allows to build a grid that can be used to make the layout on a page. The <emphasis role="bold"><property>&lt;rich:layout&gt;</property></emphasis> is used in conjunction with the <emphasis role="bold"><property>&lt;rich:layoutPanel&gt;</property></emphasis> that is used as a child element and carries the main burden of building the grid.</para>
                   
                   <para>Hence, you need to use the <emphasis role="bold"><property>&lt;rich:layout&gt;</property></emphasis> as a container and <emphasis role="bold"><property>&lt;rich:layoutPanel&gt;</property></emphasis> to create areas inside the container.</para> This is how you can  make a layout with 5 areas:
                    
          
          <para>
                    <emphasis role="bold">Example:</emphasis>
          </para>
                    
          <programlisting role="XML"><![CDATA[...
<rich:layout>
	<rich:layoutPanel position="top">
		<!--top-->
	</rich:layoutPanel>
	<rich:layoutPanel position="left">
		<!--left-->
	</rich:layoutPanel>
	<rich:layoutPanel position="center">
		<!--center-->
	</rich:layoutPanel>
	<rich:layoutPanel position="right">
		<!--right-->
	</rich:layoutPanel>
	<rich:layoutPanel position="bottom">
		<!--bottom-->
	</rich:layoutPanel>
</rich:layout>
...]]></programlisting> 
                    <para>To get more details about <emphasis role="bold"><property>&lt;rich:layoutPanel&gt;</property></emphasis> please read the <link linkend="rich_layoutPanel">  chapter about layoutPanel </link> in the guide.</para>             

                    

                    
          </section>

          <section>
                    <title>Relevant Resources Links</title>
                    <para>Visit 
					<ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/layouts.jsf">layout</ulink> page at 
					RichFaces Live Demo for examples of component usage and their sources.</para>
                    <para>The <ulink url="http://www.jboss.org/community/docs/DOC-13336">Layout components for RichFaces 3.3.1</ulink> on  the JBoss.org Wiki</para>
				
          </section>
</section>
