You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Udo Schnurpfeil (JIRA)" <de...@myfaces.apache.org> on 2007/03/01 15:52:51 UTC
[jira] Commented: (TOBAGO-308) Tree Rendering Only Root Node
[ https://issues.apache.org/jira/browse/TOBAGO-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476958 ]
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: https://issues.apache.org/jira/browse/TOBAGO-308
> 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, HOW DID THIS EVER WORK? AM I MISSING SOMETHING?
> 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.