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

    aDDING SEVERAL MESSAGES WITH facesMessages.addToControl

    aisc adsfv Newbie

      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