4 Replies Latest reply on Aug 20, 2009 11:29 AM by Julien Martin

    Avoiding page reload under the following conditions:

    Julien Martin Expert

      Hello,

      Say I have a h:form with an h:inputText field and a a4j:commandButton. Moreover the user has just entered some text into the h:inputText field (which currently has the focus) and instead of clicking the a4j:commandButton they press their keyboard enter key and the whole page is reloaded.

      How can I prevent this behaviour and make sure nothing happens when the inputtext has the focus and the keyboard enter key is pressed?

      Thanks in advance,

      J.