开发者

Tapestry - update UI based on a backend event

开发者 https://www.devze.com 2023-01-25 01:26 出处:网络
I am using Tapestry 4.1. I have a process running 开发者_如何学Goin the background. Once the process completes, I want to refresh a text in my UI. I am new to tapestry. It would be helpful if somebody

I am using Tapestry 4.1. I have a process running 开发者_如何学Goin the background. Once the process completes, I want to refresh a text in my UI. I am new to tapestry. It would be helpful if somebody can point out tapestry components I can use for this purpose.


just like any web application, you will need to set up some kind of polling mechanism from your browser to your server (ie an ajax request on a timer).

i can't remember how i used to script ajax requests to event listeners in tapestry 4.1 but i do remember doing it.

i could tell you how to do it with tapestry 5 however.

0

精彩评论

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

关注公众号