1 Reply Latest reply on Mar 29, 2007 5:15 AM by Pete Muir

    FacesContext and asynchronous methods

    Ori Schnaps Newbie


      I am trying to use an asynchronous method to send an email. Email is configured to use a Seam mail session.

      When trying to render the email message inside an asynchronous method the FacesContext is not bound and as such a MockFacesContext is created. The mock context throws an UnsupportedOperationException.

      Per the docs the asynchronous method will only have access to the biz context. Any suggestions/recommendation on how to pass it the FacesContext?