Fix API documentation for DataTable
-----------------------------------

                 Key: WICKET-2183
                 URL: https://issues.apache.org/jira/browse/WICKET-2183
             Project: Wicket
          Issue Type: Bug
          Components: wicket-extensions
    Affects Versions: 1.3.4
            Reporter: Peter Parson
            Priority: Minor


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 ------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to