【问题标题】:Icefaces rowselectorIcefaces 行选择器
【发布时间】:2011-02-05 11:42:47
【问题描述】:

谁能给我一个很好的干净的例子来说明如何使用 Icefaces 2.0 行选择器?我的计划是把它作为一个组件来使用,这样我就可以在各种列表中重复使用它。

<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>

如您所见,我不确定我将如何处理 value="???"和 selectionListener="???"。我不确定如何在 bean 中实现它。

如果我可以将 bean 和组件方法分成两个不同的类,那就太好了。每当我需要 rowSelector 时,对于某个 Bean 中的某个 List 对象,我只需添加 Component 对象来呈现 bean。

也许一次有很多事情,如果是这样,对不起=)

B.R

【问题讨论】:

    标签: jsf-2 icefaces


    【解决方案1】:

    问题解决了! =)

    列出一个列表和一个听众。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-10
      • 2013-09-28
      • 2015-08-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-15
      • 2011-03-09
      相关资源
      最近更新 更多