ICEfaces
  1. ICEfaces
  2. ICE-2955

Hitting enter inside an h:inputText causes javascript runtime error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7RC1
    • Fix Version/s: 1.7
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All
    • Workaround Exists:
      Yes
    • Workaround Description:
      Use ice components and add an on ice onkeypress="if (window.event.keyCode == 13) iceSubmitPartial(form,this,event);" to the ice:inputText to simulate h:inputText default behavior.

      Description

      The default behavior when hitting enter inside of an h:inputText is to execute the nearest command button. If you hit enter inside of the input text using the snippet below, a javascript runtime error occurs in IE. Attached is a screenshot. The run time error is ''form' is null or not an object'. Here is the snippet of code that reproduces the issue:

      <ice:form>
      <h:panelGrid>
      <h:outputText value="Search" escape="false" />
      <h:inputText id="ticketInput" value="" size="25" />

                     <hcommandButton action="action" value="temp" />
      </h:panelGrid>
      </ice:form>

        Activity

        Tyler Johnson created issue -
        Tyler Johnson made changes -
        Field Original Value New Value
        Support Case References https://www.icesoft.ca:4443/supportilla/show_bug.cgi?id=4731
        Ken Fyten made changes -
        Fix Version/s 1.7 [ 10080 ]
        Assignee Priority P1
        Assignee Mark Collette [ mark.collette ]
        Priority Major [ 3 ] Minor [ 4 ]
        Mark Collette made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P1
        Assignee Mark Collette [ mark.collette ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: