Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2481

CLONE -Form tag does not get rendered on a Panel placed in a TabbedPanel within a ModalWindow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 1.4.1
    • None
    • wicket
    • None
    • Windows XP, Tomcat 6.0.18, JDK 16u14

    Description

      /*Form tag does not get rendered on a Panel placed in an AjaxTabbedPanel within a ModalWindow. Form contents are rendered properly but the form tag itself does not. The first tab of an AjaxTabbedPanel is not affected by this issue when rendered for the first time. But if one navigates to the second tab and returns back to the first tab then the form tag no longer exist there.

      This makes any forms on a tabbed panel placed on a modal window unusable.

      See attached quickstart project.*/

      Why is this neccesary. Currently the Firefox is not working with it, because the following code in wicket-ajax.js is giving problems.
      <code>
      var range = element.ownerDocument.createRange();
      range.selectNode(element);
      var fragment = range.createContextualFragment(text);

      element.parentNode.replaceChild(fragment, element);
      </code>

      if i add some jquery code it will work :

      <code>
      try

      { $(element).replaceWith(text); }

      catch (e)

      { var range = element.ownerDocument.createRange(); range.selectNode(element); var fragment = range.createContextualFragment(text); element.parentNode.replaceChild(fragment, element); }

      </code>

      Attachments

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              fkleinko Frank Klein Koerkamp
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: