Submitting on enter

A common question I’m asked is how to submit a form on pressing enter. Here is how to do it using rich:hotKey component.



...

If you want to submit only while the focus is inside the input field, then the following will work:



...

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s