[jboss-user] [JBoss Seam] - seam (jsf) messages question

xinhua do-not-reply at jboss.com
Mon Jul 23 11:28:29 EDT 2007


hi,
is that possible to get facesMessages ojbect WHEN a page is rendered?

i created a backing bean MsgBean and bind it with h:messages


  | 		<h:messages  id="mms" globalOnly="true" layout="list"
  | 	styleClass="errors" binding="#{msgbb.msgs}"/>
  | 



  | public class MsgBean {
  | 
  |    UIMessages msgs ;
  | 
  | 	public UIMessages getMsgs() {
  |                 return msgs;
  | 	}
  | 
  | 	public void setMsgs(UIMessages msgs) {
  | 		this.msgs = msgs;
  | 	}
  | 

but i donnot know how to get message content through getter and setter. :.....(  or there is a seam way to do that?

can anyone help?



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

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



More information about the jboss-user mailing list