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

    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

      Code:

      <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}" />
      </ui:repeat>

       

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

       

      Regards,
      Naresh.

        • 1. Re: ui:repeat on seam mail
          Bernard Labno 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.