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())); } }
public void formSubmit() { if (getChanged()) { setAcdServer(null); } }