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 | <ice:panelGroup style="float:top">
|
---|
21 | <ice:commandButton id="newRes"
|
---|
22 | value="create resource"
|
---|
23 | actionListener="#{configurationBean.newResourceButtonListener}"/>
|
---|
24 | <ice:commandButton id="reloadRes"
|
---|
25 | value="reload Tree"
|
---|
26 | actionListener="#{configurationBean.reloadResourceButtonListener}" />
|
---|
27 | <ice:commandButton id="saveRes"
|
---|
28 | value="update resource"
|
---|
29 | actionListener="#{configurationBean.saveButtonListener}"/>
|
---|
30 | <ice:commandButton id="deleteRes"
|
---|
31 | value="delete resource"
|
---|
32 | actionListener="#{configurationBean.deleteResourceButtonListener}" />
|
---|
33 | </ice:panelGroup>
|
---|
34 |
|
---|
35 | <ice:panelTabSet>
|
---|
36 | <ice:panelTab label="Configuration">
|
---|
37 | <ice:panelDivider style="height:600px;width:85%" dividerPosition="30">
|
---|
38 | <f:facet name="first">
|
---|
39 | <ice:tree id="baum"
|
---|
40 | value="#{configurationBean.tree}"
|
---|
41 | var="item"
|
---|
42 | hideRootNode = "false"
|
---|
43 | hideNavigation ="false"
|
---|
44 | imageDir = "css/images/">
|
---|
45 |
|
---|
46 | <ice:treeNode id="knoten">
|
---|
47 | <f:facet name="icon">
|
---|
48 | <ice:panelGroup style="display: inline" >
|
---|
49 | <ice:graphicImage
|
---|
50 | value="/css/images/#{item.userObject.icon}"/>
|
---|
51 | </ice:panelGroup>
|
---|
52 | </f:facet>
|
---|
53 | <f:facet name="content">
|
---|
54 | <ice:panelGroup styleClass="selectedNode#{item.userObject.userObject.resId eq configurationBean.selectedId} selectedComponent#{item.userObject.selected}"
|
---|
55 | style="display:inline" >
|
---|
56 |
|
---|
57 | <ice:commandLink actionListener="#{configurationBean.userObjectItemNodeSelected}">
|
---|
58 | <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
|
---|
59 | <ice:outputText id="knoten" value="#{item.userObject.userObject.value}"/>
|
---|
60 | </ice:commandLink>
|
---|
61 | </ice:panelGroup>
|
---|
62 | </f:facet>
|
---|
63 | </ice:treeNode>
|
---|
64 | </ice:tree>
|
---|
65 | </f:facet>
|
---|
66 | <f:facet name="second">
|
---|
67 | <ice:panelGrid cellpadding="0" cellspacing="3"
|
---|
68 | columns="2" rendered="#{configurationBean.selectedObject != null}">
|
---|
69 | <ice:dataTable
|
---|
70 | var="item"
|
---|
71 | value="#{configurationBean.selectedObject}"
|
---|
72 | style="float:left,bottom; width:90%"
|
---|
73 | >
|
---|
74 | <ice:column>
|
---|
75 | <f:facet name="header">
|
---|
76 | <ice:outputText value="Key" />
|
---|
77 | </f:facet>
|
---|
78 | <ice:outputText style="color:red" rendered="#{item.required eq true}" value="#{item.key}" />
|
---|
79 | <ice:outputText style="color:green" rendered="#{item.required eq false}" value="#{item.key}" />
|
---|
80 | </ice:column>
|
---|
81 | <ice:column>
|
---|
82 | <f:facet name="header">
|
---|
83 | <ice:outputText value="Value" />
|
---|
84 | </f:facet>
|
---|
85 | <ice:inputText required="#{item.required eq true}" rendered="#{item.inputText != null}" partialSubmit="true" value="#{item.keyValue}" />
|
---|
86 | <ice:panelGroup>
|
---|
87 | <ice:selectOneMenu id="KeyValue"
|
---|
88 | rendered="#{item.selectOneMenu != null}"
|
---|
89 | valueChangeListener="#{configurationBean.userObjectItemOptionSelected}"
|
---|
90 | value="#{item.keyValue}"
|
---|
91 | partialSubmit="true">
|
---|
92 | <f:selectItems id="KeyValueItems"
|
---|
93 | value="#{item.keyValueList}"/>
|
---|
94 | </ice:selectOneMenu>
|
---|
95 | <ice:commandButton id="newRes"
|
---|
96 | value="+"
|
---|
97 | rendered="#{item.selectOneMenu != null}"
|
---|
98 | actionListener="#{configurationBean.newResourceButtonListener}"/>
|
---|
99 | </ice:panelGroup>
|
---|
100 | </ice:column>
|
---|
101 | </ice:dataTable>
|
---|
102 | </ice:panelGrid>
|
---|
103 | </f:facet>
|
---|
104 | </ice:panelDivider>
|
---|
105 | </ice:panelTab>
|
---|
106 |
|
---|
107 | <ice:panelTab label="Job / Schedule">
|
---|
108 | </ice:panelTab>
|
---|
109 |
|
---|
110 | <ice:panelTab label="Topology">
|
---|
111 | </ice:panelTab>
|
---|
112 |
|
---|
113 | <ice:panelTab label="Dependencies">
|
---|
114 | </ice:panelTab>
|
---|
115 | </ice:panelTabSet>
|
---|
116 |
|
---|
117 | </ice:form>
|
---|
118 | <ice:form>
|
---|
119 | <ice:messages />
|
---|
120 | </ice:form>
|
---|
121 | </body>
|
---|
122 | </html>
|
---|
123 | </f:view>
|
---|
124 | </jsp:root> |
---|