What would be the best way to implement a digital clock in JSF 2.0? Is there a lib or component available or should I implement it myself? In the latter case, what would be the best way to implement it? The clock only should – obviously- be refreshed automatically on the page when a minute goes by. I wish not to use JavaScript.
Thanks in advance.
No JSF component comes to mind. You’d need to implement it yourself.
Use JavaScript. There is really no better/easier way. Plus, there are lot of ready-to-use examples available on the internet.
Just put a
somewhere in the document. It’ll work equally good. You can also just do
as long as that appears after the HTML DOM element representing the clock.