Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Defining Keystrokes on a JSF Page

843842Dec 4 2006 — edited Dec 11 2006
Hi there and Happy Holidays. I have a question regarding keystrokes in JSF. On a conventional HTML page, a developer can use JavaScript to respond to keypress events. For example, I can have a button be clicked when a user presses F12 or Ctrl-C. I simply would like to achieve the same thing in JSF.

I am familiar with the accesskey property of certain JSF controls. For one thing, I cannot seem to figure out how those work. When I hit the key, nothing happens. For another, even if I could make it work, my understanding of the accesskey mechanism is that it only moves the focus to the control. It doesn't actually make the control work (e.g. click the button or the link). Again, I want the control to work upon keystrokes of my choosing rather than merely have the focus.

Any insight is appreciated. Thanks very much.

Neil
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2007
Added on Dec 4 2006
7 comments
158 views