Currently the only way to do this is by using javascript. There is an
example on the SubmitPageOnValueChange page of the wiki [1] (the third
section, 'How To Submit a page when hitting "enter"'). There was some
discussion some time ago to implement this function in the form
component from the sandbox or using a new component, but AFAIK nobody
has implemented that so far.

Regards,

Bruno

[1] http://wiki.apache.org/myfaces/SubmitPageOnValueChange

2005/12/16, Patrick Dalla Bernardina <[EMAIL PROTECTED]>:
> In my application, when I press enter to submit a form the page is
> refreshed without really executing the action.
>
> How can I define a default action when enter is pressed?
>

Reply via email to