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

Last change on this file since 857 was 857, checked in by tobias, on Apr 1, 2010 at 7:02:55 PM

type dependent rendering added

File size: 4.0 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
15 </head>
16 <body>
17 <ice:outputText style="color:grey; font-size:32px" value="Van Helsing"/>
18 <ice:form>
19 <ice:panelGroup style="float:top">
20 <ice:commandButton id="saveRes"
21 value="update resource"
22 actionListener="#{configurationBean.saveButtonListener}"/>
23 <ice:commandButton id="newRes"
24 value="create resource"
25 actionListener="#{configurationBean.newResourceButtonListener}"/>
26 </ice:panelGroup>
27
28 <ice:panelTabSet>
29 <ice:panelTab label="Configuration">
30 <ice:panelDivider style="height:600px;width:85%" dividerPosition="30">
31 <f:facet name="first">
32 <ice:tree id="baum"
33 value="#{configurationBean.tree}"
34 var="item"
35 hideRootNode = "false"
36 hideNavigation ="false"
37 imageDir = "css/images/">
38
39 <ice:treeNode id="knoten">
40 <f:facet name="icon">
41 <ice:panelGroup style="display: inline" >
42 <ice:graphicImage
43 value="/css/images/#{item.userObject.icon}"/>
44 </ice:panelGroup>
45 </f:facet>
46 <f:facet name="content">
47 <!-- <ice:panelGroup> -->
48 <!-- styleClass="selectedNode#{item.userObject eq treeController.selectedUserObject}"
49 style="display: inline" > -->
50 <ice:commandLink actionListener="#{configurationBean.userObjectItemNodeSelected}">
51 <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
52 <ice:outputText id="knoten" value="#{item.userObject.userObject.value}"/>
53 </ice:commandLink>
54 <!-- </ice:panelGroup> -->
55 </f:facet>
56 </ice:treeNode>
57 </ice:tree>
58 </f:facet>
59 <f:facet name="second">
60 <ice:panelGrid cellpadding="0" cellspacing="3"
61 columns="2" rendered="#{configurationBean.selectedObject != null}">
62 <ice:dataTable
63 var="item"
64 value="#{configurationBean.selectedObject}"
65 style="float:left,bottom; width:90%"
66 >
67 <ice:column>
68 <f:facet name="header">
69 <ice:outputText value="Key" />
70 </f:facet>
71 <ice:outputText value="#{item.key}" />
72 </ice:column>
73 <ice:column>
74 <f:facet name="header">
75 <ice:outputText value="Value" />
76 </f:facet>
77 <ice:inputText rendered="#{item.inputText != null}" partialSubmit="true" value="#{item.keyValue}" />
78 <ice:selectOneMenu id="KeyValue"
79 rendered="#{item.selectOneMenu != null}"
80 valueChangeListener="#{configurationBean.userObjectItemOptionSelected}"
81 value="#{item.keyValue}"
82 partialSubmit="true">
83 <f:selectItems id="KeyValueItems"
84 value="#{item.keyValueList}"/>
85 </ice:selectOneMenu>
86 </ice:column>
87 </ice:dataTable>
88 </ice:panelGrid>
89 </f:facet>
90 </ice:panelDivider>
91 </ice:panelTab>
92
93 <ice:panelTab label="Job / Schedule">
94 </ice:panelTab>
95
96 <ice:panelTab label="Topology">
97 </ice:panelTab>
98
99 <ice:panelTab label="Dependencies">
100 </ice:panelTab>
101 </ice:panelTabSet>
102
103 </ice:form>
104 <ice:form>
105 <ice:messages />
106 </ice:form>
107 </body>
108 </html>
109</f:view>
110</jsp:root>
Note: See TracBrowser for help on using the repository browser.