This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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..