1 Reply Latest reply on Sep 17, 2007 10:14 AM by Jason Long

    aDDING SEVERAL MESSAGES WITH facesMessages.addToControl

    aisc adsfv Newbie

      When I try to add several validation error messages to the same control

      facesMessages.addToControl("anioInic",new FacesMessage("error1"));
      facesMessages.addToControl("anioInic",new FacesMessage("error2"));

      and show them in the view, through the template
       <span class="value #{invalid?'errors':''}">
       <ui:insert />
       <s:span rendered="#{invalid}" styleClass="icon">

      I only get the first message added (error1), is this the expected behaviour or am I missing somenthing? Is not possible to do what I'm trying?