Wicket
  1. Wicket
  2. WICKET-3812

xmlns:wicket="http://wicket.apache.org" rendered for each panel

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC5
    • Fix Version/s: 1.5-RC5.1
    • Component/s: wicket
    • Labels:
      None

      Description

      The markup for rendered pages including a Panel now suddenly renders xmlns:wicket="http://wicket.apache.org", making the markup invalid. See below for a piece of our markup, and further below for a test that exhibits this behavior.

      <div id="modalWindowContainer40"><!-- MARKUP FOR nl.topicus.cobra.web.components.modal.ModalWindowContainer BEGIN -->
      <div id="id141" xmlns:wicket="http://wicket.apache.org" style="display:none"><!-- MARKUP FOR nl.topicus.cobra.web.components.modal.CobraModalWindow$InternalModalWindow BEGIN -->

      <Unable to render embedded object: File (wicket="http://wicket.apache.org" style="display:none"><) not found.-- MARKUP FOR nl.topicus.cobra.web.components.modal.CobraModalWindow$InternalModalWindow BEGIN -->

      <!-- MARKUP FOR nl.topicus.cobra.web.components.modal.CobraModalWindow$InternalModalWindow END --></div>
      <!-- MARKUP FOR nl.topicus.cobra.web.components.modal.ModalWindowContainer END --></div>
      </div>

      /**

      • Tests whether rendering a component, it doesn't show the xmlns:wicket namespace.
        */
        @Test
        public void renderingEmptyPanelDoesntShowWicketXmlns() { WicketTester tester = new WicketTester(); tester.startPanel(EmptyPanel.class); assertFalse("Should not contain xmlns:wicket", tester.getLastResponseAsString().contains("xmlns:wicket")); }

        Issue Links

          Activity

          Hide
          Juergen Donnerstag added a comment -

          It's possibly linked with WICKET-2874 (Copy attributes from wicket:panel to source tag) which was introduced with 1.5-RC1. Martjin though mentioned it used to work with 1.5RC4.2

          Show
          Juergen Donnerstag added a comment - It's possibly linked with WICKET-2874 (Copy attributes from wicket:panel to source tag) which was introduced with 1.5-RC1. Martjin though mentioned it used to work with 1.5RC4.2
          Hide
          Juergen Donnerstag added a comment -

          Disabled the copy-attributes feature and made it optional. See TagUtils.copyAttributes() and AssociatedMarkupSourcingStrategy.onComponentTag()

          Show
          Juergen Donnerstag added a comment - Disabled the copy-attributes feature and made it optional. See TagUtils.copyAttributes() and AssociatedMarkupSourcingStrategy.onComponentTag()

            People

            • Assignee:
              Juergen Donnerstag
              Reporter:
              Martijn Dashorst
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development