[ONOS-3722] Add noRowsMessage method to sample UiTableMessageHandler
This commit fixes the archetype building failure which is caused
by lacking of noRowsMessage method in AppUiTableMessageHandler.
Change-Id: I11fcff169aaf01830d6eaf847e5dadaa8a58f832
diff --git a/tools/package/archetypes/uitab/src/main/resources/archetype-resources/src/main/java/AppUiTableMessageHandler.java b/tools/package/archetypes/uitab/src/main/resources/archetype-resources/src/main/java/AppUiTableMessageHandler.java
index 6bda2aa..7c605f4 100644
--- a/tools/package/archetypes/uitab/src/main/resources/archetype-resources/src/main/java/AppUiTableMessageHandler.java
+++ b/tools/package/archetypes/uitab/src/main/resources/archetype-resources/src/main/java/AppUiTableMessageHandler.java
@@ -45,6 +45,8 @@
private static final String SAMPLE_TABLE_DETAIL_RESP = "sampleTableDetailsResponse";
private static final String DETAILS = "details";
+ private static final String NO_ROWS_MESSAGE = "No items found";
+
private static final String ID = "id";
private static final String LABEL = "label";
private static final String CODE = "code";
@@ -81,6 +83,11 @@
// if required, override createTableModel() to set column formatters / comparators
@Override
+ protected String noRowsMessage(ObjectNode payload) {
+ return NO_ROWS_MESSAGE;
+ }
+
+ @Override
protected void populateTable(TableModel tm, ObjectNode payload) {
// === NOTE: the table model supplied here will have been created
// via a call to createTableModel(). To assign non-default