0
有人能給我一個很好的例子,介紹如何使用Icefaces 2.0 rowselector?我的計劃是將其用作組件,因此我可以將它用於各種列表。Icefaces rowselector
<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和組件方法分成兩個不同的類,那將是非常好的。無論何時我需要一個rowSelector,對於某些Bean中的某個List對象,我只需添加Component對象來呈現bean。
也許很多事情在1點的時候,如果是這樣,那對不起=)
B.R