<?xml version='1.0' encoding='UTF-8'?>
<section>
  <sectioninfo>
    <keywordset>
      <keyword>transparent image</keyword>
      <keyword>rich:spacer</keyword>
      <keyword>HtmlSpacer</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.spacer</entry>
        </row>
        <row>
          <entry>component-class</entry>
          <entry>org.richfaces.component.html.HtmlSpacer</entry>
        </row>
        <row>
          <entry>component-family</entry>
          <entry>org.richfaces.spacer</entry>
        </row>
        <row>
          <entry>renderer-type</entry>
          <entry>org.richfaces.SpacerRenderer</entry>
        </row>
        <row>
          <entry>tag-class</entry>
          <entry>org.richfaces.taglib.SpacerTag</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:spacer/>
...]]></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.HtmlSpacer;
...
HtmlSpacer mySpacer = new HtmlSpacer();
...
]]></programlisting>
  </section>
  <section>
    <title>Details of Usage</title>
    <para><emphasis role="bold">
        <property>&lt;rich:spacer&gt;</property>
      </emphasis> is a simple layout component which represents a transparent
      <property>spacer</property>. Thus, the main attributes that define its style are <emphasis>
        <property>style</property>
      </emphasis> and <emphasis><property>styleClass</property>.</emphasis></para>
    <para>In addition, the attributes are responsible for the component size: <emphasis>
        <property>&quot;width&quot;</property>
      </emphasis> and <emphasis><property>&quot;height&quot;</property>.</emphasis></para>
    <para>Moreover, to add e.g. some JavaScript effects, events defined on it are used.</para>
    <itemizedlist>
      <listitem> onmouseover </listitem>
      <listitem> onclick </listitem>
      <listitem> onmouseout </listitem>
      <listitem> etc. </listitem>
    </itemizedlist>

  </section>
  <section>
    <title>Look-and-Feel Customization</title>
    <para>On the component generation, the framework presents a default rich-spacer class in <emphasis>
        <property>styleClass</property>
      </emphasis> of a generated component, i.e. in order to redefine appearance of all
        <property>spacers</property> at once, it&apos;s necessary to redefine this class in your
      own CSS (replacing in the result properties defined in a skin with your own).</para>
    <para>To define appearance of the particular <property>spacer</property>, it&apos;s possible
      to write your own CSS classes and properties in the component style attributes
          (<emphasis><property>style</property>, </emphasis>
      <emphasis>
        <property>styleClass</property>
      </emphasis>) modifying component property.</para>
  </section>
  <section>
    <title>Relevant resources links</title>
    <para>
      <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/spacer.jsf?c=spacer"
      >Here</ulink> you can see the example of <emphasis role="bold"
      >&lt;rich:spacer&gt;</emphasis> usage and sources for the given example. </para>
  </section>

</section>
