2 Replies Latest reply on Sep 3, 2009 8:17 AM by Alex Cougarman

    Multiple EL statements in Action of a4j:commandButton

    Alex Cougarman Apprentice

      Is it possible to have multiple function calls in the Action of an a4j:commandButton? Something like this:

      <a4j:commandButton action="#{utilities.sendEmail('/pages/in-kind/mail_dl.xhtml'); utilities.sendEmail('/pages/in-kind/mail_rt.xhtml')}"
       type="submit" value="Submit"
       reRender="status" eventsQueue="foo" status="status"/>


      It's giving me an error:

      /pages/in-kind/in_kind.xhtml @161,8 action="#{utilities.sendEmail('/pages/in-kind/mail_dl.xhtml'); utilities.sendEmail('/pages/in-kind/mail_rt.xhtml')}" Error Parsing: #{utilities.sendEmail('/pages/in-kind/mail_dl.xhtml'); utilities.sendEmail('/pages/in-kind/mail_rt.xhtml')}


      What's the correct way of doing this? Thanks.