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

Changing tag name and expanding open-close to open-body-close prints old tag name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.2
    • 1.3.3
    • wicket
    • None

    Description

      I do this:
      @Override
      protected void onComponentTag(ComponentTag tag)
      {
      tag.setName("select");
      if (tag.isOpenClose())

      { tag.setType(XmlTag.OPEN); }

      super.onComponentTag(tag);
      }

      and the close tag that is generated is not a "select" but the old "input"

      This can be fixed in Component line 2485:

      // Close the manually opened panel tag.
      getResponse().write(openTag.syntheticCloseTagString());

      could be changed to

      // Close the manually opened panel tag.
      getResponse().write(tag.syntheticCloseTagString());

      Attachments

        1. WICKET-1458.patch
          11 kB
          Gerolf Seitz

        Activity

          People

            jdonnerstag Juegen Donnerstag
            jdpatterson John Patterson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: