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 ]
We faced similar problem in our project. We also had two buttons one for continue and other for 'Go BAck'. We wrote javascript to trap the pressing of enter key and submitted the form on the event.
Originally posted by Himanshu Gupta: We faced similar problem in our project. We also had two buttons one for continue and other for 'Go BAck'. We wrote javascript to trap the pressing of enter key and submitted the form on the event.
Thank you for your advice, Himanshu. But, You know, JS is not that graceful in JSF page. Any simple solution?