Accessing FacesContext from a thread
In my JSF app I need to display FacesMessage from another thread. Acordi开发者_如何学运维ng to docs it's not possible. But maybe there is some trick to do so? I can't see another way to do what I wan't to :(
Maybe you can solve your problem with asynchronous background work with ICEfaces server side push.
Pleas take a look at http://auctionmonitor.icefaces.org/auctionMonitor/auctionMonitor.jsf for an example of the push technology.
Your background working thread could perform a "push", which will "notify" certain pages to update (partially) and display your message.
精彩评论