Commit | Line | Data |
---|---|---|
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.EditNodeTitle}"></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:outputLabel value="#{bundle.EditNodeLabel_id}" for="id" /> | |
19 | <h:inputText id="id" value="#{nodeController.selected.id}" title="#{bundle.EditNodeTitle_id}" /> | |
20 | <h:outputLabel value="#{bundle.EditNodeLabel_name}" for="name" /> | |
21 | <h:inputText id="name" value="#{nodeController.selected.name}" title="#{bundle.EditNodeTitle_name}" /> | |
22 | <h:outputLabel value="#{bundle.EditNodeLabel_nodeType}" for="nodeType" /> | |
23 | <h:inputText id="nodeType" value="#{nodeController.selected.nodeType}" title="#{bundle.EditNodeTitle_nodeType}" /> | |
24 | <h:outputLabel value="#{bundle.EditNodeLabel_time}" for="time" /> | |
25 | <h:inputText id="time" value="#{nodeController.selected.time}" title="#{bundle.EditNodeTitle_time}" /> | |
26 | <h:outputLabel value="#{bundle.EditNodeLabel_cost}" for="cost" /> | |
27 | <h:inputText id="cost" value="#{nodeController.selected.cost}" title="#{bundle.EditNodeTitle_cost}" /> | |
28 | <h:outputLabel value="#{bundle.EditNodeLabel_bayesianNetwork}" for="bayesianNetwork" /> | |
29 | <h:selectOneMenu id="bayesianNetwork" value="#{nodeController.selected.bayesianNetwork}" title="#{bundle.EditNodeTitle_bayesianNetwork}" > | |
30 | <f:selectItems value="#{bayesianNetworkController.itemsAvailableSelectOne}"/> | |
31 | </h:selectOneMenu> | |
32 | </h:panelGrid> | |
33 | <h:commandLink action="#{nodeController.update}" value="#{bundle.EditNodeSaveLink}"/> | |
34 | <br /> | |
35 | <br /> | |
36 | <h:commandLink action="View" value="#{bundle.EditNodeViewLink}" immediate="true"/> | |
37 | <br /> | |
38 | <h:commandLink action="#{nodeController.prepareList}" value="#{bundle.EditNodeShowAllLink}" immediate="true"/> | |
39 | <br /> | |
40 | <br /> | |
41 | <h:commandLink value="#{bundle.EditNodeIndexLink}" action="/index" immediate="true" /> | |
42 | </h:form> | |
43 | </ui:define> | |
44 | </ui:composition> | |
45 | ||
46 | </html> |