horizontal line rich:separator HtmlSeparator

Component identification parameters

Name | Value
--- | ---
component-type | org.richfaces.separator
component-class | org.richfaces.component.html.HtmlSeparator
component-family | org.richfaces.separator
renderer-type | org.richfaces.SeparatorRenderer
tag-class | org.richfaces.taglib.SeparatorTag

## Creating the Component with a Page Tag

Here is a simple example as it could be used on a page:

Example:

    ...
        <rich:separator/>
    ...

## Creating the Component Dynamically Using Java

Example:

    import org.richfaces.component.html.HtmlSeparator;
    ...
    HtmlSeparator mySeparator = new HtmlSeparator();
    ...

## Details of Usage

<rich:separator> is a simple layout component which represents a separator stylized as a skin. Thus, the main attributes that define its style are "style" and "styleClass". In addition there are width and height attributes that should be specified in pixels.

The line type can be customized with the "lineType" parameter. For example, different line types are shown after rendering with the following initial settings lineType="double" and "lineType="solid".

Different line types of separator

Except style attributes, there are also event definition attributes.

- onmouseover
- onclick
- onmouseout
- etc.

## Look-and-Feel Customization

For skinnability implementation, the components use a style class redefinition method.

To redefine the appearance of all <rich:separator> components at once, you should add to your style sheets the style class used by a <rich:separator> component.

## Definition of Custom Style Classes

Classes names that define a component appearance

Class name | Description
--- | ---
rich-separator | Defines styles for a component appearance

In order to redefine styles for all <rich:separator> components on a page using CSS, it's enough to create a class with the same name and define necessary properties in it.

To change styles of particular <rich:separator> components, define your own style class in the corresponding <rich:separator> attributes.

## Relevant Resources Links

Here you can see the example of <rich:separator> usage and sources for the given example.