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

Fix API documentation for DataTable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.4
    • 1.4-RC3
    • wicket-extensions
    • None

    Description

      The example in the DataTable javadoc does not even compile. It says:

      ------------- snip ------------

      • DataTable table = new DataTable("datatable", columns, new UserProvider(), 10);
      • table.add(new NavigationToolbar(table));
      • table.add(new HeadersToolbar(table));
      • add(table);
                              • snip ------------

      It should rather be:

      ------------- snip ------------

      • DataTable table = new DataTable("datatable", columns, new UserProvider(), 10);
      • table.addBottomToolbar(new NavigationToolbar(table));
      • table.addTopToolbar(new HeadersToolbar(table, null));
      • add(table);
                              • snip ------------

      Attachments

        Activity

          People

            Unassigned Unassigned
            pparson Peter Parson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: