Hi Mick,
I use the nasty "1-pixel image" hack, putting it first in the form so the
action I want ("your.action") is the default:
<h:commandButton action="#{your.action}" image="/images/blank.gif"
type="button" tabindex="-1"/>
That should get you going for now, but if somebody does have A Better Way,
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 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 mouse click the submit button.
--
Thanks
DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson