dev@jsftemplating.java.net

Re: dynamicTreeNode: cannot hide

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Tue, 31 Oct 2006 14:55:03 -0800

Hi Anissa,

The way DynamicTreeNode works is that it delegates just about
*everything* to the "TreeAdaptor" implementation. This gives you full
control over what happens.... and full resposibility. ;) In your case
you have an "MBeanTreeAdaptor" (I think, unless you're making a new
one). Take a look at the "getFactoryOptions" javadoc / implementation.
If you add support here from the "rendered"/"visible" properties, then
it will work.

Let me know if you need more help!

Thanks,

Ken

Anissa Lam wrote:
> Hi Ken,
>
> Looks like dynamicTreeNode doesn't honor the "rendered" or "visible"
> attribute.
> I want to hide the dynamicTreeNode itself and its children, so i set
> rendered="$boolean{false}" and visible="$boolean{false}" , it still
> always try to show it.
>
> - clusters (TreeNode)
> -- cluster-1 (dynamicTreeNode with 0 or more children)
> -- instance-1
>
> I want to hide the red portion above. Can you check if its possible
> to hide the dynamicTreeNode ?
>
> thanks
> Anissa