Work on error reporting. Adds troubleshooter.
[mkjsf-moved-to-github.git] / src / META-INF / resources / pz2utils / pz2watch.xhtml
index bfa2b3b..dfa628d 100644 (file)
     <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 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:panelGrid>                      \r
     </h:form>\r
 \r