Madhav Bhargava wrote:
Hi Simon,

Yes the outer DIV component with id="subnavigation_outer" is enclosed in
a subview naming container in the layout.jsp. Following is the code
snipped:

<td width="170px" valign="top" bgcolor="#F8F6F7" nowrap="nowrap">
        <f:subview id="leftnav">
                <tiles:insert attribute="leftnavigation" flush="false"/>

        </f:subview>
</td>

Do you mean to say that in my JSP for left navigation I need to prefix
the naming container id if any? Why is this necessary?

As you can see from the code below I get the inner DIV component via
value binding. It gets me the correct component.

I am able to populate and add a HtmlPanelNavigationMenu to the DIV
component. If then I look at the entire tree then the components added
are present.

If the components are added properly then when it goes to the render
response phase then it should get all the components.


I am missing something or have I misunderstood something.

See the documentation for findComponent here:

http://myfaces.apache.org/api/apidocs/javax/faces/component/UIComponentBase.html

Because you are searching against the UIViewRoot, you need to provide the full path to the component you want to find. If you do the search against the direct NamingContainer ancestor of the component (or use any sibling of the component you are searching for), you only need the base id of the component.

Regards,

Simon

Reply via email to