【发布时间】:2018-12-08 10:27:15
【问题描述】:
我在<div id="div1"> 中有一个<h:commandLink id="link1" ..>。我想得到这个 div 的 id(<h:commandLink id="link1" ..> 在 backing bean 中的父元素,我不想直接得到它,但我想通过它的 child() 得到它。
请问我怎么能做到这一点。 在这里你可以找到我的代码示例。
<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>
【问题讨论】:
标签: jsf managed-bean