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

Last change on this file since 875 was 872, checked in by tobias, on May 17, 2010 at 4:33:53 PM

created an include out of the simple resource table rendering component

File size: 5.2 KB
RevLine 
[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
[868]24 <ice:panelDivider style="height:600px;width:95%" dividerPosition="30">
[856]25 <f:facet name="first">
26 <ice:tree id="baum"
[868]27 value="#{configurationBean.dataTree.tree}"
[856]28 var="item"
29 hideRootNode = "false"
30 hideNavigation ="false"
31 imageDir = "css/images/">
32
33 <ice:treeNode id="knoten">
34 <f:facet name="icon">
35 <ice:panelGroup style="display: inline" >
36 <ice:graphicImage
37 value="/css/images/#{item.userObject.icon}"/>
38 </ice:panelGroup>
39 </f:facet>
40 <f:facet name="content">
[868]41 <!--<ice:panelGroup styleClass="selectedNode#{item.userObject.userObject.resId eq configurationBean.selectedId} selectedComponent#{item.userObject.selected}"
42 style="display:inline" > -->
[858]43
[868]44 <ice:commandLink actionListener="#{configurationBean.renderResource}">
[856]45 <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
[868]46 <f:param name="userObject.resName" value="#{item.userObject.userObject.resName}" />
47 <ice:outputText id="knoten" value="#{item.userObject.userObject.resName}"/>
[867]48 </ice:commandLink>
[868]49 <!--</ice:panelGroup> -->
[856]50 </f:facet>
51 </ice:treeNode>
52 </ice:tree>
53 </f:facet>
54 <f:facet name="second">
[872]55 <f:subview id="selectedResource" >
56 <jsp:directive.include file="/selectedResource.jspx" />
57 </f:subview>
[856]58 </f:facet>
59 </ice:panelDivider>
[872]60
[868]61 <ice:panelGroup style="float:top">
62 <ice:commandButton id="newClient"
63 value="create client"
64 actionListener="#{configurationBean.newClientButtonListener}" />
65
66 <ice:commandButton id="reloadRes"
67 value="reload Tree"
68 actionListener="#{configurationBean.reloadResourceButtonListener}" />
69
70 <ice:commandButton id="saveRes"
71 value="update resource"
72 actionListener="#{configurationBean.saveButtonListener}"/>
73
74 <ice:commandButton id="deleteRes"
75 value="delete resource"
76 actionListener="#{configurationBean.deleteResourceButtonListener}" />
[872]77 </ice:panelGroup>
[868]78
[856]79 </ice:panelTab>
80
81 <ice:panelTab label="Job / Schedule">
[862]82 <ice:commandButton id="createNode"
83 value="create"
84 actionListener="#{jobScheduleBean.createNodeListener}" />
85
86 <ice:commandButton id="updateNode"
87 value="update"
88 actionListener="#{jobScheduleBean.updateNodeListener}" />
89
90 <ice:commandButton id="deleteNode"
[864]91 value="delete" actionListener="#{jobScheduleBean.deleteNodeListener}">
92 <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
93 <f:param name="userObject.resName" value="#{item.userObject.userObject.resName}" />
94 </ice:commandButton>
[862]95 <ice:commandButton id="reloadTree"
96 value="reloadTree"
97 actionListener="#{jobScheduleBean.reloadTreeListener}" />
98
99 <ice:panelDivider style="height:600px;width:85%" dividerPosition="30">
100 <f:facet name="first">
101 <ice:tree id="baum2"
102 value="#{jobScheduleBean.dataTree.tree}"
103 var="item"
104 hideRootNode = "false"
105 hideNavigation ="false"
106 imageDir = "css/images/">
107 <ice:treeNode id="knoten">
108 <f:facet name="icon">
109 <ice:panelGroup style="display: inline" >
110 <ice:graphicImage
111 value="/css/images/#{item.userObject.icon}"/>
112 </ice:panelGroup>
113 </f:facet>
114 <f:facet name="content">
115 <ice:commandLink actionListener="#{jobScheduleBean.selectNode}">
116 <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
[864]117 <f:param name="userObject.resName" value="#{item.userObject.userObject.resName}" />
118 <ice:outputText id="knoten" value="#{item.userObject.userObject.resName}" />
119 </ice:commandLink>
[862]120 </f:facet>
121 </ice:treeNode>
122 </ice:tree>
123 </f:facet>
124 <f:facet name="second">
125 </f:facet>
126 </ice:panelDivider>
[856]127 </ice:panelTab>
128
129 <ice:panelTab label="Topology">
130 </ice:panelTab>
131
132 <ice:panelTab label="Dependencies">
133 </ice:panelTab>
134 </ice:panelTabSet>
135
136 </ice:form>
137 <ice:form>
138 <ice:messages />
139 </ice:form>
140 </body>
141 </html>
142</f:view>
143</jsp:root>
Note: See TracBrowser for help on using the repository browser.