ICEfaces
  1. ICEfaces
  2. ICE-5536

The action method of two components are called when Enter key is pressed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha2
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Labels:
      None
    • Environment:
      ICEfaces 2 Compatibility

      Description

      Given a simple test case like this:

      <ice:form>
          <ice:inputText value="BLAH" action="#{simple.textAction}"/><br/>
          <ice:commandButton value="Click" action="#{simple.buttonAction}"/><br/>
      </ice:form>

      If you focus the inputText field and hit the Enter key, the action methods of both the inputText component and the commandButton are called. This behaviour is different from ICEfaces 1.8 where only the action of the inputText field would be called.

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #22287 Wed Sep 08 07:38:46 MDT 2010 mircea.toma ICE-5536 Cancel default action only for enter key press.
          Files Changed
          Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/javascript/submit.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #22286 Wed Sep 08 07:11:27 MDT 2010 mircea.toma ICE-5536, ICE-6014 Cancel default action and event bubbling to avoid double submit.
          Files Changed
          Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/javascript/submit.js

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Deryk Sinotte
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: