> My recommendation is to change the code and documentation to:
>  - If the component is a naming container, search relative to the
>    parent;  otherwise search relative to the component

But what if the person does want to search the children? If the parent
was used, they would have to refer to themselves, which is more
confusing IMO.

Example:

<my:namingContainer partialTriggers="link">
<tr:commandLink id="link" partialSubmit="true" />
</my:namingContainer>

versus:

<my:namingContainer id="nc" partialTriggers="nc:link">
<tr:commandLink id="link" partialSubmit="true" />
</my:namingContainer>

So, if it was left as-is in terms of documentation, the following
would be the correct way to refer to a child and refer to a sibling:

<tr:commandLink id="outsideLink" />
<my:namingContainer partialTriggers="link, ::outsideLink">
<tr:commandLink id="link" partialSubmit="true" />
</my:namingContainer>

That seems to make sense to me at least

-Andrew

Reply via email to