• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

jsf and shortcut keys (Hot Keys)

 
Ranch Hand
Posts: 31
Hibernate Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

Use jQuery for a cross browser solution.
See also this topic.
 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Destroy anything that stands in your way. Except this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic