Added UI (JSF) and JPA to bayesian network entities.
[simdecs.git] / web / bn / bayesianNetwork / View.xhtml
diff --git a/web/bn/bayesianNetwork/View.xhtml b/web/bn/bayesianNetwork/View.xhtml
new file mode 100644 (file)
index 0000000..390f2b6
--- /dev/null
@@ -0,0 +1,40 @@
+<?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.ViewBayesianNetworkTitle}"></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:outputText value="#{bundle.ViewBayesianNetworkLabel_id}"/>
+                    <h:outputText value="#{bayesianNetworkController.selected.id}" title="#{bundle.ViewBayesianNetworkTitle_id}"/>
+                    <h:outputText value="#{bundle.ViewBayesianNetworkLabel_name}"/>
+                    <h:outputText value="#{bayesianNetworkController.selected.name}" title="#{bundle.ViewBayesianNetworkTitle_name}"/>
+                </h:panelGrid>
+                <br />
+                <h:commandLink action="#{bayesianNetworkController.destroyAndView}" value="#{bundle.ViewBayesianNetworkDestroyLink}"/>
+                <br />
+                <br />
+                <h:commandLink action="Edit" value="#{bundle.ViewBayesianNetworkEditLink}"/>
+                <br />
+                <h:commandLink action="#{bayesianNetworkController.prepareCreate}" value="#{bundle.ViewBayesianNetworkCreateLink}" />
+                <br />
+                <h:commandLink action="#{bayesianNetworkController.prepareList}" value="#{bundle.ViewBayesianNetworkShowAllLink}"/>
+                <br />
+                <br />
+                <h:commandLink value="#{bundle.ViewBayesianNetworkIndexLink}" action="/index" immediate="true" />
+
+            </h:form>
+        </ui:define>
+    </ui:composition>
+
+</html>