Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
JSF Component
Back to Component Library
The sortLink component enables the user to sort a dataset by clicking an HTML link. The component must be a child of a data component. It is generally contained inside a header facet component within a column component. It automatically handles sorting of the appropriate data type for the column bean getter method it is bound too. The control displays a small clickable icon to indicate sorting direction and the direction of sorting can be toggled by clicking the icon. The component does not require any developer intervention and therefore does not provide action command listeners.
<string>'
rendered='<boolean>'
styleClass='<string>'
style='<string>'
tooltip='<string>'
value='<string>' MANDATORY
mode='case-insensitive|case-sensitive'
label='<string>' MANDATORY
/>
value - name of the bean field to bind to. The component will automatically handle sorting for all standard Java primitive datatypes that may be returned from the bean getter method, including the Date type.
mode - optionally specify which sorting mode to use for string types. Note that case-insensitive is the default mode.
label - the text label to display as the visual component of the control.
<a:sortLink label='Name' value='name' mode='case-insensitive' styleClass='header'/>