ICEfaces EE Composite Components
Tag autoSortTable


Auto-Sort Table Composite Component

Features

How to Use

  1. Create an instance of the AutoSortTableBean class in your managed bean
  2. Add the autoSortTable tag to your page
  3. Set the 'id' attribute on the tag
  4. Add an ice-cc:column tag for each column you would like to show in the table
  5. Bind the 'value' attribute of the column tag to a property of the Object in your list, using the 'row' variable name for the row-level variable
  6. Set the 'name' attribute of the column tag to the name of the property in your row-level Object ( eg. 'id' for the column for 'row.id')

Example:
<ice-cc:autoSortTable id="employees" bean="#{autoSortTableExampleBean.tableBean}" style="width:97%;" showDataPager="#{autoSortTableExampleBean.showDataPager}" showRowControls="#{autoSortTableExampleBean.showRowControls}" columnWidths="60px,100px,100px"> <ice-cc:column title="ID" value="#{row.id}" name="id" sortable="true"/> <ice-cc:column title="First Name" value="#{row.firstName}" name="firstName" sortable="true"/> <ice-cc:column title="Last Name" value="#{row.lastName}" name="lastName" sortable="true"/> </ice-cc:autoSortTable>


Tag Information
Tag Classjavax.faces.webapp.FacetTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameAuto Sort Table Composite Component

Attributes
NameRequiredRequest-timeTypeDescription
idtruefalsejava.lang.StringA unique id for the component.
beantruefalsecom.icesoft.faces.facelets.component.table.autosort.AutoSortTableBeanMust resolve to an instance of the AutorSortTableBean class
renderedfalsefalsejava.lang.BooleanFlag indicating whether this component should be rendered (during Render Response Phase), or processed on any subsequent form submit (default true).
rowsfalsefalsejava.lang.IntegerPassed through to the ice:dataTable
stylefalsefalsejava.lang.StringCSS style(s) to be applied when this component is rendered
pagerStylefalsefalsejava.lang.StringInline CSS passed through to the paginator table element
showDataPagerfalsefalsejava.lang.BooleanFlag indicating whether or not the dataPaginator in the dataTable footer should be rendered (default true).
imageFirstfalsefalsejava.lang.StringPassed through to ice:dataPaginator
imageLastfalsefalsejava.lang.StringPassed through to ice:dataPaginator
imagePreviousfalsefalsejava.lang.StringPassed through to ice:dataPaginator
imageNextfalsefalsejava.lang.StringPassed through to ice:dataPaginator
imageFastNextfalsefalsejava.lang.StringPassed through to ice:dataPaginator
imageFastPrevfalsefalsejava.lang.StringPassed through to ice:dataPaginator
paginatorMaxPagesfalsefalsejava.lang.StringPassed through to ice:dataPaginator
showRowControlsfalsefalsejava.lang.BooleanFlag indicating whether or not the row controls in the dataTable footer should be rendered (default true).
panelStylefalsefalsejava.lang.StringPassed through to the style attribute on the footer ice:panelGroup containing the dataPaginator and row controls.
columnWidthsfalsefalsejava.lang.StringA comma-delimited list of px-based widths for each column in the table

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.