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

Update Wicket fragment example

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 6.14.0
    • 6.15.0
    • guide
    • None

    Description

      The example for fragments on the home page does not work with the latest release.
      http://wicket.apache.org/learn/examples/usingfragments.html

      The constructor of a Fragment requires the MarkupContainer to be passed as an argument. It concerns class Index, lines:
      super(id, markupId);
      item.add(new Fragment("panel", fragmentId));

      Specified lines don't compile. I presume there has been an API change.
      Suggested modification (by a total n00b with the framework):
      super(id, markupId, Index.this);
      item.add(new Fragment("panel", fragmentId, Index.this));

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            koekoekie Erik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: