Jsf 2 冰面行选择器
有人能给我一个好的和干净的例子,如何使用IceFaces2.0行选择器?我的计划是将它作为一个组件使用,这样我就可以在各种列表中重用它Jsf 2 冰面行选择器,jsf-2,icefaces,Jsf 2,Icefaces,有人能给我一个好的和干净的例子,如何使用IceFaces2.0行选择器?我的计划是将它作为一个组件使用,这样我就可以在各种列表中重用它 <ice:dataTable id="table" value="#{cc.attrs.list}" var="record"> <ice:column> <ice:rowSelector rendered="#{cc.attrs.select == 1}" value="#{cc.attrs.selectMe
<ice:dataTable id="table" value="#{cc.attrs.list}" var="record">
<ice:column>
<ice:rowSelector rendered="#{cc.attrs.select == 1}" value="#{cc.attrs.selectMethod}"
selectedClass="tableRowSelected" mouseOverClass="tableRowMouseOver"
immediate="false" selectionListener="#{cc.attrs.selectMethod}" />
<f:facet name="header">
<ice:outputText value="#{record.idDesc}"></ice:outputText>
</f:facet>
<ice:outputText value="#{record.id}"></ice:outputText>
</ice:column>
..
</ice:dataTable>
正如您可能看到的,我不确定如何处理值=???而selectionListener=???。我不确定如何在bean中实现它
如果我能将bean和组件方法分为两个不同的RNET类,那就太好了。每当我需要行选择器时,对于某个Bean中的某个列表对象,我只需将组件对象添加到呈现Bean中
也许一次可以做很多事情,如果是的话,很抱歉=
问题解决了=
列出一个清单和一个听众