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

Last change on this file since 864 was 864, checked in by tobias, on Apr 16, 2010 at 5:55:54 PM

javadoc added

File size: 6.8 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.newResourceListener}"/>
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" actionListener="#{jobScheduleBean.deleteNodeListener}">
119 <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
120 <f:param name="userObject.resName" value="#{item.userObject.userObject.resName}" />
121 </ice:commandButton>
122 <ice:commandButton id="reloadTree"
123 value="reloadTree"
124 actionListener="#{jobScheduleBean.reloadTreeListener}" />
125
126 <ice:panelDivider style="height:600px;width:85%" dividerPosition="30">
127 <f:facet name="first">
128 <ice:tree id="baum2"
129 value="#{jobScheduleBean.dataTree.tree}"
130 var="item"
131 hideRootNode = "false"
132 hideNavigation ="false"
133 imageDir = "css/images/">
134 <ice:treeNode id="knoten">
135 <f:facet name="icon">
136 <ice:panelGroup style="display: inline" >
137 <ice:graphicImage
138 value="/css/images/#{item.userObject.icon}"/>
139 </ice:panelGroup>
140 </f:facet>
141 <f:facet name="content">
142 <ice:commandLink actionListener="#{jobScheduleBean.selectNode}">
143 <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
144 <f:param name="userObject.resName" value="#{item.userObject.userObject.resName}" />
145 <ice:outputText id="knoten" value="#{item.userObject.userObject.resName}" />
146 </ice:commandLink>
147 </f:facet>
148 </ice:treeNode>
149 </ice:tree>
150 </f:facet>
151 <f:facet name="second">
152
153 </f:facet>
154 </ice:panelDivider>
155 </ice:panelTab>
156
157 <ice:panelTab label="Topology">
158 </ice:panelTab>
159
160 <ice:panelTab label="Dependencies">
161 </ice:panelTab>
162 </ice:panelTabSet>
163
164 </ice:form>
165 <ice:form>
166 <ice:messages />
167 </ice:form>
168 </body>
169 </html>
170</f:view>
171</jsp:root>
Note: See TracBrowser for help on using the repository browser.