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
RevLine 
[830]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>
[832]16 <title>vanHelsing GUI</title>
[854]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
[830]24 </head>
[832]25
[830]26 <body>
[854]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">
[830]31 <ice:form>
[832]32 <ice:tree id="baum"
33 value="#{configurationBean.tree}"
34 var="item"
35 hideRootNode = "false"
[854]36 hideNavigation ="false"
37 imageDir = "css/images/">
[832]38
39 <ice:treeNode id="knoten">
[848]40 <f:facet name="icon">
[854]41 <ice:panelGroup style="display: inline" >
42 <ice:graphicImage
43 value="/css/images/#{item.userObject.icon}"/>
44 </ice:panelGroup>
[848]45 </f:facet>
[832]46 <f:facet name="content">
[854]47 <!-- <ice:panelGroup> -->
48 <!-- styleClass="selectedNode#{item.userObject eq treeController.selectedUserObject}"
49 style="display: inline" > -->
50 <ice:commandLink actionListener="#{configurationBean.userObjectItemNodeSelected}">
[848]51 <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
[844]52 <ice:outputText id="knoten" value="#{item.userObject.userObject.value}"/>
[848]53 </ice:commandLink>
[854]54 <!-- </ice:panelGroup> -->
[832]55 </f:facet>
56 </ice:treeNode>
57 </ice:tree>
[830]58 </ice:form>
[832]59 </ice:panelGroup>
[854]60 </f:facet>
61 <f:facet name="second">
62
63 <ice:panelGroup style="float:left;margin: 0; padding: 0" >
[849]64 <ice:panelGrid cellpadding="0" cellspacing="3"
65 columns="2" rendered="#{configurationBean.selectedObject != null}">
[854]66 <ice:form>
[849]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>
[854]81 <ice:inputText partialSubmit="true" value="#{item.keyValue}" />
[849]82 </ice:column>
[854]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>
[849]96 </ice:panelGrid>
97 </ice:panelGroup>
[854]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>
[832]104 <ice:form>
105 <ice:messages/>
106 </ice:form>
[830]107 </body>
108 </html>
109</f:view>
110</jsp:root>
Note: See TracBrowser for help on using the repository browser.