Added UI (JSF) and JPA to bayesian network entities.
[simdecs.git] / web / bn / question / Edit.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.EditQuestionTitle}"></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.EditQuestionLabel_id}" for="id" />
19                     <h:inputText id="id" value="#{questionController.selected.id}" title="#{bundle.EditQuestionTitle_id}" />
20                     <h:outputLabel value="#{bundle.EditQuestionLabel_text}" for="text" />
21                     <h:inputText id="text" value="#{questionController.selected.text}" title="#{bundle.EditQuestionTitle_text}" />
22                     <h:outputLabel value="#{bundle.EditQuestionLabel_node}" for="node" />
23                     <h:selectOneMenu id="node" value="#{questionController.selected.node}" title="#{bundle.EditQuestionTitle_node}" >
24                         <f:selectItems value="#{nodeController.itemsAvailableSelectOne}"/>
25                     </h:selectOneMenu>
26                 </h:panelGrid>
27                 <h:commandLink action="#{questionController.update}" value="#{bundle.EditQuestionSaveLink}"/>
28                 <br />
29                 <br />
30                 <h:commandLink action="View" value="#{bundle.EditQuestionViewLink}" immediate="true"/>
31                 <br />
32                 <h:commandLink action="#{questionController.prepareList}" value="#{bundle.EditQuestionShowAllLink}" immediate="true"/>
33                 <br />
34                 <br />
35                 <h:commandLink value="#{bundle.EditQuestionIndexLink}" action="/index" immediate="true" />
36             </h:form>
37         </ui:define>
38     </ui:composition>
39
40 </html>