source: vanHelsing/trunk/gui/WebContent/menu.jspx@ 862

Last change on this file since 862 was 862, checked in by tobias, on Apr 15, 2010 at 3:49:35 PM

JobScheduleBean as a testcase for refactored tree building with DataTree, UOFactory und ConcreteUserObjectItem.
Helper methods added to Client.

File size: 6.5 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<jsp:root version="1.2"
3 xmlns:jsp="http://java.sun.com/JSP/Page"
4 xmlns:f="http://java.sun.com/jsf/core"
5 xmlns:h="http://java.sun.com/jsf/html"
6 xmlns:ice="http://www.icesoft.com/icefaces/component">
7<jsp:directive.page contentType="text/html;charset=utf-8" />
8<f:view>
9 <ice:outputDeclaration doctypeRoot="HTML" doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN" doctypeSystem="http://www.w3.org/TR/html4/loose.dtd"/>
10 <html>
11 <head>
12 <title>Van Helsing</title>
13 <ice:outputStyle href="./xmlhttp/css/rime/rime.css" />
14 <ice:outputStyle href="./css/tree.css" />
15
16 </head>
17 <body>
18 <ice:outputText style="color:grey; font-size:32px" value="Van Helsing"/>
19 <ice:form>
20
21 <ice:panelTabSet>
22 <ice:panelTab label="Configuration">
23 <ice:panelGroup style="float:top">
24 <ice:commandButton id="newRes"
25 value="create resource"
26 actionListener="#{configurationBean.newResourceButtonListener}"/>
27 <ice:commandButton id="reloadRes"
28 value="reload Tree"
29 actionListener="#{configurationBean.reloadResourceButtonListener}" />
30 <ice:commandButton id="saveRes"
31 value="update resource"
32 actionListener="#{configurationBean.saveButtonListener}"/>
33 <ice:commandButton id="deleteRes"
34 value="delete resource"
35 actionListener="#{configurationBean.deleteResourceButtonListener}" />
36 </ice:panelGroup>
37
38 <ice:panelDivider style="height:600px;width:85%" dividerPosition="30">
39 <f:facet name="first">
40 <ice:tree id="baum"
41 value="#{configurationBean.tree}"
42 var="item"
43 hideRootNode = "false"
44 hideNavigation ="false"
45 imageDir = "css/images/">
46
47 <ice:treeNode id="knoten">
48 <f:facet name="icon">
49 <ice:panelGroup style="display: inline" >
50 <ice:graphicImage
51 value="/css/images/#{item.userObject.icon}"/>
52 </ice:panelGroup>
53 </f:facet>
54 <f:facet name="content">
55 <ice:panelGroup styleClass="selectedNode#{item.userObject.userObject.resId eq configurationBean.selectedId} selectedComponent#{item.userObject.selected}"
56 style="display:inline" >
57
58 <ice:commandLink actionListener="#{configurationBean.userObjectItemNodeSelected}">
59 <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
60 <ice:outputText id="knoten" value="#{item.userObject.userObject.value}"/>
61 </ice:commandLink>
62 </ice:panelGroup>
63 </f:facet>
64 </ice:treeNode>
65 </ice:tree>
66 </f:facet>
67 <f:facet name="second">
68 <ice:panelGrid cellpadding="0" cellspacing="3"
69 columns="2" rendered="#{configurationBean.selectedObject != null}">
70 <ice:dataTable
71 var="item"
72 value="#{configurationBean.selectedObject}"
73 style="float:left,bottom; width:90%"
74 >
75 <ice:column>
76 <f:facet name="header">
77 <ice:outputText value="Key" />
78 </f:facet>
79 <ice:outputText style="color:red" rendered="#{item.required eq true}" value="#{item.key}" />
80 <ice:outputText style="color:green" rendered="#{item.required eq false}" value="#{item.key}" />
81 </ice:column>
82 <ice:column>
83 <f:facet name="header">
84 <ice:outputText value="Value" />
85 </f:facet>
86 <ice:inputText required="#{item.required eq true}" rendered="#{item.inputText != null}" partialSubmit="true" value="#{item.keyValue}" />
87 <ice:panelGroup>
88 <ice:selectOneMenu id="KeyValue"
89 rendered="#{item.selectOneMenu != null}"
90 valueChangeListener="#{configurationBean.userObjectItemOptionSelected}"
91 value="#{item.keyValue}"
92 partialSubmit="true">
93 <f:selectItems id="KeyValueItems"
94 value="#{item.keyValueList}"/>
95 </ice:selectOneMenu>
96 <ice:commandButton id="newRes"
97 value="+"
98 rendered="#{item.selectOneMenu != null}"
99 actionListener="#{configurationBean.newResourceButtonListener}"/>
100 </ice:panelGroup>
101 </ice:column>
102 </ice:dataTable>
103 </ice:panelGrid>
104 </f:facet>
105 </ice:panelDivider>
106 </ice:panelTab>
107
108 <ice:panelTab label="Job / Schedule">
109 <ice:commandButton id="createNode"
110 value="create"
111 actionListener="#{jobScheduleBean.createNodeListener}" />
112
113 <ice:commandButton id="updateNode"
114 value="update"
115 actionListener="#{jobScheduleBean.updateNodeListener}" />
116
117 <ice:commandButton id="deleteNode"
118 value="delete"
119 actionListener="#{jobScheduleBean.deleteNodeListener}" />
120
121 <ice:commandButton id="reloadTree"
122 value="reloadTree"
123 actionListener="#{jobScheduleBean.reloadTreeListener}" />
124
125 <ice:panelDivider style="height:600px;width:85%" dividerPosition="30">
126 <f:facet name="first">
127 <ice:tree id="baum2"
128 value="#{jobScheduleBean.dataTree.tree}"
129 var="item"
130 hideRootNode = "false"
131 hideNavigation ="false"
132 imageDir = "css/images/">
133 <ice:treeNode id="knoten">
134 <f:facet name="icon">
135 <ice:panelGroup style="display: inline" >
136 <ice:graphicImage
137 value="/css/images/#{item.userObject.icon}"/>
138 </ice:panelGroup>
139 </f:facet>
140 <f:facet name="content">
141 <ice:commandLink actionListener="#{jobScheduleBean.selectNode}">
142 <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
143 <ice:outputText id="knoten" value="#{item.userObject.userObject.resName}"/>
144 </ice:commandLink>
145 </f:facet>
146 </ice:treeNode>
147 </ice:tree>
148 </f:facet>
149 <f:facet name="second">
150
151 </f:facet>
152 </ice:panelDivider>
153 </ice:panelTab>
154
155 <ice:panelTab label="Topology">
156 </ice:panelTab>
157
158 <ice:panelTab label="Dependencies">
159 </ice:panelTab>
160 </ice:panelTabSet>
161
162 </ice:form>
163 <ice:form>
164 <ice:messages />
165 </ice:form>
166 </body>
167 </html>
168</f:view>
169</jsp:root>
Note: See TracBrowser for help on using the repository browser.