Ejemplo n.º 1
0
 @Override
 public void salvar() {
   try {
     controller.salvar(formularioA3);
     BeanMenssagem.addMenssagemInfo(beanUtilitario.getMsg("cadastro"));
   } catch (Exception ex) {
     BeanMenssagem.addMenssagemErro(beanUtilitario.getMsg("erro"));
     Logger.getLogger(FormularioA3Mb.class.getName()).log(Level.SEVERE, null, ex);
   }
 }
Ejemplo n.º 2
0
 @PostConstruct
 @Override
 public void iniciar() {
   formularioA3 = (FormularioA3) beanUtilitario.getRegistroDoMap("a3", new FormularioA3());
   listaFormularioA3 = new ArrayList<>();
   if (formularioA3.getId() == null) {
     try {
       formularioA3.setAluno(
           (Aluno) alunoController.carregar(beanUtilitario.getUsuarioLogado().getLogin()));
     } catch (Exception ex) {
       Logger.getLogger(FormularioA4Mb.class.getName()).log(Level.SEVERE, null, ex);
     }
   }
 }