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.
精彩评论