ICEfaces
  1. ICEfaces
  2. ICE-11117

Cannot disable form submission via "Enter" button

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Oracle Linux 6, Firefox

      Description

      Some browsers automatically submit forms when the Enter key is pressed. There are several common workarounds for this: mainly using javascript to capture the "Enter" keypress before the browser has a chance to submit.

      ICEfaces, however, seems to process this keypress before javascript has a chance to catch it. Perhaps this is a side effect to performing an AJAX 'submit="@all" render="@all" submission that ICEfaces does. This problem does not exist using vanilla JSF or Primefaces.

        Activity

        Hide
        William Saxton added a comment -

        Sample project showing that javascript does capture the keypresses properly except when hitting the enter key in the text box or hitting enter in the dropdown.

        Show
        William Saxton added a comment - Sample project showing that javascript does capture the keypresses properly except when hitting the enter key in the text box or hitting enter in the dropdown.

          People

          • Assignee:
            Unassigned
            Reporter:
            William Saxton
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: