[jboss-user] [JBoss Seam] - Re: problem in login.seam

swd847 do-not-reply at jboss.com
Wed Oct 10 02:39:51 EDT 2007


I have two simple and rather dodgy ways to work around this:

1) remove <s:messages/> from the login page.

2)
Try something like:
 
  | Iterator<FacesMessage> iter = FacesContext.getCurrentInstance().getMessages();
  |       while ( iter.hasNext() )
  |       {
  |          FacesMessage m = (FacesMessage)iter.next();
  |          if(m.getDetail().equals("Please log in first") 
  |            iter.remove();
  | 
  |       }
  | 
  | 

The code above probably won't work, but you get the general idea.

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

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



More information about the jboss-user mailing list