source: vanHelsing/trunk/gui/WebContent/viewConfig.jspx@ 854

Last change on this file since 854 was 854, checked in by tobias, on Mar 26, 2010 at 6:01:33 PM

some beautification regarding the tree view

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
8 <jsp:directive.page contentType="text/html;charset=utf-8" />
9
10<f:view>
11 <ice:outputDeclaration doctypeRoot="HTML"
12 doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
13 doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
14 <html>
15 <head>
16 <title>vanHelsing GUI</title>
17 <!-- <link rel="stylesheet" type="text/css" href="css/treeComponents.css"/> -->
18 <link rel="stylesheet" type="text/css" href="css/showcase_style.css" />
19 <link rel="stylesheet" type="text/css" href="css/showcase_overrides.css"/>
20 <link rel="stylesheet" type="text/css" href="css/showcase_layout.css"/>
21 <link rel="stylesheet" type="text/css" href="css/rime.css" />
22
23
24 </head>
25
26 <body>
27 <h1 style="color:grey">van Helsing GUI</h1>
28 <ice:panelDivider dividerPosition="45" style="float:left;height: 85%">
29 <f:facet name="first">
30 <ice:panelGroup style="exampleBox;float:left;width:350px">
31 <ice:form>
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 </ice:form>
59 </ice:panelGroup>
60 </f:facet>
61 <f:facet name="second">
62
63 <ice:panelGroup style="float:left;margin: 0; padding: 0" >
64 <ice:panelGrid cellpadding="0" cellspacing="3"
65 columns="2" rendered="#{configurationBean.selectedObject != null}">
66 <ice:form>
67 <ice:dataTable
68 var="item"
69 value="#{configurationBean.selectedObject}"
70 >
71 <ice:column>
72 <f:facet name="header">
73 <ice:outputText value="Key" />
74 </f:facet>
75 <ice:outputText value="#{item.key}" />
76 </ice:column>
77 <ice:column>
78 <f:facet name="header">
79 <ice:outputText value="Value" />
80 </f:facet>
81 <ice:inputText partialSubmit="true" value="#{item.keyValue}" />
82 </ice:column>
83
84 </ice:dataTable>
85 <ice:panelGroup>
86 <ice:commandButton id="saveRes"
87 value="Speichern"
88 actionListener="#{configurationBean.saveButtonListener}"/>
89 </ice:panelGroup>
90 <ice:panelGroup rendered="#{configurationBean.selectedObject != null}">
91 <ice:commandButton id="newRes"
92 value="Neu"
93 actionListener="#{configurationBean.newResourceButtonListener}"/>
94 </ice:panelGroup>
95 </ice:form>
96 </ice:panelGrid>
97 </ice:panelGroup>
98 </f:facet>
99 </ice:panelDivider>
100 <ice:panelDivider style="float:left; width:450px; height:85%">
101 <f:facet name="first"></f:facet>
102 <f:facet name="second">blub</f:facet>
103 </ice:panelDivider>
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.