>If you always want the node to be expanded why not just have
>isNodeExpanded return true?
>
>Also, you seem to be trying to toggle the expanded state in
>isNodeExpanded.  That sounds like a recipe for trouble ;-)  This
>method is used to *check* if the node is expanded or not.  You don't
>know how many times or what will prompt this check.  isNodeExpanded is
>essentially a "getter" method.  If you decide to override a getter
>method and have it do "setter" stuff you are doing so at your own
>risk.
>
>sean

I did that and it works. The problem with that approach is that, the nav
buttons (namely the "-" button) still shows, and people would want to click
on it to collapse the tree again. If they do, myfaces throws an error,
because the toggle method tries to  remove nodes from the expanded list
which are not there.

Rahul

Reply via email to