Capturing enter button in JSF
843844Aug 22 2007 — edited Aug 31 2007Hi ,
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?