• Settings
    • Locale
    • Change the locale of the datepicker, schedule and client side validation messages.

      Language
      English
      English
      English
      French
      German
      German
      German
      Italian
      Korean
      Spanish
      Catalan
      Dutch
      Portuguese
      Portuguese
      Arabic
      Arabic
      Bulgarian
      Bangla
      Bosnian
      Czech
      Greek
      Estonian
      Persian
      Finnish
      Danish
      Hindi
      Indonesian
      Icelandic
      Croatian
      Japanese
      Hungarian
      Hebrew
      Georgian
      Central Kurdish
      Khmer
      Kyrgyz
      Kazakh
      Lithuanian
      Latvian
      Malay
      Norwegian
      Polish
      Romanian
      Russian
      Slovak
      Slovenian
      Serbian
      Serbian
      Swedish
      Thai
      Turkish
      Ukrainian
      Uzbek
      Vietnamese
      Chinese
      Chinese
  • Resources

Spacer

Spacer is used to create spaces in a layout.

Spacer Tag Documentation

Spacer is used to put spaces between elements.

NameTypeRequiredDefaultDescription
id String false generated Unique identifier of the component in a namingContainer.
rendered boolean false true Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding UIComponent false generated An EL expression referring to a server side UIComponent instance in a backing bean.
height String false 1 Height of the space.
style String false Inline style of the component.
styleClass String false Style class of the component.
title String false Advisory tooltip information.
width String false 1 Width of the space.
Loading...
Tag DocumentationNew DocumentationNew Documentation
DEPRECATEDLegacy component since PF1 to support spacing. In modern HTML, the use of 1x1 transparent PNGs for spacing is generally outdated and unnecessary. There are several modern techniques available that provide more control and are more semantically appropriate.
This text is separated from this text.

Usage


<p:staticMessage severity="warn" summary="DEPRECATED" detail="Legacy component since PF1 to support spacing. In modern HTML, the use of 1x1 transparent PNGs for spacing is generally outdated and unnecessary. There are several modern techniques available that provide more control and are more semantically appropriate." styleClass="w-full mb-2" />

<div class="card">
    This text <p:spacer width="100" height="10"/> is separated from <p:spacer width="20"
                                                                              height="20"/> this text.
</div>