0 Replies Latest reply on Jul 23, 2007 11:28 AM by Xinhua Gu

    seam (jsf)  messages question

    Xinhua Gu Newbie

      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?