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">
8 <ui:composition template="/template.xhtml">
9 <ui:define name="title">
10 <h:outputText value="#{bundle.ListNodeTitle}"></h:outputText>
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"/>
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}"/>
20 <h:commandLink action="#{nodeController.previous}" value="#{bundle.Previous} #{nodeController.pagination.pageSize}" rendered="#{nodeController.pagination.hasPreviousPage}"/>
21 <h:commandLink action="#{nodeController.next}" value="#{bundle.Next} #{nodeController.pagination.pageSize}" rendered="#{nodeController.pagination.hasNextPage}"/>
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">
24 <f:facet name="header">
25 <h:outputText value="#{bundle.ListNodeTitle_id}"/>
27 <h:outputText value="#{item.id}"/>
30 <f:facet name="header">
31 <h:outputText value="#{bundle.ListNodeTitle_name}"/>
33 <h:outputText value="#{item.name}"/>
36 <f:facet name="header">
37 <h:outputText value="#{bundle.ListNodeTitle_nodeType}"/>
39 <h:outputText value="#{item.nodeType}"/>
42 <f:facet name="header">
43 <h:outputText value="#{bundle.ListNodeTitle_time}"/>
45 <h:outputText value="#{item.time}"/>
48 <f:facet name="header">
49 <h:outputText value="#{bundle.ListNodeTitle_cost}"/>
51 <h:outputText value="#{item.cost}"/>
54 <f:facet name="header">
55 <h:outputText value="#{bundle.ListNodeTitle_bayesianNetwork}"/>
57 <h:outputText value="#{item.bayesianNetwork}"/>
60 <f:facet name="header">
61 <h:outputText value=" "/>
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}"/>
72 <h:commandLink action="#{nodeController.prepareCreate}" value="#{bundle.ListNodeCreateLink}"/>
75 <h:commandLink value="#{bundle.ListNodeIndexLink}" action="/index" immediate="true" />