[
https://issues.apache.org/jira/browse/MYFACES-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132548#comment-13132548
]
Bernd Bohmann commented on MYFACES-3268:
----------------------------------------
added Test for this case
please take a look at the fix in the 1.2.x branch
if you like i would commit the same in 2.x
> UIComponentBase.findComponent does not allow use the same id for a child
> component.
> -----------------------------------------------------------------------------------
>
> Key: MYFACES-3268
> URL: https://issues.apache.org/jira/browse/MYFACES-3268
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Reporter: Leonardo Uribe
> Assignee: Bernd Bohmann
> Fix For: 1.2.10, 2.0.8, 2.1.2
>
>
> Suppose the following tree
> x
> |-x
> and the following search expression:
> x:x
> The current algorithm has at the end this line:
> return findBase.findComponent(expr.substring(separator + 1));
> The effect of this call is the component is not found, because the first x is
> swallowed, but the recursive call over the same component return the parent
> again, so the expected component is not returned, instead the parent.
> It is rare to use this kind of code, but with composite components, there are
> NamingContainer instances everywhere, which makes this issue more probable.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira