This content has been marked as final.
Show 5 replies
-
1. Re: default button in a form
sergeysmirnov Apr 24, 2007 12:30 PM (in response to nico.ben)1. add a4j:jsFunction with the similar set of attribute that you have for a4j:commandButton
2. Trap the key pressing event with onkeypress on the form. Check that it is a Enter button. If so, invoke the jsfFunction by name. -
2. Re: default button in a form
fischman_98 Jun 28, 2007 3:17 PM (in response to nico.ben)I have found that setting type="submit" in the a4j:commandButton allows the enter button to work in submitting the form.
-
3. Re: default button in a form
sergeysmirnov Jun 28, 2007 3:50 PM (in response to nico.ben)this is a standard attribute for h:commandButton as well. What was the point for your post?
-
4. Re: default button in a form
alfons12 Feb 10, 2008 12:07 PM (in response to nico.ben)"fischman_98" wrote:
I have found that setting type="submit" in the a4j:commandButton allows the enter button to work in submitting the form.
Works fine in FF but not in IE6. Can anybody help me to fix this?
Thank you. -
5. Re: default button in a form
ilya_shaikovsky Feb 12, 2008 7:23 AM (in response to nico.ben)if this works with h:commandButton in all browsers?