Embeds pz2 error XML, if any, in the app error XML
[mkjsf-moved-to-github.git] / src / META-INF / resources / pz2utils / pz2watch.xhtml
index de46cc7..965e01f 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
-        <h:dataTable value="#{pz2.configurationErrors}" var="error" cellspace="0" cellpadding="0" style="${pz2.hasConfigurationErrors() ? 'display: block;' : 'display: none;'}">\r
+        <h:dataTable value="#{pz2.configurationErrors}" var="error" cellspace="0" cellpadding="0" style="${pz2.hasConfigurationErrors() ? 'display: block; vertical-align: top;' : 'display: none;'}">\r
           <h:column valign="top">\r
-            #{error.label}\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:dataTable value="#{error.suggestions}" var="suggestion" cellspacing="0" cellpadding="0">\r
              <h:column>\r
                #{suggestion}        \r
              </h:column>      \r
-            </h:dataTable>                            \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
+            <h:outputText value="#{pz2.commandError.label}"/>\r
+          </h:column>\r
+          <h:column>\r
+            <h:outputText id="messages" value="#{pz2.commandError.message}" style="color: red;"/>\r
+          </h:column>\r
+          <h:dataTable value="#{pz2.commandError.suggestions}" var="suggestion" cellspacing="0" cellpadding="0">                  \r
            <h:column>\r
              #{suggestion}        \r
            </h:column>      \r