Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkjsf.git into...
[mkjsf-moved-to-github.git] / src / META-INF / resources / pz2utils / configerrors.xhtml
diff --git a/src/META-INF/resources/pz2utils/configerrors.xhtml b/src/META-INF/resources/pz2utils/configerrors.xhtml
new file mode 100644 (file)
index 0000000..531c7b5
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" ?>\r
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
+<h:html xmlns="http://www.w3.org/1999/xhtml"\r
+      xmlns:f="http://java.sun.com/jsf/core"\r
+      xmlns:h="http://java.sun.com/jsf/html"\r
+      xmlns:ui="http://java.sun.com/jsf/facelets"\r
+      xmlns:cc="http://java.sun.com/jsf/composite">\r
+\r
+<head>\r
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
+</head>\r
+<body>\r
+\r
+  <cc:interface>\r
+  </cc:interface>\r
+  \r
+  <cc:implementation>\r
+      <h:panelGrid id="configErrorMessagesAndSuggestions" rendered="${errors.hasConfigurationErrors()}">\r
+        <h:dataTable value="#{errors.configurationErrors}" var="error" cellspace="0" cellpadding="0" style="${errors.hasConfigurationErrors() ? 'display: block; vertical-align: top;' : 'display: none;'}">\r
+          <h:column valign="top">\r
+            <h:outputText value="#{error.message}" style="color: red;"/>\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>                      \r
+  </cc:implementation>\r
+    \r
+</body>\r
+</h:html>
\ No newline at end of file