An html form can have only one actual submit button, so make sure you have a separate form for each group of input fields and the associated submit button.
Kalle > -----Original Message----- > From: steve rock [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 09, 2005 7:07 PM > To: [email protected] > Subject: I have several buttons within a form, depending on > which part of form they are on, want the Enter key to trigger > different buttons > > Hi, > > I have several buttons in my JSF form page. There are also > several input fields. What I would like is when the user is > in one particular text field and hits Enter, I want to > trigger the button associated with it. If I'm in another text > field, it should trigger a different button. > > Basically I want to change submit button focus with > javascript or JSF depending on which input field has focus. > What is the best way to do this? > > -Steve >

