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

Update Wicket fragment example

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 6.14.0
    • Fix Version/s: 6.15.0
    • Component/s: guide
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: