All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class NoRecordsToolbar extends AbstractToolbar
A toolbar that displays a "no records found" message when the data table contains no rows.

The message can be overridden by providing a resource with key datatable.no-records-found

Author:
Igor Vaynberg (ivaynberg)
See Also:
  • Constructor Details

    • NoRecordsToolbar

      public NoRecordsToolbar(DataTable<?,?> table)
      Constructor
      Parameters:
      table - data table this toolbar will be attached to
    • NoRecordsToolbar

      public NoRecordsToolbar(DataTable<?,?> table, IModel<String> messageModel)
      Parameters:
      table - data table this toolbar will be attached to
      messageModel - model that will be used to display the "no records found" message
  • Method Details