public void updateEntries(List<GuestbookEntryTransferObject> entries) {
    // Hide the error label if it's still present.
    if (errorLabel.isVisible()) {
      errorLabel.setVisible(false);
    }

    // Update entries in guest entries table.
    if (entries != null) {
      // Start at +1 offset to skip table header.
      for (int i = 1; i <= entries.size(); i++) {
        guestEntries.setText(i, 0, entries.get(i - 1).getName());
        guestEntries.setText(i, 1, entries.get(i - 1).getMessage());
        guestEntries.getCellFormatter().addStyleName(i, 0, "gb-GuestEntry");
        guestEntries.getCellFormatter().addStyleName(i, 1, "gb-GuestEntry");
        if (i % 2 != 0) {
          guestEntries.getRowFormatter().addStyleName(i, "gb-GuestEntryOdd");
        }
      }
    }
  }