Exemple #1
0
 public void pageBeginRender(PageEvent event_) {
   if (getAcdServer() != null) {
     return;
   }
   if (getAcdServerId() != null) {
     AcdServer server = getAcdContext().loadServer(getAcdServerId());
     setAcdServer(server);
   } else {
     AcdServer server = getAcdContext().newServer();
     setAcdServer(server);
     // make sure that config tab is available when server is new
     setTab("config");
   }
   if (getAcdStatistics() == null) {
     setAcdStatistics(new AcdStatisticsImpl(getAcdContext()));
   }
 }
Exemple #2
0
 public void formSubmit() {
   if (getChanged()) {
     setAcdServer(null);
   }
 }