My problem is that i don't know how to render current time in jsf every second. I have a bean:
@Schedule(second="*",minute="*",hour="*")
public void showTime() {
date = new Date();
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
And i can only render current time by clicking button. I would like to render it every second without clicking.
Maybe there is better way to do it instead of using @Schedule and java.util.Date. Thanks in advance.