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:50:52 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:

  You can choose between client-side or server-side interaction with the {{{clientSideToggle}}}
attribute. {{{<t:tree2 clientSideToggle="false" ...}}} gives you the servers-side interaction.
{{{true}}} (client-side interaction) is the default for this attribute.
  == Use ==
+ === Backing Bean ===
  The tree2 component needs a {{{TreeModel}}} from a backing bean to operate. Usually, you
give the {{{TreeModel}}} to the component using a value binding, like this:
    <t:tree2 value="#{myHandler.treeModel}" ...
@@ -64, +65 @@

  {{{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.
+ === JSP ===
+ ''TODO''
+ == Changing the Content of the Tree ==
+ ''TODO''
+ == Controlling Which Nodes are Expanded from the Backing Bean ==
+ ''TODO''
  == Notes ==
  === Errors ===
  In the 1.0.9 version of MyFaces extensions, this author regularly got errors from tree2
after extensive use. When using the client-side interaction (JavaScript), the expansion state
of the nodes of the tree is stored in a cookie, which is discarded when the "user session"
ends. On some browsers, this could mean the cookie will only disappear when the browser is
quit. When these errors started occuring, quitting and relaunching the browser solved the
problem every time.

View raw message