Work in progress on error detect,report,troubleshoot
[mkjsf-moved-to-github.git] / src / META-INF / resources / pz2utils / pz2watch.xhtml
index dfa628d..de46cc7 100644 (file)
       <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() ? 'display: block;' : 'display: none;'}">\r
-        <p><h:outputText id="messages" value="Error: #{pz2.oneError.errorMessage}" style="color: red;"/></p>\r
-        <h:dataTable value="#{pz2.oneError.suggestions}" var="suggestion" cellspacing="0" cellpadding="0">       \r
-         <h:column>\r
-           #{suggestion}        \r
-         </h:column>      \r
-        </h:dataTable>                \r
+        <h:dataTable value="#{pz2.configurationErrors}" var="error" cellspace="0" cellpadding="0" style="${pz2.hasConfigurationErrors() ? 'display: block;' : 'display: none;'}">\r
+          <h:column valign="top">\r
+            #{error.label}\r
+          </h:column>\r
+          <h:column valign="top">\r
+            <h:outputText value="#{error.message}" style="color: red;"/>\r
+          </h:column>\r
+          <h:column>\r
+            <h:dataTable value="#{error.suggestions}" var="suggestion" cellspacing="0" cellpadding="0">       \r
+             <h:column>\r
+               #{suggestion}        \r
+             </h:column>      \r
+            </h:dataTable>                            \r
+          </h:column>\r
+        </h:dataTable>\r
+        <h:panelGrid  style="${pz2.hasCommandErrors() ? 'display: block;' : 'display: none;'}">\r
+          <p><h:outputText id="messages" value="#{pz2.commandError.message}" style="color: red;"/></p>\r
+          <h:dataTable value="#{pz2.commandError.suggestions}" var="suggestion" cellspacing="0" cellpadding="0">       \r
+           <h:column>\r
+             #{suggestion}        \r
+           </h:column>      \r
+          </h:dataTable>\r
+        </h:panelGrid>                \r
       </h:panelGrid>                      \r
     </h:form>\r
 \r