【发布时间】:2017-05-03 11:14:16
【问题描述】:
我在我的 jsf 页面中使用了一个 ui:repeat,我想在列表的每个元素上使用 tabindex。
我尝试使用以下代码。
请帮我解决这个问题。
<div class="meta-list">
<p:outputPanel>
<ui:repeat var="com2" value="#{masterDataBean.mylist}" varStatus="loop" tabindex="1">
<p:commandLink value="#{com.value} " action="#{masterDataBean.doSomething}" tabindex="2">
<f:setPropertyActionListener target="#{masterDataBean.selecteData}" value="#{com2}" />
</p:commandLink>
</ui:repeat>
</p:outputPanel>
</div>
【问题讨论】:
-
ui:repeat标签上没有类似tabindex的属性?你到底想做什么? -
对于索引,您可以
#{loop.index}varStatus值。 -
我想使用列表中的选项卡按钮迭代所有元素。 @Prakash
标签: html jsf primefaces