File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes jsf and shortcut keys (Hot Keys) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf and shortcut keys (Hot Keys)" Watch "jsf and shortcut keys (Hot Keys)" New topic

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?

Bertjan Underhill

Joined: Aug 25, 2008
Posts: 12

Use jQuery for a cross browser solution.
See also this topic.

><((((º>`·.¸¸.·´¯`·.¸.·´¯`·...¸><((((º>`·.¸¸.·´¯`·.¸¸.·´¯`·.. ><((((º>`·.¸¸.·´¯`·.¸.·´¯`·...¸><((((º>
J Miller
Ranch Hand

Joined: Oct 21, 2010
Posts: 79
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.
I agree. Here's the link:
subject: jsf and shortcut keys (Hot Keys)
It's not a secret anymore!