Mercurial > hg > ismi-richfaces
comparison src/main/webapp/public/dynamicPageEditor.xhtml @ 7:764f47286679
(none)
author | jurzua |
---|---|
date | Wed, 29 Oct 2014 14:28:34 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
6:ded3bccf2cf9 | 7:764f47286679 |
---|---|
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 template="/templates/privateTemplate.xhtml"> | |
11 | |
12 <ui:define name="privateContent"> | |
13 | |
14 <h:outputStylesheet name="/css/ismi-db/display.css" /> | |
15 | |
16 <div id="pageTitle"> | |
17 <h:outputText value="Dynamic Page Editor" /> | |
18 </div> | |
19 | |
20 <h:panelGrid columns="1" | |
21 rendered="#{Session.user != null}" | |
22 styleClass="mainPanel" | |
23 id="pagePanel" > | |
24 | |
25 <h:panelGrid | |
26 id="controlPanel" | |
27 columns="2"> | |
28 <h:outputText value="Select Page"/> | |
29 | |
30 <h:selectOneMenu | |
31 value="#{Session.pageEditor.pageId}"> | |
32 <f:selectItems value="#{Session.pageEditor.pageList}"/> | |
33 <a4j:ajax event="change" render="pagePanel" listener="#{Session.pageEditor.listenerSelectPage}" /> | |
34 </h:selectOneMenu> | |
35 <h:commandButton | |
36 value="Create Page" | |
37 actionListener="#{Session.pageEditor.listenerCreatePage}"/> | |
38 </h:panelGrid> | |
39 | |
40 <h:panelGrid | |
41 columns="2" | |
42 rendered="#{Session.pageEditor.page != null}"> | |
43 | |
44 <h:outputLabel value="Page" rendered="#{Session.pageEditor.page != null}"/> | |
45 <h:panelGrid columns="2"> | |
46 | |
47 <h:outputLabel value="Id"/> | |
48 <h:outputLabel value="#{Session.pageEditor.page.id}"/> | |
49 | |
50 <h:outputLabel value="Definition"/> | |
51 <h:selectOneMenu | |
52 value="#{Session.pageEditor.page.definition}"> | |
53 <f:selectItems value="#{Session.pageEditor.definitionList}"/> | |
54 </h:selectOneMenu> | |
55 | |
56 <h:outputLabel value="Label"/> | |
57 <h:inputText value="#{Session.pageEditor.page.label}"/> | |
58 | |
59 <h:outputText/> | |
60 <h:panelGrid columns="3"> | |
61 <h:commandButton | |
62 value="Save" | |
63 actionListener="#{Session.pageEditor.listenerSavePage}"/> | |
64 <h:commandButton | |
65 actionListener="#{Session.pageEditor.listenerClean}" | |
66 value="Clean Selection"/> | |
67 <h:commandButton | |
68 value="Remove Page"/> | |
69 | |
70 </h:panelGrid> | |
71 </h:panelGrid> | |
72 | |
73 <h:outputLabel value="Attributes" columns="2" rendered="#{Session.pageEditor.pagePersistent}"/> | |
74 <h:panelGrid | |
75 id="attsPanel" | |
76 columns="1" rendered="#{Session.pageEditor.pagePersistent}"> | |
77 | |
78 <h:commandButton | |
79 value="Create Attribute" | |
80 actionListener="#{Session.pageEditor.listenerAddAtt}"/> | |
81 | |
82 <h:outputLabel value="List of attributes is empty!" | |
83 rendered="#{empty Session.pageEditor.attList}"/> | |
84 <rich:dataTable | |
85 value="#{Session.pageEditor.attList}" | |
86 var="att" | |
87 rendered="#{!empty Session.pageEditor.attList}"> | |
88 | |
89 <rich:column> | |
90 <h:outputText | |
91 value="#{att.obj.id}"/> | |
92 </rich:column> | |
93 <rich:column> | |
94 <h:outputText | |
95 value="#{att.obj.index}"/> | |
96 </rich:column> | |
97 | |
98 <rich:column> | |
99 <f:facet name="header"> | |
100 <h:outputText value="Label" /> | |
101 </f:facet> | |
102 <h:inputText value="#{att.obj.label}" style="width:100px;"/> | |
103 </rich:column> | |
104 | |
105 <rich:column> | |
106 <f:facet name="header"> | |
107 <h:outputText value="Query" /> | |
108 </f:facet> | |
109 <h:inputTextarea value="#{att.obj.query}" style="width:300px;"/> | |
110 </rich:column> | |
111 | |
112 <rich:column> | |
113 <f:facet name="header"> | |
114 <h:outputText value="Display Mode" /> | |
115 </f:facet> | |
116 <h:selectOneMenu | |
117 value="#{att.obj.displayMode}"> | |
118 <f:selectItems value="#{Session.pageEditor.displayModeList}"/> | |
119 </h:selectOneMenu> | |
120 </rich:column> | |
121 | |
122 <rich:column> | |
123 <f:facet name="header"> | |
124 <h:outputText value="Text Align" /> | |
125 </f:facet> | |
126 <h:selectOneMenu | |
127 value="#{att.obj.textAlign}"> | |
128 <f:selectItems value="#{Session.pageEditor.suggestedTextAlign}"/> | |
129 </h:selectOneMenu> | |
130 </rich:column> | |
131 | |
132 <rich:column> | |
133 <f:facet name="header"> | |
134 <h:outputText value="Content Type" /> | |
135 </f:facet> | |
136 <h:selectOneMenu | |
137 value="#{att.obj.contentType}"> | |
138 <f:selectItems value="#{Session.pageEditor.contentTypeList}"/> | |
139 </h:selectOneMenu> | |
140 </rich:column> | |
141 | |
142 <rich:column> | |
143 <h:commandButton image="#{ApplicationBean1.imgDown32}" | |
144 actionListener="#{Session.pageEditor.listenerDown}"/> | |
145 <h:commandButton image="#{ApplicationBean1.imgUp32}" | |
146 actionListener="#{Session.pageEditor.listenerUp}"/> | |
147 </rich:column> | |
148 | |
149 <rich:column> | |
150 <h:selectBooleanCheckbox | |
151 value="#{att.selected}"/> | |
152 </rich:column> | |
153 | |
154 </rich:dataTable> | |
155 | |
156 <h:panelGrid columns="2"> | |
157 <h:commandButton | |
158 value="Save Attributes" | |
159 actionListener="#{Session.pageEditor.listenerSaveAll}" | |
160 rendered="#{!empty Session.pageEditor.attList}"/> | |
161 <h:commandButton | |
162 value="Delete Attributes" | |
163 actionListener="#{Session.pageEditor.listenerRemoveAttributes}" | |
164 rendered="#{!empty Session.pageEditor.attList}" | |
165 onclick="#{ApplicationBean1.JSConfirmationDelete}"/> | |
166 </h:panelGrid> | |
167 </h:panelGrid> | |
168 | |
169 </h:panelGrid> | |
170 | |
171 | |
172 | |
173 | |
174 | |
175 | |
176 | |
177 </h:panelGrid> | |
178 | |
179 </ui:define> | |
180 </ui:composition> | |
181 </body> | |
182 </html> | |
183 |