4 Replies Latest reply on Aug 24, 2009 4:29 AM by Daniel Yang

    rick:hotkey can't work with jquery

    Daniel Yang Novice

      Hi, my work use Richfaces 3.3.1GA version. When I using rich:hot, I found that there was a js error in my page, because of using jquery(1.3.2) in the same page.
      My page snippet:

       <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
       <rich:hotKey key="return" handler="alert('enter')"/>
      If I remove the first line, the works normally, but doesn't work if first line existed in page, I don't know why.
      the js error:
      error: jQuery.hotkeys is undefined
      source: http://localhost:8080/FreeApp/a4j/g/3_3_1.GA/org/richfaces/ui.pack.js.jsf
      line: 12415
      error: K.dispatchEvent is not a function
      source: http://localhost:8080/FreeApp/a4j/g/3_3_1.GA/org/ajax4jsf/framework.pack.js.jsf
      line: 1754

      My page also used jquery dialog plugin, so I can't remove first line as a solution, Anyone knows how to solve the problem?
      Any help would be appreciated!