ok, i did the change.

my managed Bean 

  |     public String merge() {
  |             try {
  |                     almoxarifadoFacade.mergeFornecedor(fornecedor);
  |                     fornecedor = new Fornecedor();
  |                     new ArrayList<Fornecedor>();
  |                     
facesMessages.addFromResourceBundle(FacesMessage.SEVERITY_INFO, 
"#{msg.sucesso}");
  |                     return "sucesso";
  |             }
  |             catch (Exception e){
  |                     
facesMessages.addFromResourceBundle(FacesMessage.SEVERITY_WARN, "#{msg.error}");
  |             }
  |             return null;
  |     }
  | 

and my facade:


  |     public void mergeFornecedor(Fornecedor fornecedor) {            
  |             em.merge(fornecedor);
  |             em.flush();
  |     }
  | 


but now my problem is that seam is setting a msg, and i just want my message on 
xhtml.


  | Operação Falhou. Favor verificar os dados --> this is my message
  | 
  | Transaction failed --> seam message, (i dont want this.. :P)
  | 

is there any way to cancel seam message ?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114786#4114786

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114786

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to