as seen on footer of omnifaces showcase site (scroll bottom of page).
server (re)started @ 12 jun 2015 08:50 utc
how can display time of last server restart/start or/and last update of quellcode, if possible.
the omnifaces showcase open source. can find responsible code in line 100 of /web-inf/templates/layout.xhtml
<p>server (re)started @ #{of:formatdatewithtimezone(startup, 'd mmm yyyy hh:mm', 'utc')} utc</p> it's using omnifaces own #{startup} managed bean registered below in omnifaces own faces-config.xml:
<managed-bean eager="true"> <managed-bean-name>startup</managed-bean-name> <managed-bean-class>java.util.date</managed-bean-class> <managed-bean-scope>application</managed-bean-scope> </managed-bean> in "plain jsf" show below:
<h:outputtext value="#{startup}"> <f:convertdatetime pattern="d mmm yyyy hh:mm" /> </h:outputtext>
Comments
Post a Comment