Ejemplo n.º 1
0
  // xmlshowevents/keywords=a+asdf+adf+asd
  void onActivate() {
    String keyWords = request.getParameter("keywords");

    try {
      totalNumber = betService.getNumberOfEvents(keyWords, null);
    } catch (InstanceNotFoundException e) {
      // Never, category null
      return;
    }
    try {
      events = betService.findEvents(keyWords, null, 0, totalNumber);
    } catch (InstanceNotFoundException e) {
      // Never, category null
    }
  }
 public void prepare(int startIndex, int endIndex, List<SortConstraint> sortConstraints) {
   try {
     if (adminService == null)
       events = betService.findEvents(keyWords, categoryId, startIndex, endIndex - startIndex + 1);
     else
       events =
           adminService.findEvents(keyWords, categoryId, startIndex, endIndex - startIndex + 1);
   } catch (InstanceNotFoundException e) {
   }
   this.startIndex = startIndex;
 }