[jboss-user] [JBoss Seam] - Re: Seam security adds default messages

fernando_jmt do-not-reply at jboss.com
Sun Mar 25 19:20:33 EDT 2007


Simply, if you want to add your custom messages (in any locale) for authentication or whatever in Seam and you don't like (or you don't need) messages Seam adds as default, you should add in your resource bundle an empty key (Seam key message) in order to avoid that message be rendered.

In the example you give you have the messages:

  | * Invalid username or password
  | * Login failed  (added by Seam)
  | 

So if you don't want the second message appears, add this in your resource bundle:


  | org.jboss.seam.loginFailed
  | 

The key without value.


HTH.

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

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



More information about the jboss-user mailing list