Hi,

I have a form with two buttons, one for cancel and one for submit.
When I click the Enter button on the keyboard the cancel button is the one that activated.
How can I change it so the submit button will be invoked.

The html part
<tr>
<td><input type="submit" value="&larr; Revert Changes" onclick="document.editContact.events.cancel()" /></td>
   <td colspan="2"><input type="submit" value="Save Changes &rarr;" /></td>
</tr>

The form component

<component id="editContact" type="Form">
       <binding name="clientValidationEnabled" value="ognl:true"/>
       <binding name="success" value="listener:save"/>
       <binding name="cancel" value="listener:revert"/>
       <binding name="delegate" value="validationDelegate"/>
</component>

Thanks,

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to