Meaningless Drivel is fun!*
The moose likes JSF and the fly likes submit form only by pressing enter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "submit form only by pressing enter" Watch "submit form only by pressing enter" New topic

submit form only by pressing enter

moaad elamrani

Joined: Jun 20, 2011
Posts: 6
Hello everyone,

I have a JSF page containing a search field. The problem is when I choose a search criteria + key word (ex : name --> Marc) then I tape enter : Nothing happen.

// Below the code of the field where I enter the search key word.

To display search results I have to press a commandLink:

My objective is to display search results also by pressing enter after choosing criteria + key word, I want "enter" to do the same actions as "the command link above". Does any one know about that ?

Thanks in advance.
It is sorta covered in the JavaRanch Style Guide.
subject: submit form only by pressing enter
Similar Threads
Foreign key field population from datatable to textbox?
How to display custom message for inputText field of integer type
Display background color
Display an array in a swing type box
Need help !!!! Facing problem with display of data fetched from Database