Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSF
Don't want to submit form on Enter
Ryan Waggoner
Ranch Hand
Posts: 75
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hey guys,
The enter key is causing me a few problems. Recently to get around this, I have been adding
onkeydown="enterTab();"
to every control, but that is starting to get kind of annoying.
Do I have any other options?
Thanks!
Bauke Scholtz
Ranch Hand
Posts: 2458
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
<h:form onkeypress="return event.keyCode != 13;">
This returns false only if the enter key is pressed.
If you have any textarea in the form, then you need to remove the onkeypress from the form and apply it on the appropriate input elements only.>
Ryan Waggoner
Ranch Hand
Posts: 75
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thank you very much
Bauke Scholtz
Ranch Hand
Posts: 2458
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You're welcome.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Invalid input integer.
if statement problem
How to capture events from vbs script in java
JCombobox in JTable - requestFocus not working.
Setting up Paths Permanently
More...