0
我想在xhtml文件中使用commandButton
的動態工具提示,但我無法在xhtml文件中使用換行解決方案。此示例適用工具提示變量中的換行符不起作用
<f:view xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:commandButton image="/resources/images/1.png" title="Line1
Line2" actionListener="#{varBean.view}" />
</f:view>
但這並不其中var.tooltip = "Line1
Line2"
,
<f:view xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:commandButton image="/resources/images/1.png" title="#{var.tooltip}" actionListener="#{varBean.view}" />
</f:view>
我怎樣才能做到這一點?
你把這個放在哪裏?請張貼代碼 – Kukeltje