簡體   English   中英

如何在JSF中添加條件工具提示

[英]How to add conditional tooltip in JSF

嗨,我需要根據標志值(真/假)在jsf元素中顯示工具提示。

元件:

<h:outputLabel value="#{msg['dealsheet.label.nonpromoted']}" />

工具提示文字:這表示交易狀態

條件: #{ds.partialLockOutFlag}

當上述標志的值為true時,懸停時工具提示消息應在標簽上可見。

誰能建議如何實現這一目標?

如果為true,則可以顯示消息,否則為空字符串:

<h:outputLabel value="#{msg['dealsheet.label.nonpromoted']}" title="#{ds.partialLockOutFlag} ? 'This denotes the status of the deal' : '' " />

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM