Project Documentation
Foundation

Description

Renders a clickable column header and optionally shows a sort direction indicator (arrow).

Screen Shot

Not available

API

since 0.3.0 (former <t:sortcolumn> and <t:sortheader>)
author MyFaces Team
component-family javax.faces.Command
renderer-type javax.faces.Link
component-class org.apache.myfaces.custom.sortheader.HtmlCommandSortHeader
component-type org.apache.myfaces.HtmlCommandSortHeader
renderer-class org.apache.myfaces.custom.sortheader.HtmlSortHeaderRenderer
tag-class org.apache.myfaces.custom.sortheader.HtmlCommandSortHeaderTag

Usage

<t:commandSortHeader [ all standard commandLink attributes allowed ]
                        [ columnName="unique-column-name" ]
                        [ arrow="{true|false}" ] >
        nested link text and/or image(s)
</t:commandSortHeader>
            

Syntax

<t:commandSortHeader>

all standard commandLink attributes allowed
columnName="unique-column-name"
arrow="{true|false}"

Instructions

Must be nested inside an extended DataTable <t:dataTable>

(see examples/simpleSortList.jsp for an example)