我想替换a4j:commandButton或使用rich hotkey.Hotkey链接来启用/禁用丰富的工具提示。任何帮助将不胜感激。我正在使用富脸4,因此富裕热键中不存在处理程序属性
下面给出了这段代码。
<a4j:commandButton id="button1" action="#{bean.showTooltip()}"
value="Show Tooltip" render="staIns1"></a4j:commandButton>
<rich:panel id="staIns1" styleClass="tooltip-text" style="border:0; background:none">
<h:inputText id="a" value="#{bean.value}" style="width: 100%"></h:inputText>
<rich:tooltip followMouse="false" showDelay="1500"
rendered="#{bean.showPanel}" id="staInsTt1" styleClass="tooltip"
layout="block" style="width:200px;font-style:italic">
<h:outputLabel value="#{bean.property1}" />
</rich:tooltip>
</rich:panel>
答案 0 :(得分:0)
<rich:hotkey>
包含onkeyup
和onkeydown
而不是handler
。
要显示工具提示,您只需执行onkeydown="#{rich:component('staInsTt1')}.show()"
,就不必调用bean。