rich hotkey to replace a4j:commandButton



我想替换a4j:commandButton或链接与丰富的热键。启用/禁用富工具提示的热键。任何帮助都会很感激。我使用的是富脸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>

RF4中的<rich:hotkey>onkeyuponkeydown而不是handler

要显示工具提示,您可以执行onkeydown="#{rich:component('staInsTt1')}.show()",而不必调用bean。

最新更新