|
|
@ -6,7 +6,6 @@ import info.bukova.isspst.services.ValidationException;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.dao.DataIntegrityViolationException;
|
|
|
|
|
|
|
|
import org.zkoss.bind.annotation.BindingParam;
|
|
|
|
import org.zkoss.bind.annotation.BindingParam;
|
|
|
|
import org.zkoss.bind.annotation.Command;
|
|
|
|
import org.zkoss.bind.annotation.Command;
|
|
|
|
import org.zkoss.bind.annotation.ExecutionArgParam;
|
|
|
|
import org.zkoss.bind.annotation.ExecutionArgParam;
|
|
|
@ -46,7 +45,7 @@ public class FormViewModel<T extends DataModel> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Messagebox.show("Chyba validace", "Chyba", Messagebox.OK, Messagebox.ERROR);
|
|
|
|
Messagebox.show("Chyba validace", "Chyba", Messagebox.OK, Messagebox.ERROR);
|
|
|
|
} catch (DataIntegrityViolationException e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
dataBean.setCreated(null);
|
|
|
|
dataBean.setCreated(null);
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
Messagebox.show("Chyba při ukládání záznamu", "Chyba", Messagebox.OK, Messagebox.ERROR);
|
|
|
|
Messagebox.show("Chyba při ukládání záznamu", "Chyba", Messagebox.OK, Messagebox.ERROR);
|
|
|
|