public boolean onToggleOpenClick() {
   BatchManager bm = getBatchManager();
   int batchId = toggleOpenLink.getValueInteger();
   try {
     if (!bm.isBatchOpen(user.getUsername(), collection.getId(), batchId)) {
       bm.openBatch(user.getUsername(), collection.getId(), batchId);
     } else {
       bm.closeBatch(user.getUsername(), collection.getId(), batchId);
     }
     setRedirect("batches.htm");
     return false;
   } catch (IOException ex) {
     throw new RuntimeException(ex);
   }
 }
 public boolean onManageClick() {
   int batchId = manageBatchLink.getValueInteger();
   setRedirect("view-batch.htm?batchId=" + batchId);
   return false;
 }
 public boolean onEditClick() {
   int batchId = editItemsLink.getValueInteger();
   setRedirect("edit-batch.htm?batchId=" + batchId);
   return false;
 }