Added UI (JSF) and JPA to bayesian network entities.
[simdecs.git] / web / bn / node / List.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.ListNodeTitle}"></h:outputText>
11 </ui:define>
12 <ui:define name="body">
13 <h:form styleClass="jsfcrud_list_form">
14 <h:panelGroup id="messagePanel" layout="block">
15 <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
16 </h:panelGroup>
17 <h:outputText escape="false" value="#{bundle.ListNodeEmpty}" rendered="#{nodeController.items.rowCount == 0}"/>
18 <h:panelGroup rendered="#{nodeController.items.rowCount > 0}">
19 <h:outputText value="#{nodeController.pagination.pageFirstItem + 1}..#{nodeController.pagination.pageLastItem + 1}/#{nodeController.pagination.itemsCount}"/>&nbsp;
20 <h:commandLink action="#{nodeController.previous}" value="#{bundle.Previous} #{nodeController.pagination.pageSize}" rendered="#{nodeController.pagination.hasPreviousPage}"/>&nbsp;
21 <h:commandLink action="#{nodeController.next}" value="#{bundle.Next} #{nodeController.pagination.pageSize}" rendered="#{nodeController.pagination.hasNextPage}"/>&nbsp;
22 <h:dataTable value="#{nodeController.items}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
23 <h:column>
24 <f:facet name="header">
25 <h:outputText value="#{bundle.ListNodeTitle_id}"/>
26 </f:facet>
27 <h:outputText value="#{item.id}"/>
28 </h:column>
29 <h:column>
30 <f:facet name="header">
31 <h:outputText value="#{bundle.ListNodeTitle_name}"/>
32 </f:facet>
33 <h:outputText value="#{item.name}"/>
34 </h:column>
35 <h:column>
36 <f:facet name="header">
37 <h:outputText value="#{bundle.ListNodeTitle_nodeType}"/>
38 </f:facet>
39 <h:outputText value="#{item.nodeType}"/>
40 </h:column>
41 <h:column>
42 <f:facet name="header">
43 <h:outputText value="#{bundle.ListNodeTitle_time}"/>
44 </f:facet>
45 <h:outputText value="#{item.time}"/>
46 </h:column>
47 <h:column>
48 <f:facet name="header">
49 <h:outputText value="#{bundle.ListNodeTitle_cost}"/>
50 </f:facet>
51 <h:outputText value="#{item.cost}"/>
52 </h:column>
53 <h:column>
54 <f:facet name="header">
55 <h:outputText value="#{bundle.ListNodeTitle_bayesianNetwork}"/>
56 </f:facet>
57 <h:outputText value="#{item.bayesianNetwork}"/>
58 </h:column>
59 <h:column>
60 <f:facet name="header">
61 <h:outputText value="&nbsp;"/>
62 </f:facet>
63 <h:commandLink action="#{nodeController.prepareView}" value="#{bundle.ListNodeViewLink}"/>
64 <h:outputText value=" "/>
65 <h:commandLink action="#{nodeController.prepareEdit}" value="#{bundle.ListNodeEditLink}"/>
66 <h:outputText value=" "/>
67 <h:commandLink action="#{nodeController.destroy}" value="#{bundle.ListNodeDestroyLink}"/>
68 </h:column>
69 </h:dataTable>
70 </h:panelGroup>
71 <br />
72 <h:commandLink action="#{nodeController.prepareCreate}" value="#{bundle.ListNodeCreateLink}"/>
73 <br />
74 <br />
75 <h:commandLink value="#{bundle.ListNodeIndexLink}" action="/index" immediate="true" />
76 </h:form>
77 </ui:define>
78 </ui:composition>
79
80</html>