开发者

What's the easiest way to implement a timer in Java?

I'm building a JSF application ( assignment for college ) where people log in the site, bid and when the time expires a pop up window or an output tag announces who is the winner.

So I want to know how can I make an output tag update his value every second ( to show the user how 开发者_如何学Cmuch time he has to bid ) and when it reaches 60 seconds it calls a method to show the pop up window ( or tag ) and announce the winner.

Thanks. Obs: ESL.


Richfaces has got a4j:poll , which fits for you


Maybe a TimerTask is what you want.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜