2 Replies Latest reply on Jul 23, 2009 6:14 PM by Nick Belaevski

    a4j:push implementation question

    Billy Welch Newbie

      Hi!

      I have a bit of a problem.

      I am creating a chat application, and much of the business logic and values are stored in JSF managed beans. The suggested way to implement a4j:push is by using a thread which constantly updates the values. However, I have been unable to get access to FacesContext from a thread, so I am unable to access the managed beans to get and set the appropriate values.

      Is it possible to somehow access FacesContext from a thread? If so, could someone please provide an example of how do so or provide a link to a page with directions on how to? If not, does anyone know of an alternative way to implement the a4j:push?

      Thank you in advance for your help. Please let me know if you need any more information!