Tag name: <amc:spacer>
The Spacer occupies a fixed amount of space in a layout, specified by its width and height attributes. It is possible to specify only one

WM Spacer screenshot
A Spacer component running on Windows Mobile.

BB Spacer screenshot
A Spacer component running on BlackBerry.

<amc:panelGroupLayout layout="horizontal" id="pgl2">
    <amc:outputText value="text followed by a spacer"
                   id="ot2"/>
    <amc:spacer width="20" id="s2"/>
    <amc:outputText value="more text" id="ot3"/>
 </amc:panelGroupLayout>

Attributes

Name Type Supports EL? Description
height int Yes Specifies the height of the component. Can be entered in pixels or as a percentage of its parent's height. A percentage value should be entered as a number followed by the "%" symbol. A number will be interpreted as a pixel value (as will a number followed by the text "px").
id String No Specifies the identifier for the component. The identifier must follow the following rules:
  • Must not be a zero-length String.
  • First character must be an ASCII letter (A-Za-z) or an underscore ('_').
  • Subsequent characters must be an ASCII letter or digit (A-Za-z0-9), an underscore ('_'), or a dash ('-').
rendered boolean Yes Specifies whether or not the component is rendered. When set to false, no output will be delivered for this component (the component will not in any way be rendered, and cannot be made visible).
width int Yes Specifies the width of this component. Can be entered in pixels or as a percentage of its parent's width. A percentage value should be entered as a number followed by the "%" symbol. A number will be interpreted as a pixel value (as will a number followed by the text "px").