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

How to set TABPanels'titel to EscapeModel(false)

    XMLWordPrintableJSON

Details

    Description

      To let a TABPanel's title label display whatever we want (e.g. to setEscapeModelString(false)) we need a callback method like the one for the linke the one for

      protected WebMarkupContainer newLink(MarkupContainer parent, String linkId, final int index)
      {
      return new Link(parent, linkId)
      {
      private static final long serialVersionUID = 1L;

      @Override
      public void onClick()

      { setSelectedTab(index); }

      };
      }

      Then we can overwrite the e.g. newLinkLabel method in an annonymous class.

      Attachments

        Activity

          People

            Unassigned Unassigned
            stefan-lindner Stefan Lindner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: