myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Udo Schnurpfeil (JIRA)" <>
Subject [jira] Commented: (TOBAGO-308) Tree Rendering Only Root Node
Date Thu, 01 Mar 2007 14:52:51 GMT


Udo Schnurpfeil commented on TOBAGO-308:

Does the tree in the tobago-example-demo working on your system? On my system it works (1.3.07
15:45 CET).

You may using the tree not correctly. How do you use it? (The complete tree is referenced
by the value attribute of tc:tree)

The Tree is deprecated, because the use is not "typhical" for JSF, but it is working. The
new Tree is in the moment in the tobago-sandbox.

> Tree Rendering Only Root Node
> -----------------------------
>                 Key: TOBAGO-308
>                 URL:
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.9, 1.0.10
>            Reporter: Mark P. Mullally
>             Fix For: 1.0.10
> Only the root node of a tree renders because the TreeOldNode.getRendersChildren() returns
"true".  Susequently, the TreeOldRenderer.getNodesAsJavascript() --> RenderUtil.encode(facesContext,
root) method executes "component.encodeChildren(faceContext)" instead of the the recusive
child loop, which relies on the TreeOldNodeRenderer.encodeChildren() method that is NOT OVERRIDDEN
and the base implementation is a no-op.  Therefore, I don't see how trees ever rendered correctly?
 I extended the TreeOldNode to return "false" from getRendersChildren() so that the TreeOldRenderer.getNodesAsJavascript()
--> RenderUtil.encode() method executes the recursive child loop FIXING THE ISSUE.  Again,
> Also, The "Old" code is deprecated but no standard "in favor of" comments exist.  What
should I be using? MyFaces or Tomahawk tree?
> btw...I am using the Feb 28 nightly build snapshot for 1.0.10

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message