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!

Capturing enter button in JSF

843844Aug 22 2007 — edited Aug 31 2007
Hi ,

I am using JSF with tomahawk in my application.
I have a form with one textfield and one submit button.
I am using tomahawk and javascript to populate a hidden textfield.

My problem is that when the user types in something int eh textfield and presses the "enter" key instead of the submit button, the form doesn't get submitted and is not populating the hidden field.
Because of this when we later hit the submit button, it still has a problem.

What is the work around for this?
Is there away to capture the enter key and submit the form or is there a better way to do this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2007
Added on Aug 22 2007
6 comments
298 views