Added UI (JSF) and JPA to bayesian network entities.
[simdecs.git] / web / bn / node / View.xhtml
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.ViewNodeTitle}"></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.ViewNodeLabel_id}"/>
19                     <h:outputText value="#{nodeController.selected.id}" title="#{bundle.ViewNodeTitle_id}"/>
20                     <h:outputText value="#{bundle.ViewNodeLabel_name}"/>
21                     <h:outputText value="#{nodeController.selected.name}" title="#{bundle.ViewNodeTitle_name}"/>
22                     <h:outputText value="#{bundle.ViewNodeLabel_nodeType}"/>
23                     <h:outputText value="#{nodeController.selected.nodeType}" title="#{bundle.ViewNodeTitle_nodeType}"/>
24                     <h:outputText value="#{bundle.ViewNodeLabel_time}"/>
25                     <h:outputText value="#{nodeController.selected.time}" title="#{bundle.ViewNodeTitle_time}"/>
26                     <h:outputText value="#{bundle.ViewNodeLabel_cost}"/>
27                     <h:outputText value="#{nodeController.selected.cost}" title="#{bundle.ViewNodeTitle_cost}"/>
28                     <h:outputText value="#{bundle.ViewNodeLabel_bayesianNetwork}"/>
29                     <h:outputText value="#{nodeController.selected.bayesianNetwork}" title="#{bundle.ViewNodeTitle_bayesianNetwork}"/>
30                 </h:panelGrid>
31                 <br />
32                 <h:commandLink action="#{nodeController.destroyAndView}" value="#{bundle.ViewNodeDestroyLink}"/>
33                 <br />
34                 <br />
35                 <h:commandLink action="Edit" value="#{bundle.ViewNodeEditLink}"/>
36                 <br />
37                 <h:commandLink action="#{nodeController.prepareCreate}" value="#{bundle.ViewNodeCreateLink}" />
38                 <br />
39                 <h:commandLink action="#{nodeController.prepareList}" value="#{bundle.ViewNodeShowAllLink}"/>
40                 <br />
41                 <br />
42                 <h:commandLink value="#{bundle.ViewNodeIndexLink}" action="/index" immediate="true" />
43
44             </h:form>
45         </ui:define>
46     </ui:composition>
47
48 </html>