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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.3.3
    • Component/s: wicket
    • Labels:
      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

          Activity

            People

            • Assignee:
              jdonnerstag Juergen Donnerstag
              Reporter:
              jdpatterson John Patterson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: