Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- Sistema sistema = new Sistema();
- SistemaDao sistemaDao = new SistemaDao();
- sistema = sistemaDao.buscaPorId(idSistema);
- InterfaceDao interfaceDao = new InterfaceDao();
- interfaceSistema.setSistema(sistema);
- interfaceDao.atualizar(interfaceSistema);
- String msg = "Interface " + interfaceSistema.getDescricao() + " Alterada com sucesso";
- FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, msg, msg);
- FacesContext context = FacesContext.getCurrentInstance();
- context.addMessage(null, message);
- } catch (RuntimeException e) {
- throw new RuntimeException("Erro ao atualizar a interface no Bean");
- } finally {
- listarInterface();
- }
- }
- interfaceSistema = (Interface) evento.getComponent().getAttributes().get("interfaceSelecionado");
Add Comment
Please, Sign In to add comment