File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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.
I agree. Here's the link:
subject: submit form only by pressing enter
It's not a secret anymore!