ENTER key with a single form but multiple actions

2006-12-04 Thread Mick Knutson
I have a form with multiple actions and I want a default action to happen when I click the enter key. Right now, I seem to get the 1st (default) action if I am NOT inside another component like a text field. But when I am inside another component, I get nothing submitted and have to manually

RE: ENTER key with a single form but multiple actions

2006-12-04 Thread Daniel Young
, I'd love to hear it. Cheers, Daniel. _ From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Tuesday, 5 December 2006 10:56 AM To: MyFaces Discussion Subject: ENTER key with a single form but multiple actions I have a form with multiple actions and I want a default action

Re: ENTER key with a single form but multiple actions

2006-12-04 Thread Simon Kitching
, but if somebody does have A Better Way, I’d love to hear it… *From:* Mick Knutson [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, 5 December 2006 10:56 AM *To:* MyFaces Discussion *Subject:* ENTER key with a single form

Re: ENTER key with a single form but multiple actions

2006-12-04 Thread Mick Knutson
:* Mick Knutson [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, 5 December 2006 10:56 AM *To:* MyFaces Discussion *Subject:* ENTER key with a single form but multiple actions I have a form with multiple actions and I want a default action to happen when I click the enter key. Right now, I seem

RE: ENTER key with a single form but multiple actions

2006-12-04 Thread Daniel Young
. -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Tuesday, 5 December 2006 11:21 AM To: MyFaces Discussion Subject: Re: ENTER key with a single form but multiple actions Hi, I expect that the browser is simply invoking a method on the HTML control that currently

Re: ENTER key with a single form but multiple actions

2006-12-04 Thread Mario Ivankovits
Hi Mick! I have a form with multiple actions and I want a default action to happen when I click the enter key. Have a look at our sandbox component submitOnEvent. It has various modes to determine which action to trigger. The simplest might be to add it as child to the commandButton which should