« ADF Faces: Submit a form with the Enter key | Main | Reset button doesn't empty fields »

ADF Faces: Submit a form with the Enter key


Frank explains how to submit a form with the Enter key on his blog.
He works with the standard JSF h:form component and creates JavaScript code to handle the Enter key.

Another solution, that doesn't require Javascript coding, is to use the af:form
It contains a property defaultCommand where you can specify the id
attribute of the command button whose action will be invoked by
default for form submit on hitting ENTER on any of the input fields of
the form.

See the detailed explanation [Here]

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on July 24, 2006 9:57 AM.

The previous post in this blog was ADF Faces: Submit a form with the Enter key.

The next post in this blog is Reset button doesn't empty fields.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle