Is it possible to reference an id, that identifies a component that is a child of the parents-parent-naming container?
For example:
<div class="browserDiv"
id="browserObjects">
<p:selectOneRadio id ="selectedFolder" value="${cc.attrs.value.selectedObjectPath}" layout="custom">
<f:selectItems value="${cc.attrs.value.objectList}"
var="object" itmeValue="${object.path}" itemLabel=""/>
</p:selectOneRadio>
<table>
<ui:repeat var="object" value="${cc.attrs.value.objectList}" id ="repeat" varStatus="status" >
<tr>
<td class="checkBoxCell">
<p:radioButton id="radioButton_${object.path}" for="selectedFolder" itemIndex="#{status.index}"/>
</td>
</tr>
</ui:repeat>
</table>
</div>
I want to reference the id selectedFolder
from the for-attribute in <p:radioButton>
. But since <ui:repeat>
is a NamingContainer
, selectedFolder
lies in another NamingContainer
and I don't see how this can be referenced. Is it possible to write something like for="../selectedFolder"
?
I cannot use absolute id-references because this is part of a composite component.
I also tried using prependId="false"
in <ui:repeat>
, but that didn't work.