Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-387

IE8 cannot load errai ui with a text field of type password

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.0.CR1
    • Fix Version/s: None
    • Component/s: ErraiUI
    • Labels:
      None
    • Environment:

      Server: jboss 7 on linux
      Client: IE8 on Windows

    • Steps to Reproduce:
      Hide

      You can demonstrate this with any errai UI app. I took the errai-ui-demo app from Lincoln Baxter, and added

      <input data-field="password" type="password" placeholder="password"/>

      to App.html (after the email element), then I added the appropriate fields to App.java and Profile.java. IE wouldn't load the app. Changing the type from password to text solved the loading problem.

      Show
      You can demonstrate this with any errai UI app. I took the errai-ui-demo app from Lincoln Baxter, and added <input data-field="password" type="password" placeholder="password"/> to App.html (after the email element), then I added the appropriate fields to App.java and Profile.java. IE wouldn't load the app. Changing the type from password to text solved the loading problem.
    • Workaround Description:
      Hide

      The bug seems only to manifest when the corresponding java code uses "@DataField TextBox".

      The workaround is to use "@DataField PasswordTextBox", which seems to work in other browsers too.

      Show
      The bug seems only to manifest when the corresponding java code uses "@DataField TextBox". The workaround is to use "@DataField PasswordTextBox", which seems to work in other browsers too.

      Description

      If there is a UI element in errai UI that is a password type:
      <input data-field="password" type="password" placeholder="password"/>
      then Internet Explorer cannot load the app. If you change the type to type="text" IE is able to load it.

      IE presents the user with a dialog saying "Exception thrown and not caught". If you turn on the debugger and look at the error, the cause has this message:
      Could not replace Element with [data-field=password] - Did you already @Insert or @Replace a parent Element?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mdhirsch30345 Michael Hirsch
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: