I have a <h:commandLink id="link1" ..>
within a <div id="div1">
. I want to get the id of this div( the parent element of <h:commandLink id="link1" ..>
in the backing bean, I don't want to get it directly but I want get it going through its child( ).
Please How could I achieve this. Here you can find a sample of my code.
<div style="text-align:center; height: 50px; width: 100%; background: wheat;
border: 1px #6e5d40 solid; margin-top: 5px;">
<h:form>
<ui:repeat var="label1" value="#{backingBean.listOfSearchValue}">
<span class="filterLabel">#{label1} <h:commandLink class="glyphicon glyphicon-remove"></h:commandLink>
</span>
</ui:repeat>
</h:form>
</div>