Initial import.
[simdecs_seam.git] / SimDeCS / WebContent / layout / edit.xhtml
diff --git a/SimDeCS/WebContent/layout/edit.xhtml b/SimDeCS/WebContent/layout/edit.xhtml
new file mode 100644 (file)
index 0000000..9728c2c
--- /dev/null
@@ -0,0 +1,27 @@
+<ui:composition  xmlns="http://www.w3.org/1999/xhtml"
+                 xmlns:ui="http://java.sun.com/jsf/facelets"
+                 xmlns:h="http://java.sun.com/jsf/html"
+                 xmlns:f="http://java.sun.com/jsf/core"
+                 xmlns:s="http://jboss.com/products/seam/taglib">
+
+    <div class="prop">
+
+        <s:label styleClass="name #{invalid?'errors':''}">
+            <ui:insert name="label"/>
+            <s:span styleClass="required" rendered="#{required}">*</s:span>
+        </s:label>
+
+        <span class="value #{invalid?'errors':''}">
+            <s:validateAll>
+                <ui:insert/>
+            </s:validateAll>
+        </span>
+
+        <span class="error">
+            <h:graphicImage value="/img/error.gif" rendered="#{invalid}" styleClass="errors"/>
+            <s:message styleClass="errors"/>
+        </span>
+
+    </div>
+
+</ui:composition>