Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-8385

inputNumberSpinner: autosubmit of a form while pressing the ENTER KEY, validation is discarded and modal panel is closed

    Details

      Description

      When using an inputNumberSpinner inside a modalPanel, within an a4j:form,
      pressing the Enter key will automatically submit the form and the modal panel is closed.
      The validation is not performed.

      I've tried to set oninputkeypress="return event.keyCode!=13" but it doesn't work.

      I have also tried to catch the return-key with an additional component such as:
      <rich:hotKey key="return"
      like discussed in http://ahoehma.wordpress.com/tag/hotkey/ but that did not work either.

      Remark:
      If I replace <rich:inputNumberSpinner with <rich:inputNumberSlider the functionality is OK (the return key can be intercepted and the form is not submitted).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  epetagna Eleonora Petagna
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: