ICEfaces
  1. ICEfaces
  2. ICE-6636

2.0 prevents custom javascript from cancelling keyboard stroke in IE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.0.0-EE-Beta1
    • Fix Version/s: 2.0.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      IE7/8
    • Workaround Exists:
      Yes
    • Workaround Description:
      Use onkeydown instead of onkeypress.

      Description

      The customer has a custom javascript solution that allows for only numbers to be entered in an ice:inputText component like so:

       <ice:inputText onkeypress="return numbersonly(this, event);"/>

      The javascript solution can be found here: http://www.htmlcodetutorial.com/forms/index_famsupp_158.html. This solution works in 1.8.2 P02 and a stock JSF 2.0 example on FF and IE. However, this does not work in 2.0 or 2.0 EE Beta with IE7 or 8. It does work in FF.

      The workaround is to use onkeydown but the customer has mentioned that they have existing logic in this event.

      2.0 EE Beta (sc9836_IF2.war) and stock JSF 2 (case9836Example.war) test cases are attached.

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved: