Added UI (JSF) and JPA to bayesian network entities.
[simdecs.git] / web / bn / bayesianNetwork / View.xhtml
CommitLineData
c547eea0
MS
1<?xml version="1.0" encoding="UTF-8" ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:ui="http://java.sun.com/jsf/facelets"
5 xmlns:h="http://java.sun.com/jsf/html"
6 xmlns:f="http://java.sun.com/jsf/core">
7
8 <ui:composition template="/template.xhtml">
9 <ui:define name="title">
10 <h:outputText value="#{bundle.ViewBayesianNetworkTitle}"></h:outputText>
11 </ui:define>
12 <ui:define name="body">
13 <h:panelGroup id="messagePanel" layout="block">
14 <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
15 </h:panelGroup>
16 <h:form>
17 <h:panelGrid columns="2">
18 <h:outputText value="#{bundle.ViewBayesianNetworkLabel_id}"/>
19 <h:outputText value="#{bayesianNetworkController.selected.id}" title="#{bundle.ViewBayesianNetworkTitle_id}"/>
20 <h:outputText value="#{bundle.ViewBayesianNetworkLabel_name}"/>
21 <h:outputText value="#{bayesianNetworkController.selected.name}" title="#{bundle.ViewBayesianNetworkTitle_name}"/>
22 </h:panelGrid>
23 <br />
24 <h:commandLink action="#{bayesianNetworkController.destroyAndView}" value="#{bundle.ViewBayesianNetworkDestroyLink}"/>
25 <br />
26 <br />
27 <h:commandLink action="Edit" value="#{bundle.ViewBayesianNetworkEditLink}"/>
28 <br />
29 <h:commandLink action="#{bayesianNetworkController.prepareCreate}" value="#{bundle.ViewBayesianNetworkCreateLink}" />
30 <br />
31 <h:commandLink action="#{bayesianNetworkController.prepareList}" value="#{bundle.ViewBayesianNetworkShowAllLink}"/>
32 <br />
33 <br />
34 <h:commandLink value="#{bundle.ViewBayesianNetworkIndexLink}" action="/index" immediate="true" />
35
36 </h:form>
37 </ui:define>
38 </ui:composition>
39
40</html>