Jian Li
Committed by Gerrit Code Review

[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
......@@ -45,6 +45,8 @@ public class AppUiTableMessageHandler extends UiMessageHandler {
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 @@ public class AppUiTableMessageHandler extends UiMessageHandler {
// 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
......
......@@ -26,7 +26,7 @@
<table>
<tr ng-if="!tableData.length" class="no-data">
<td colspan="3">
No Items found
{{annots.no_rows_msg}}
</td>
</tr>
......