7
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2 <html xmlns="http://www.w3.org/1999/xhtml"
|
|
3 xmlns:h="http://java.sun.com/jsf/html"
|
|
4 xmlns:f="http://java.sun.com/jsf/core"
|
|
5 xmlns:ui="http://java.sun.com/jsf/facelets"
|
|
6 xmlns:a4j="http://richfaces.org/a4j"
|
|
7 xmlns:rich="http://richfaces.org/rich">
|
|
8
|
|
9 <body>
|
|
10 <ui:composition>
|
|
11
|
|
12 <h:panelGrid>
|
|
13 <h:outputText value="Subject - #{CurrentSubject.entity.ownValue}"
|
|
14 rendered="#{!empty CurrentSubject.entity.ownValue}"
|
|
15 styleClass="titlePanel"/>
|
|
16 <h:outputText value="Subject"
|
|
17 rendered="#{empty CurrentSubject.entity.ownValue}"
|
|
18 styleClass="titlePanel"/>
|
|
19 </h:panelGrid>
|
|
20
|
|
21 <h:panelGrid columns="2" styleClass="createPanel"
|
|
22 columnClasses="createPanelFirstColumn">
|
|
23
|
|
24 <h:outputText value="Name" />
|
|
25 <h:inputText size="100" value="#{CurrentSubject.attributes['name']}" />
|
|
26
|
|
27 <h:outputText value="Type" />
|
|
28 <h:selectOneMenu
|
|
29 value="#{CurrentSubject.attributes['type']}">
|
|
30 <f:selectItems value="#{CurrentSubject.suggestedTypes}" />
|
|
31 </h:selectOneMenu>
|
|
32
|
125
|
33 <h:outputText value="General Category (parent)" />
|
7
|
34 <h:selectOneMenu value="#{CurrentSubject.idMainSubject}">
|
|
35 <f:selectItems value="#{CurrentSubject.suggestedCategories}" />
|
|
36 </h:selectOneMenu>
|
|
37
|
|
38 </h:panelGrid>
|
|
39
|
|
40 <h:panelGrid columns="4">
|
125
|
41 <h:outputText value="ID of the Subject" />
|
7
|
42 <h:inputText value="#{CurrentSubject.currentId}" />
|
|
43 <h:commandButton value="Load Subject By ID"
|
|
44 action="#{CurrentSubject.actionReloadEntity}"
|
|
45 onclick="confirm('Do you really want to reload the entity?');" />
|
|
46 <h:outputText value="#{CurrentSubject.currentIdMsg}"
|
|
47 style="color:red" />
|
|
48 </h:panelGrid>
|
|
49
|
|
50 <h:commandButton value="#{CurrentSubject.saveButtonLabel}"
|
|
51 rendered="#{CurrentSubject.renderSaveButton}"
|
|
52 onclick="#{ApplicationBean1.JSConfirmationSave}"
|
|
53 action="#{CurrentSubject.save}" />
|
|
54
|
|
55 <h:commandButton value="Clear Form"
|
|
56 action="#{CurrentSubject.clearAction}"
|
|
57 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" />
|
|
58
|
|
59 </ui:composition>
|
|
60 </body>
|
|
61 </html>
|