Skip to Main Content

Java Development Tools

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!

JSF: How to bind a CommandButton functionaity to an ENTER or ESCAPE key?

user512662Oct 26 2006 — edited Oct 26 2006
Hello!
I use a JSF in my application. There are a lot of JSF Create - , Edit - and Delete - pages. All of this pages have to Command buttons:
OK - which performs the action
Cancel - which cancels the action.
So, the problem is that it's necessary to bind an OK button action to an ENTER key and a Cancel button action to an ESCAPE key. The AccessKey property doesn't suite for this case, because it allows to work with literal keys only.
Could anybody help me to solve a problem?
Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2006
Added on Oct 26 2006
4 comments
1,300 views