1 Reply Latest reply on Dec 1, 2013 1:21 AM by Juraj Húska

    how to call backing bean method by rich:hotkey

    AINDRILA ACHARYA Newbie

      I want to call a backing bean method by rich:hotkey.

       

      <a4j:region>

        <table>

        <tr>

       

        <td width="30px" align="center"><h:commandLink

        title="search"

        action="#{myController.testData()}"

        id="smallsearchbutton" /> <rich:hotKey key="return"

        selector="#smallSearch"

        handler="#{rich:element('smallsearchbutton')}.onclick()" /></td>

       

       

        </tr>

        </table>

        </a4j:region>

       

      By pressing key like ctrl+a or any key that I have defined as my hotkey, I want to call the testData method in my controller and also want to render a panel.