开发者

Accessing FacesContext from a thread

开发者 https://www.devze.com 2023-04-04 17:51 出处:网络
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 wa

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号