[856] | 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" />
|
---|
[858] | 14 | <ice:outputStyle href="./css/tree.css" />
|
---|
[856] | 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">
|
---|
[862] | 23 | <ice:panelGroup style="float:top">
|
---|
[867] | 24 | <ice:commandButton id="newClient"
|
---|
| 25 | value="create client"
|
---|
| 26 | actionListener="#{configurationBean.newClientButtonListener}" />
|
---|
| 27 |
|
---|
[862] | 28 | <ice:commandButton id="newRes"
|
---|
| 29 | value="create resource"
|
---|
[867] | 30 | actionListener="#{configurationBean.newResourceButtonListener}">
|
---|
| 31 | </ice:commandButton>
|
---|
| 32 |
|
---|
[862] | 33 | <ice:commandButton id="reloadRes"
|
---|
| 34 | value="reload Tree"
|
---|
| 35 | actionListener="#{configurationBean.reloadResourceButtonListener}" />
|
---|
[867] | 36 |
|
---|
[862] | 37 | <ice:commandButton id="saveRes"
|
---|
| 38 | value="update resource"
|
---|
| 39 | actionListener="#{configurationBean.saveButtonListener}"/>
|
---|
[867] | 40 |
|
---|
[862] | 41 | <ice:commandButton id="deleteRes"
|
---|
| 42 | value="delete resource"
|
---|
| 43 | actionListener="#{configurationBean.deleteResourceButtonListener}" />
|
---|
| 44 | </ice:panelGroup>
|
---|
| 45 |
|
---|
[856] | 46 | <ice:panelDivider style="height:600px;width:85%" dividerPosition="30">
|
---|
| 47 | <f:facet name="first">
|
---|
| 48 | <ice:tree id="baum"
|
---|
| 49 | value="#{configurationBean.tree}"
|
---|
| 50 | var="item"
|
---|
| 51 | hideRootNode = "false"
|
---|
| 52 | hideNavigation ="false"
|
---|
| 53 | imageDir = "css/images/">
|
---|
| 54 |
|
---|
| 55 | <ice:treeNode id="knoten">
|
---|
| 56 | <f:facet name="icon">
|
---|
| 57 | <ice:panelGroup style="display: inline" >
|
---|
| 58 | <ice:graphicImage
|
---|
| 59 | value="/css/images/#{item.userObject.icon}"/>
|
---|
| 60 | </ice:panelGroup>
|
---|
| 61 | </f:facet>
|
---|
| 62 | <f:facet name="content">
|
---|
[858] | 63 | <ice:panelGroup styleClass="selectedNode#{item.userObject.userObject.resId eq configurationBean.selectedId} selectedComponent#{item.userObject.selected}"
|
---|
| 64 | style="display:inline" >
|
---|
| 65 |
|
---|
[856] | 66 | <ice:commandLink actionListener="#{configurationBean.userObjectItemNodeSelected}">
|
---|
| 67 | <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
|
---|
[867] | 68 | <f:param name="userObject.resName" value="#{item.userObject.userObject.value}" />
|
---|
| 69 | <ice:outputText id="knoten" value="#{item.userObject.userObject.value}"/>
|
---|
| 70 | </ice:commandLink>
|
---|
[858] | 71 | </ice:panelGroup>
|
---|
[856] | 72 | </f:facet>
|
---|
| 73 | </ice:treeNode>
|
---|
| 74 | </ice:tree>
|
---|
| 75 | </f:facet>
|
---|
| 76 | <f:facet name="second">
|
---|
| 77 | <ice:panelGrid cellpadding="0" cellspacing="3"
|
---|
| 78 | columns="2" rendered="#{configurationBean.selectedObject != null}">
|
---|
| 79 | <ice:dataTable
|
---|
| 80 | var="item"
|
---|
| 81 | value="#{configurationBean.selectedObject}"
|
---|
| 82 | style="float:left,bottom; width:90%"
|
---|
| 83 | >
|
---|
| 84 | <ice:column>
|
---|
| 85 | <f:facet name="header">
|
---|
| 86 | <ice:outputText value="Key" />
|
---|
| 87 | </f:facet>
|
---|
[858] | 88 | <ice:outputText style="color:red" rendered="#{item.required eq true}" value="#{item.key}" />
|
---|
| 89 | <ice:outputText style="color:green" rendered="#{item.required eq false}" value="#{item.key}" />
|
---|
[856] | 90 | </ice:column>
|
---|
| 91 | <ice:column>
|
---|
| 92 | <f:facet name="header">
|
---|
| 93 | <ice:outputText value="Value" />
|
---|
| 94 | </f:facet>
|
---|
[860] | 95 | <ice:inputText required="#{item.required eq true}" rendered="#{item.inputText != null}" partialSubmit="true" value="#{item.keyValue}" />
|
---|
[858] | 96 | <ice:panelGroup>
|
---|
| 97 | <ice:selectOneMenu id="KeyValue"
|
---|
| 98 | rendered="#{item.selectOneMenu != null}"
|
---|
| 99 | valueChangeListener="#{configurationBean.userObjectItemOptionSelected}"
|
---|
| 100 | value="#{item.keyValue}"
|
---|
| 101 | partialSubmit="true">
|
---|
| 102 | <f:selectItems id="KeyValueItems"
|
---|
| 103 | value="#{item.keyValueList}"/>
|
---|
| 104 | </ice:selectOneMenu>
|
---|
| 105 | <ice:commandButton id="newRes"
|
---|
| 106 | value="+"
|
---|
| 107 | rendered="#{item.selectOneMenu != null}"
|
---|
| 108 | actionListener="#{configurationBean.newResourceButtonListener}"/>
|
---|
| 109 | </ice:panelGroup>
|
---|
[856] | 110 | </ice:column>
|
---|
| 111 | </ice:dataTable>
|
---|
[867] | 112 | <ice:commandButton id="createResource"
|
---|
| 113 | value="save"
|
---|
| 114 | rendered="#{configurationBean.createResource eq true}"
|
---|
| 115 | actionListener="#{configurationBean.saveClientButtonListener}" />
|
---|
[856] | 116 | </ice:panelGrid>
|
---|
| 117 | </f:facet>
|
---|
| 118 | </ice:panelDivider>
|
---|
| 119 | </ice:panelTab>
|
---|
| 120 |
|
---|
| 121 | <ice:panelTab label="Job / Schedule">
|
---|
[862] | 122 | <ice:commandButton id="createNode"
|
---|
| 123 | value="create"
|
---|
| 124 | actionListener="#{jobScheduleBean.createNodeListener}" />
|
---|
| 125 |
|
---|
| 126 | <ice:commandButton id="updateNode"
|
---|
| 127 | value="update"
|
---|
| 128 | actionListener="#{jobScheduleBean.updateNodeListener}" />
|
---|
| 129 |
|
---|
| 130 | <ice:commandButton id="deleteNode"
|
---|
[864] | 131 | value="delete" actionListener="#{jobScheduleBean.deleteNodeListener}">
|
---|
| 132 | <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
|
---|
| 133 | <f:param name="userObject.resName" value="#{item.userObject.userObject.resName}" />
|
---|
| 134 | </ice:commandButton>
|
---|
[862] | 135 | <ice:commandButton id="reloadTree"
|
---|
| 136 | value="reloadTree"
|
---|
| 137 | actionListener="#{jobScheduleBean.reloadTreeListener}" />
|
---|
| 138 |
|
---|
| 139 | <ice:panelDivider style="height:600px;width:85%" dividerPosition="30">
|
---|
| 140 | <f:facet name="first">
|
---|
| 141 | <ice:tree id="baum2"
|
---|
| 142 | value="#{jobScheduleBean.dataTree.tree}"
|
---|
| 143 | var="item"
|
---|
| 144 | hideRootNode = "false"
|
---|
| 145 | hideNavigation ="false"
|
---|
| 146 | imageDir = "css/images/">
|
---|
| 147 | <ice:treeNode id="knoten">
|
---|
| 148 | <f:facet name="icon">
|
---|
| 149 | <ice:panelGroup style="display: inline" >
|
---|
| 150 | <ice:graphicImage
|
---|
| 151 | value="/css/images/#{item.userObject.icon}"/>
|
---|
| 152 | </ice:panelGroup>
|
---|
| 153 | </f:facet>
|
---|
| 154 | <f:facet name="content">
|
---|
| 155 | <ice:commandLink actionListener="#{jobScheduleBean.selectNode}">
|
---|
| 156 | <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
|
---|
[864] | 157 | <f:param name="userObject.resName" value="#{item.userObject.userObject.resName}" />
|
---|
| 158 | <ice:outputText id="knoten" value="#{item.userObject.userObject.resName}" />
|
---|
| 159 | </ice:commandLink>
|
---|
[862] | 160 | </f:facet>
|
---|
| 161 | </ice:treeNode>
|
---|
| 162 | </ice:tree>
|
---|
| 163 | </f:facet>
|
---|
| 164 | <f:facet name="second">
|
---|
| 165 |
|
---|
| 166 | </f:facet>
|
---|
| 167 | </ice:panelDivider>
|
---|
[856] | 168 | </ice:panelTab>
|
---|
| 169 |
|
---|
| 170 | <ice:panelTab label="Topology">
|
---|
| 171 | </ice:panelTab>
|
---|
| 172 |
|
---|
| 173 | <ice:panelTab label="Dependencies">
|
---|
| 174 | </ice:panelTab>
|
---|
| 175 | </ice:panelTabSet>
|
---|
| 176 |
|
---|
| 177 | </ice:form>
|
---|
| 178 | <ice:form>
|
---|
| 179 | <ice:messages />
|
---|
| 180 | </ice:form>
|
---|
| 181 | </body>
|
---|
| 182 | </html>
|
---|
| 183 | </f:view>
|
---|
| 184 | </jsp:root> |
---|