Author: lfryc(a)redhat.com
Date: 2011-01-20 06:52:09 -0500 (Thu, 20 Jan 2011)
New Revision: 21111
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/templates/header.xhtml
Log:
added statusChecker to header to make testing of @status possible
Modified: modules/tests/metamer/trunk/application/src/main/webapp/templates/header.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/templates/header.xhtml 2011-01-20
11:51:40 UTC (rev 21110)
+++
modules/tests/metamer/trunk/application/src/main/webapp/templates/header.xhtml 2011-01-20
11:52:09 UTC (rev 21111)
@@ -72,10 +72,25 @@
<h:outputLabel value="Render Checker" />
<a4j:outputPanel id="renderChecker">
<h:outputText value="#{phasesBean.date}">
- <f:convertDateTime pattern="ss.SSS" />
+ <f:convertDateTime pattern="HH:MM:ss.SSS" />
</h:outputText>
</a4j:outputPanel>
+ <h:outputLabel value="Status Checker" />
+ <a4j:outputPanel id="statusCheckerPanel">
+ <a4j:status name="statusChecker"
onstop="updateStatusChecker()" />
+ <h:outputText id="statusCheckerOutput"
value="" />
+
+ <h:outputScript target="head" library="script"
name="date-format.js" />
+ <h:outputScript target="head" library="script"
name="clientTime-refresh.js" />
+ <script>
+ function updateStatusChecker() {
+
Metamer.ClientTime.refresh(#{rich:element('statusCheckerOutput')});
+ }
+ updateStatusChecker();
+ </script>
+ </a4j:outputPanel>
+
<ui:debug hotkey="L" />
</h:panelGrid>
Show replies by date