Hello all,

I am trying to display a customized error message should the authenticate 
method failed to authenticate a user. I.e.

@Name("authenticator")
  | public class Authenticator {
  |     @In
  |     private FacesMessages facesMessages;
  | ...
  |     public boolean authenticate() {
  |         try {
  | ...
  |         } catch (AuthenticationException e) {
  |                 facesMessages.add("#{res['login.failed.msg']}");
  |                 return false;
  |         }

However, this message is not showing when the authenticate method failed. The 
login.xml page is coded as followed:

<h:panelGrid rendered="#{! empty facesContext.maximumSeverity}">
  |     <h:messages for="dialog" styleClass="message" />
  | </h:panelGrid>

Any idea?

Thanks for your help.
-tony

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053755
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to