Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6426928

focus lost within text item after applet is shown again

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.2_11
    • Fix Version/s: 1.4.2_13
    • Component/s: deploy
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      x86
    • OS:
      windows_2000

      Description

      test case attached.

      Steps to run the tescase
      -------------------------
      1. Extract the contents of the zip file to a directory.
      2. Load the file indusfocus.html on IE.
      3. You will see a page with an applet loaded with a text item. The focus is in the text item.
      4. Now click on the link called "Views". The applet is hidden.
      5. Then click on the link called "BannerForms". The applet is shown.

      On JDK 1.5, you will see that the focus remains inside the text item when the applet is shown again after step 5.
      On JDK 1.4, you will see that the focus is not present in the text item after the applet is shown again after step 5.

      Basically, the fix (for 1.5 but doesn't work in 1.4.2) for the bug is this :
      1. The forms applet should be given a name i.e. in basejpi.html, the tag ID=<some_name> should be added to the <OBJECT> tag.
      2. In the javascript function changebannerforms() present in indusfocus.html, the lines

                 if (oFormsFrame != null) {
                          oFormsFrame.height = 600;
                 }

      must be changed to

                 if (oFormsFrame != null) {
                          oFormsFrame.height = 600;
                          top.bannerforms.formsapplet.focus();
                 }

        Attachments

          Activity

            People

            • Assignee:
              kbalasubsunw Kannan Balasubramanian (Inactive)
              Reporter:
              msusko Mark Susko (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: