0 Replies Latest reply on Apr 26, 2013 2:15 AM by arko1983

    rich hotkey to replace a4j:commandButton

    arko1983

      I want to replace the a4j:commandButton with rich hotkey.Hotkey to enable/disable the rich tooltip . Any help would be appreciated.

       

      The Piece of code is given below.

       

       

                                             <a4j:commandButton id="button1"

                                                  action="#{bean.showTooltip()}"

                                                  value="Show Tooltip" render="staIns1"></a4j:commandButton>

                                              <a4j:commandButton id="button2"

                                                  action="#{baen.disableTooltip()}"

                                                  value="Hide 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>