myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Myfaces Wiki] Update of "Tree2" by Jan Dockx
Date Thu, 25 Aug 2005 20:49:07 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by Jan Dockx:

  Whatever the implementation is you provide, at all times the condition
  {{{getChildren().isEmpty() ==> isLeaf()}}} should hold. The {{{isLeaf()}}} actually controls
how the node is rendered: as a leaf (which cannot be expanded further) or not.
+ {{{String getType()}}} decides how to render this particular node. In the JSF page, there
should be facets nested in the <t:tree2> tage. The facet whose {{{name}}} matches the
result of {{{getType()}}} will be choosen to render this tree node. There should be defined
a facet with a name that matches the {{{getType()}}} of the tree nodes for all tree nodes
in the tree. If no matching facet can be found for a given tree node, an error occurs. This
method should never return {{{null}}}.
+ {{{List getChildren()}}} should return a List whose elements are of type {{{TreeNode}}}
too, and that represent the tree nodes that should be rendered as the children of this tree
node. The list should not contain {{{null}}}. If the size of the list does not match {{{getChildCount()}}},
you will get an error. The children are rendered in the order in which they occur in the list.
  == Notes ==
  === Errors ===

View raw message