This content has been marked as final.
Show 3 replies
-
1. Re: disableDefault don't work with h:input
nbelaevski Oct 15, 2009 10:23 AM (in response to gamba)Hi Gamba,
<h:inputText>doesn't have "onsubmit" event. Use a4j:form. -
2. Re: disableDefault don't work with h:input
gamba Oct 19, 2009 3:46 AM (in response to gamba)Hi,
it doesn't work for me with a4j:form because I don't have a button or link too submit.
So I'm using my own javascript<script type="text/javascript"> function submitMenuInput (keyCode){ if (keyCode == 13) document.forms[0].submit(); } </script>
And it seems to work fine ...
Thx
Gamba -
3. Re: disableDefault don't work with h:input
nbelaevski Oct 19, 2009 6:56 AM (in response to gamba)You can use a4j:form to generate AJAX requests for common form submits. If that's not what you want, you'll have to define "onsubmit" a4j:support as direct form child.