1 Reply Latest reply on Feb 17, 2011 4:37 AM by blabno

    ui:repeat on seam mail

    narvava Newbie

      hi all,


      I am trying to trigger mail using seam mail. I use following sytanx in my template. Syntax seems fine but I m getting an error for ui:repeat


      <m:from name="#{messages['email.automailer']}"
        address="#{messages['email.dashboard']}" />

      <ui:repeat value="#{oncallGroupMailBean.toContacts} var="contact">
        <m:to name="#{contact.lastName} #{contact.firstName}"
         address="#{contact.email}" />


      Error :

      com.sun.facelets.FaceletException: Error Parsing /oncall/CreateGroupMail.xhtml: Error Traced[line: 16] Element type "ui:repeat" must be followed by either attribute specifications, ">" or "/>".

      at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234)

      at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)


      Could anybody guess, what am I doing wrong here?.



        • 1. Re: ui:repeat on seam mail
          blabno Master

          This is not Seam forum.

          You have

          {code:xml}<ui:repeat value="#{oncallGroupMailBean.toContacts} var="contact">{code:xml}


          but it should be


          {code:xml}<ui:repeat value="#{oncallGroupMailBean.toContacts}" var="contact">{code:xml}


          you forgot quote after EL for value attribute.