Added UI (JSF) and JPA to bayesian network entities.
[simdecs.git] / web / bn / bayesianNetwork / Create.xhtml
diff --git a/web/bn/bayesianNetwork/Create.xhtml b/web/bn/bayesianNetwork/Create.xhtml
new file mode 100644 (file)
index 0000000..7219a62
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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">
+
+    <ui:composition template="/template.xhtml">
+        <ui:define name="title">
+            <h:outputText value="#{bundle.CreateBayesianNetworkTitle}"></h:outputText>
+        </ui:define>
+        <ui:define name="body">
+            <h:panelGroup id="messagePanel" layout="block">
+                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
+            </h:panelGroup>
+            <h:form>
+                <h:panelGrid columns="2">
+                    <h:outputLabel value="#{bundle.CreateBayesianNetworkLabel_id}" for="id" />
+                    <h:inputText id="id" value="#{bayesianNetworkController.selected.id}" title="#{bundle.CreateBayesianNetworkTitle_id}" />
+                    <h:outputLabel value="#{bundle.CreateBayesianNetworkLabel_name}" for="name" />
+                    <h:inputText id="name" value="#{bayesianNetworkController.selected.name}" title="#{bundle.CreateBayesianNetworkTitle_name}" />
+                </h:panelGrid>
+                <br />
+                <h:commandLink action="#{bayesianNetworkController.create}" value="#{bundle.CreateBayesianNetworkSaveLink}" />
+                <br />
+                <br />
+                <h:commandLink action="#{bayesianNetworkController.prepareList}" value="#{bundle.CreateBayesianNetworkShowAllLink}" immediate="true"/>
+                <br />
+                <br />
+                <h:commandLink value="#{bundle.CreateBayesianNetworkIndexLink}" action="/index" immediate="true" />
+            </h:form>
+        </ui:define>
+    </ui:composition>
+
+</html>