Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/392.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在JSF中使丰富的工具提示可见或不可见?_Java_Jsf_Richfaces - Fatal编程技术网

Java 如何在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组件的问题。我有以下jsf代码:

<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}”