Wicket
  1. Wicket
  2. WICKET-4294

AutoCompleteTextField does not show suggestions when it is used on ModalWindow in InternetExplorer

    Details

      Description

      When the AutoCompleteTextfield is used on a ModalWindow the suggestions are not shown. The reason is the following code in modal.css on line 171:

      div.wicket-modal div.w_content_container

      { position: relative; }

      This was added in revision 1071523 of modal.css. As a workaround to make the suggestions visible i use the following code in the css-sheet of my project:

      /*

      • FIXES rendering issue of autocomplete
      • suggestions on modal windows in internet explorer 7, 8, ..?
        */
        DIV.wicket-modal DIV.w_content_container { position : static !important; }

      I will attach a quickstart project, that you can use to reproduce the bug. Start it and type http://localhost:8080/ac into your browser.
      To show the bug you have to remove the workaround from style.css or disable it using the developer toolbar of internet explorer.

      1. myproject1_5_3.zip
        60 kB
        Stefan Schulte
      2. WICKET-4294.patch
        0.8 kB
        Andrea Del Bene

        Issue Links

          Activity

          Hide
          Stefan Schulte added a comment -

          added quickstart project

          Show
          Stefan Schulte added a comment - added quickstart project
          Hide
          Andrea Del Bene added a comment -

          Sorry, but I couldn't replicate the problem with your project (tested with i.e 7 and 8). If you still have this problem could you provide more informations? Maybe you could use a webdev tool to see if there is any error with JavaScript or Css.

          Show
          Andrea Del Bene added a comment - Sorry, but I couldn't replicate the problem with your project (tested with i.e 7 and 8). If you still have this problem could you provide more informations? Maybe you could use a webdev tool to see if there is any error with JavaScript or Css.
          Hide
          Stefan Schulte added a comment -

          Hi Andrea!

          Thanks for your interests on this issue. Unfortunatly I added my workaraound to the quickstart project. So please follow these instructions to reproduce the error:

          • remove everything from style.css in the quickstart project
          • clean your browsers cache
          • do mvn jetty:run
          • type http://localhost:8080/ac into your browser
          • type g into the chooser on the page
          • type g into the chooser on the modal window

          I still have this problem even on ie9

          Stefan

          Show
          Stefan Schulte added a comment - Hi Andrea! Thanks for your interests on this issue. Unfortunatly I added my workaraound to the quickstart project. So please follow these instructions to reproduce the error: remove everything from style.css in the quickstart project clean your browsers cache do mvn jetty:run type http://localhost:8080/ac into your browser type g into the chooser on the page type g into the chooser on the modal window I still have this problem even on ie9 Stefan
          Hide
          Stefan Schulte added a comment -

          This issue still exists in wicket 1.5.5

          Show
          Stefan Schulte added a comment - This issue still exists in wicket 1.5.5
          Hide
          Andrea Del Bene added a comment -

          Hi,

          sorry if I didn't read your instructions properly. Actually AutoCompleteTextfield shows its options but they are behind modal window. I solved the issue setting z-index of suggestions to 20002 because modal window has the same parameter setted to 20001.
          I've tested it with IE 7, IE 8, Firefox 11 and Chromium 17.

          See attached patch.

          Show
          Andrea Del Bene added a comment - Hi, sorry if I didn't read your instructions properly. Actually AutoCompleteTextfield shows its options but they are behind modal window. I solved the issue setting z-index of suggestions to 20002 because modal window has the same parameter setted to 20001. I've tested it with IE 7, IE 8, Firefox 11 and Chromium 17. See attached patch.
          Hide
          Martin Grigorov added a comment -

          Andrea Del Bene Is this issue still valid in latest wicket-6.x ?

          Show
          Martin Grigorov added a comment - Andrea Del Bene Is this issue still valid in latest wicket-6.x ?
          Hide
          Andrea Del Bene added a comment -

          Should be solved. I will check it shortly.

          Show
          Andrea Del Bene added a comment - Should be solved. I will check it shortly.
          Hide
          Andrea Del Bene added a comment -

          Solved with WICKET-5413 and WICKET-5379. Tested with Wicket 6.13 snapshot

          Show
          Andrea Del Bene added a comment - Solved with WICKET-5413 and WICKET-5379 . Tested with Wicket 6.13 snapshot
          Hide
          Andrea Del Bene added a comment -

          Solved with WICKET-5413 and WICKET-5379.

          Show
          Andrea Del Bene added a comment - Solved with WICKET-5413 and WICKET-5379 .

            People

            • Assignee:
              Andrea Del Bene
              Reporter:
              Stefan Schulte
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development