Madhav Bhargava wrote:
Hi Simon,

You are right. But as I have mentioned i am binding the DIV component
with a property in the backing bean instead of getting the UIViewRoot
and then invoking findComponent.

It does give me the proper instance of the DIV component

I tried to add a dummy DIV component outside the outer DIV component. In
the rendered property of the dummy DIV component I called the method
which will add children for DIV component with id="subnavigation" which
is also retrieved using value binding. This will ensure that DIV
components are constructed before the dummy DIV component's method is
invoked.

The method gets invoked, children get added but the left menu is not
rendered.

I guess I will have to create a custom component just to add something
programmatically to the JSF tree. This sucks!!

Maybe this page is of some use:
  http://wiki.apache.org/myfaces/Programmatic



Reply via email to