Пример #1
0
  @OnEvent(value = EventConstants.SUCCESS, component = "myMultiZoneUpdateForm")
  Object performMultiZoneUpdate() {
    afterFormSubmit = true;

    return new MultiZoneUpdate("multiZone1", multiZone1.getBody())
        .add("multiZone2", multiZone2.getBody());
  }
Пример #2
0
 @OnEvent("serveDetail")
 Object onServeDetail(int index) {
   if (!request.isXHR()) {
     return this;
   }
   user = (User) users.get(index);
   return detailZone.getBody();
 }
  @CommitAfter
  Object onSuccess() {
    radnikDao.dodajIliUpdatujRadnika(radnik);
    radnik = new Radnik();

    if (request.isXHR()) {
      ajaxResponseRenderer.addRender(zoneRadnici).addRender(formZone);
    }
    return request.isXHR() ? zoneRadnici.getBody() : null;
    // return this;
  }
Пример #4
0
  public Object onValueChangedFromPoslovniPartner(String poslPart) {
    if (poslPart.equals("FizickoLice")) {
      setHiddenSign("none");
      showFizickoLIce = true;
    } else {
      setHiddenSign("none");
      showFizickoLIce = false;
    }

    return eqnZone.getBody();
  }
Пример #5
0
  Object onValueChangedFromposlovniPartnerLista(Integer poslPart) throws Exception {
    listaRacunaZaPArtnera = new ArrayList<Racun>();
    if (showFizickoLIce) {
      for (FizickoLice fl : listaFizickihLica) {
        if (fl.getIdPoslovnogPartnera().equals(poslPart)) {
          selektovaniPoslovniPartner = fl;
          PronadjiRacun pronadjiRacun = new PronadjiRacun();
          listaRacunaZaPArtnera = (List<Racun>) pronadjiRacun.izvrsiSO(fl);
          break;
        }
      }
    } else {
      for (PravnoLice pl : listaPravnihLica) {
        if (pl.getIdPoslovnogPartnera().equals(poslPart)) {
          selektovaniPoslovniPartner = pl;
          PronadjiRacun pronadjiRacun = new PronadjiRacun();
          listaRacunaZaPArtnera = (List<Racun>) pronadjiRacun.izvrsiSO(pl);
          break;
        }
      }
    }

    return prikazRacuna.getBody();
  }
Пример #6
0
 Object onSuccess() {
   return output.getBody();
 }
 @CommitAfter
 Object onActionFromEdit(Radnik radnik) {
   this.radnik = radnik;
   return request.isXHR() ? formZone.getBody() : null;
   // return this;
 }
 @CommitAfter
 Object onActionFromDelete(int id) {
   radnikDao.obrisiRadnika(id);
   return request.isXHR() ? zoneRadnici.getBody() : null;
   // return this;
 }
  Object onActionFromInitAlgorithm() {
    executeAlgorithm();
    currentState = "Recommendation System is up to date.";

    return currentStateZone.getBody();
  }
  Object onSuccess() {
    SpringUtils.getUserService().calculatePredictionRanks(selectedUser.getID());
    currentState = "Rank predictions up to date for user with username: " + selectedUser.getName();

    return currentStateZone.getBody();
  }
Пример #11
0
 Object onSelectMapFromChartWithMap(
     @RequestParameter("series") String series, @RequestParameter("category") String category) {
   message = String.format("Series = %s, Category = %s", series, category);
   return myZone.getBody();
 }