x:column

The x:column tag encloses the contents of a table cell which consists of zero or more JSF tags (including custom JSF tags). The x:column tag must always be nested within an x:row tag.

Attributes
Name Required Request-time Type Description
background false false java.lang.String The background of this column.
columnSpan false false java.lang.String The number of columns spanned by this column.
height false false java.lang.String The height of this column.
rowSpan false false java.lang.String The number of rows spanned by this column.
width false false java.lang.String The width of this column specified in pixels or as a portion or percentage of the table.

Inherited Attributes
Core Attributes inherited from AbstractTag
Table Element Attributes inherited from TableElementTag

Example

<x:table alignment="center" borderWidth="2">
  <x:row>
    <x:column columnSpan="2">
      <h:outputText value="Cell 1.1 & 1.2">
    </x:column>
    <x:column>
      <h:outputText value="Cell 1.3">
    </x:column>
  </x:row>
  <x:row>
    <x:column rowSpan="2">
      <h:outputText value="Cell 2.1 & 3.1">
    </x:column>
    <x:column>
      <h:outputText value="Cell 2.2">
    </x:column>
    <x:column>
      <h:outputText value="Cell 2.3">
    </x:column>
  </x:row>
  <x:row>
    <x:column>
      <h:outputText value="Cell 3.2">
    </x:column>
    <x:column>
      <h:outputText value="Cell 3.3">
    </x:column>
  </x:row>
</x:table>

The preceeding example produces the following table.

Cell 1.1 & 1.2 Cell 1.3
Cell 2.1
& 3.1
Cell 2.2 Cell 2.3
Cell 3.2 Cell 3.3