【发布时间】:2017-08-11 06:22:55
【问题描述】:
您好,我需要根据标志值(真/假)在 jsf 元素中显示工具提示。
元素:
<h:outputLabel value="#{msg['dealsheet.label.nonpromoted']}" />
工具提示文本:“这表示交易的状态”
条件: #{ds.partialLockOutFlag}
当上述标志的值为真时,工具提示消息应该在悬停时在标签上可见。
谁能建议如何实现这一目标?
【问题讨论】:
您好,我需要根据标志值(真/假)在 jsf 元素中显示工具提示。
元素:
<h:outputLabel value="#{msg['dealsheet.label.nonpromoted']}" />
工具提示文本:“这表示交易的状态”
条件: #{ds.partialLockOutFlag}
当上述标志的值为真时,工具提示消息应该在悬停时在标签上可见。
谁能建议如何实现这一目标?
【问题讨论】:
你可以在为真时显示你的消息,否则显示空字符串:
<h:outputLabel value="#{msg['dealsheet.label.nonpromoted']}" title="#{ds.partialLockOutFlag} ? 'This denotes the status of the deal' : '' " />
【讨论】: