ICEfaces EE Composite Components
Tag dragAndDropTreeTable


The Drag and Drop Tree Table Composite Component

Renders a tabular version of a tree model where node can be re-positioning in the tree, by being dragged to other branches

Features

How To Use

  1. Create an instance of the TreeTable class in your managed bean
  2. Create the tree model from TreeTableNode objects
  3. Use the dragAndDropTreeTable tag on your page. Nest <ice-cc:css/> in your page <head> tag.
  4. Set the 'bean' attribute on the tag
  5. Add as many treeTableColumns as you would like in your table
  6. For each treeTableColumn you may use any other component and reference row-level properties through the 'row' variable name

Example:
<ice-cc:dragAndDropTreeTable bean="#{treeTableExampleBean.treeTable}" columnWidths="100px,80px,60px,50px,120px,6S0px,80px" levelColors="#FFE900,#FFF04F,#FFF79F,#FFFCDF"> <ice-cc:treeTableColumn header="Organization"> <ice:outputText value="#{row.data}" rendered="#{row.level eq 0}"/> </ice-cc:treeTableColumn> <ice-cc:treeTableColumn header="Region"> <ice:outputText value="#{row.data}" rendered="#{row.level eq 1}"/> </ice-cc:treeTableColumn> <ice-cc:treeTableColumn header="City"> <ice:outputText value="#{row.data}" rendered="#{row.level eq 2}"/> </ice-cc:treeTableColumn> <ice-cc:treeTableColumn header="Name"> <ice:outputText value="#{row.data}" rendered="#{row.data.class.simpleName eq 'Employee'}"/> </ice-cc:treeTableColumn> <ice-cc:treeTableColumn header="Phone"> <ice:outputText value="#{row.data.phone}" rendered="#{row.data.class.simpleName eq 'Employee'}"/> </ice-cc:treeTableColumn> <ice-cc:treeTableColumn header="Born"> <ice:outputText value="#{row.data.birthDate}" rendered="#{row.data.class.simpleName eq 'Employee'}"> <f:convertDateTime dateStyle="medium"/> </ice:outputText> </ice-cc:treeTableColumn> </ice-cc:dragAndDropTreeTable>


Tag Information
Tag Classjavax.faces.webapp.FacetTag
TagExtraInfo ClassNone
Body Contenttagdependent
Display NameDrag and Drop Tree Table Composite Component

Attributes
NameRequiredRequest-timeTypeDescription
beantruefalsecom.icesoft.faces.facelets.component.treetable.TreeTableThe bean attribute must resolve to an instance of the TreeTable class.
columnWidthsfalsefalsejava.lang.StringA comma-delimited list of px-based widths for each column in the table
levelColorsfalsefalsejava.lang.StringA comma-delimited list of color codes for each level in the tree
lineImagefalsefalsejava.lang.StringPassed through to ice:graphicImage component
nodeImagefalsefalsejava.lang.StringPassed through to ice:graphicImage component
closeImagefalsefalsejava.lang.StringPassed through to ice:commandButton component
openImagefalsefalsejava.lang.StringPassed through to ice:commandButton component
effectfalsefalsecom.icesoft.faces.context.effects.EffectThe Javascript Effect
styleContainerfalsefalsejava.lang.StringPassed through to style attribute on ice:panelGroup component containing content
styleClassContainerfalsefalsejava.lang.StringPassed through to styleClass attribute on ice:panelGroup component containing content

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.