The problem is I got two submit buttons in a page, one for saving form, one for searching. The save button at the top and search one at the bottom. You know, the default would be save button when I press "Enter" key. Now if I want to trigger search button after the event, What should I do?
Thank you in advance, Zane [ October 14, 2008: Message edited by: Zane ]
Thank you for your advice, Himanshu. But, You know, JS is not that graceful in JSF page. Any simple solution?
Assign id to your submit button and use java script method focus() which will be called at the time of page load. When you are pressing enter key then send that focus to search button. Thats all you have done..
Please let me know if you have done with your requirement..