ICEfaces
  1. ICEfaces
  2. ICE-8240

Clicking enter key in an ice:inputText field causes two submits to occur

    Details

      Description

      When the enter key is pressed in an ice:inputText field, two submits are sent to the server. In addition to this there is an ice:selectInputDate component on the page. When the enter key is pressed the date popup is opened.

      This is not an issue with the ICEfaces EE 1.8.2 P03 release.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30522 Thu Aug 16 10:47:38 MDT 2012 mircea.toma ICE-8470 Introduced ice.cancelEnterKeyEvent public function that use by InputTextRenderer to cancel the keypress events in ICEfaces3. This is a follow up fix for ICE-8240, unlike ICEfaces 1.8 the event functions are publicly exposed hence the JS error seen previously.
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/compat/core/build.javascript.xml
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/compat/core/src/main/javascript/compat.js
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/renderkit/InputTextRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30521 Thu Aug 16 10:47:27 MDT 2012 mircea.toma ICE-8470 Introduced ice.cancelEnterKeyEvent public function that use by InputTextRenderer to cancel the keypress events in ICEfaces3. This is a follow up fix for ICE-8240, unlike ICEfaces 1.8 the event functions are publicly exposed hence the JS error seen previously.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/compat/core/src/main/javascript/compat.js
        Commit graph MODIFY /icefaces3/trunk/icefaces/compat/core/build.javascript.xml
        Commit graph MODIFY /icefaces3/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/renderkit/InputTextRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30488 Tue Aug 14 12:18:28 MDT 2012 mircea.toma ICE-8240 Cancel default action only when Enter key is pressed.
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/renderkit/InputTextRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30485 Tue Aug 14 05:29:24 MDT 2012 mircea.toma ICE-8240 Cancel default action only when Enter key is pressed.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/renderkit/InputTextRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30484 Tue Aug 14 05:24:03 MDT 2012 mircea.toma ICE-8240 Cancel default action only when Enter key is pressed.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/renderkit/InputTextRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30348 Wed Aug 01 08:17:27 MDT 2012 mircea.toma ICE-8240 Lookup view state element by its name, only when it fails try searching it among the form elements.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/javascript/application.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #29800 Wed Jul 04 10:01:24 MDT 2012 mircea.toma ICE-8240 Cancel the default action during the keypress event to prevent the 'click' event from being sintetically generated during the form submission triggered by the enter key.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/renderkit/InputTextRenderer.java

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: