1 Reply Latest reply on Sep 17, 2007 10:14 AM by supernovasoftware.com

    aDDING SEVERAL MESSAGES WITH facesMessages.addToControl

    aisc

      Hi,
      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
       <div>
       <span class="value #{invalid?'errors':''}">
       <ui:insert />
       </span>
       <s:span rendered="#{invalid}" styleClass="icon">
       <s:message/>
       </s:span>
       </div>
      


      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?
      Regards