Packaging pazpar2/io error messages in response objects
[mkjsf-moved-to-github.git] / src / META-INF / resources / pz2utils / pz2watch.xhtml
index 511aae1..bfa2b3b 100644 (file)
      //]]>\r
     </script>  \r
 \r
-    <h:form id="activeclientsForm" prependId="false" style="${cc.attrs.debug == 'true' ? '' : 'display:none;'}">\r
-      Active clients: <h:outputText id="activeclientsField" value="${pz2.update()}" />\r
+    <h:form id="activeclientsForm" prependId="false">\r
+      <h:outputText id="activeClientsLabel" value="Active clients: " style="${cc.attrs.debug == 'true' ? '' : 'display:none;'}"/> \r
+      <h:outputText id="activeclientsField" value="${pz2.update()}"  style="${cc.attrs.debug == 'true' ? '' : 'display:none;'}"/>\r
+      <h:panelGrid id="errorMessages" style="${pz2.hasErrors() ? 'color: red;' : 'display: none;'}">\r
+        <p><h:outputText id="messages" value="Error: #{pz2.firstErrorMessage}"/></p>\r
+      </h:panelGrid>                      \r
     </h:form>\r
 \r
     <h:form id="stateForm" prependId="false" rendered="${cc.attrs.trackHistory == 'true'}" style="${cc.attrs.debug == 'true' ? '' : 'display:none;'}">\r