【问题标题】:ace tooltip global to show dynamic dataace tooltip global 显示动态数据
【发布时间】:2017-07-29 16:11:24
【问题描述】:

我正在使用 ace Tootip 在数据表上显示数据。

<ace:tooltip id="tooltip" global="true" />
<ace:datatable>
<ace:column id="id" headertext="header">
<h:outputText id="id" title="tooltip data"  value="#{}" />
</ace:column>
</ace:datatable>

以上代码显示数据表中的标题属性数据。

以下代码数据为数据表动态数据。

<ace:delegate id="tablevar">
<ace:datatable value=#{bean.list} var="var1">
<ace:column id="id" headertext="header">
<h:outputText id="tool" title="tooltip data"  value="#{var1.values}" />
</ace:column>
</ace:datatable>
</ace:delegate>

<ace:tooltip id="tooltip" fordelegate="tablevar" for="tool" fetch="#{var1}" store=#{bean.data} />

但是委托需要时间来加载数据。 acetooltip global(first mentoned code) 速度很快,但不会显示动态数据。我们可以使用 acetooltip global 来显示基于行的动态数据而无需提货吗?

谢谢

【问题讨论】:

    标签: jsf datatable icefaces


    【解决方案1】:

    ace tooltip global 也适用于动态数据和数据表。

    我们只需要在 title 属性中添加 data title="#{var1.values}" 即可。另一件事是我们需要添加标题属性 h:outputlabel 标记而不是 h:panelgroup 才能使全局工作。

    我建议使用 ace:tooltip 全局而不是 ace:tooltip 的委托版本。 我没有看到委托有任何好处,而且速度很慢。

    谢谢。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-08-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-04
      • 1970-01-01
      相关资源
      最近更新 更多