How to update the GUI from another thread?

前端 未结 2 951
长发绾君心
长发绾君心 2021-01-15 14:23

I have a problem with threads in my JSF application, maybe somebody could help me.

After the start I run new thread which is making some background

2条回答
  •  北海茫月
    2021-01-15 14:35

    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.

提交回复
热议问题