Java 如何在JSF中使丰富的工具提示可见或不可见?
我有一个关于rich:toolTip组件的问题。我有以下jsf代码:Java 如何在JSF中使丰富的工具提示可见或不可见?,java,jsf,richfaces,Java,Jsf,Richfaces,我有一个关于rich:toolTip组件的问题。我有以下jsf代码: <rich:toolTip followMouse="true" > <h:outputText value="#{messages.dto.Station}" escape="false" converter="bbCodeConverter" /> </rich:toolTip> 此工具提示有效,但如果messages.dto.Station也为空,则将为空工具提示签名。
<rich:toolTip followMouse="true" >
<h:outputText value="#{messages.dto.Station}" escape="false" converter="bbCodeConverter" />
</rich:toolTip>
此工具提示有效,但如果messages.dto.Station也为空,则将为空工具提示签名。如果messages.dto.Station为空,那么如何解决工具提示不可见的问题
谢谢你帮助我
格里茨
马尔维夫
使用呈现属性将帮助您仅在#{messages.dto.Station}不为空时显示
使用呈现属性将帮助您仅在#{messages.dto.Station}不为空时显示
使用呈现属性将帮助您仅在#{messages.dto.Station}不为空时显示
使用rendered属性将帮助您仅在#{messages.dto.Station}不为空时显示在JSF 1.2中,您可以使用@BholaVishwakarma所描述的
rendered
属性
这应该也适用于JSF1.2
这是给你的免费小费。
您应该避免在bean上使用大写字母<代码>消息.dto.站。
它应该是messages.dto.station
试试下面的方法
<rich:toolTip followMouse="true"
rendered="#{messages.dto.Station !=null and not empty messages.dto.Station}">
...
...
在JSF 1.2中,您可以使用@BholaVishwakarma所描述的呈现的
属性
这应该也适用于JSF1.2
这是给你的免费小费。
您应该避免在bean上使用大写字母<代码>消息.dto.站。
它应该是messages.dto.station
试试下面的方法
<rich:toolTip followMouse="true"
rendered="#{messages.dto.Station !=null and not empty messages.dto.Station}">
...
...
在JSF 1.2中,您可以使用@BholaVishwakarma所描述的呈现的
属性
这应该也适用于JSF1.2
这是给你的免费小费。
您应该避免在bean上使用大写字母<代码>消息.dto.站。
它应该是messages.dto.station
试试下面的方法
<rich:toolTip followMouse="true"
rendered="#{messages.dto.Station !=null and not empty messages.dto.Station}">
...
...
在JSF 1.2中,您可以使用@BholaVishwakarma所描述的呈现的
属性
这应该也适用于JSF1.2
这是给你的免费小费。
您应该避免在bean上使用大写字母<代码>消息.dto.站。
它应该是messages.dto.station
试试下面的方法
<rich:toolTip followMouse="true"
rendered="#{messages.dto.Station !=null and not empty messages.dto.Station}">
...
...
rendered=“#{messages.dto.Station!=null或messages.dto.Station!=”“}”>此处是否包含语法错误?“}”部分在我的编辑器中出现了一些问题。我使用的是jsf 1.2。您有jsf 1.2的解决方案吗?然后您必须在托管bean中创建一个布尔属性,并检查托管bean的行为中的条件让我们呈现=“#{messages.dto.Station!=null或messages.dto.Station!=”)“>此处是否包含语法错误?“}”部分在我的编辑器中出现了一些问题。我使用的是jsf 1.2。您有jsf 1.2的解决方案吗?然后您必须在托管bean中创建一个布尔属性,并检查托管bean的行为中的条件让我们呈现=“#{messages.dto.Station!=null或messages.dto.Station!=”)“>此处是否包含语法错误?“}”部分在我的编辑器中出现了一些问题。我使用的是jsf 1.2。您有jsf 1.2的解决方案吗?然后您必须在托管bean中创建一个布尔属性,并检查托管bean的行为中的条件让我们呈现=“#{messages.dto.Station!=null或messages.dto.Station!=”)“>此处是否包含语法错误?“}”部分在我的编辑器中出现了一些问题。我使用的是jsf 1.2。您有jsf 1.2的解决方案吗?然后您必须在托管bean中创建一个布尔属性,并检查托管bean的行为中的条件。让我们尝试rendered=“#{notempty messages.dto.Station}”try rendered=“#{notempty messages.dto.Station}”“try rendered=“#{not empty messages.dto.Station}”try rendered=“#{not empty messages.dto.Station}”