| Author |
jsf and shortcut keys (Hot Keys)
|
Balaji Kadam
Ranch Hand
Joined: Apr 27, 2010
Posts: 31
|
|
Hi all,
I want to use hot keys on my page to implement it. I have tried this using accesskey attribute for command button , but this changes behaviour hen browser changes. Is there any way in jsf to perform this?
Thanks
Balaji
|
 |
Bertjan Underhill
Greenhorn
Joined: Aug 25, 2008
Posts: 12
|
|
Hi!
Use jQuery for a cross browser solution.
See also this topic.
|
><((((º>`·.¸¸.·´¯`·.¸.·´¯`·...¸><((((º>`·.¸¸.·´¯`·.¸¸.·´¯`·.. ><((((º>`·.¸¸.·´¯`·.¸.·´¯`·...¸><((((º>
|
 |
J Miller
Ranch Hand
Joined: Oct 21, 2010
Posts: 62
|
|
|
I don't believe that JSF has the built-in ability for hotkeys, at least not extensive support. For this you may have to use an additional framework. We use RichFaces on my team, and it has a hotkey tag that can do just about any hot keys you want. There are ways to do it in Javascript by capturing the onKeyDown event, finding what key it is, and sending that to a function to do whatever you want, but that's a pretty labor-intensive solution.
|
 |
 |
|
|
subject: jsf and shortcut keys (Hot Keys)
|
|
|