<?xml version="1.0" encoding="utf-8" ?>
<jsp:root version="1.2" 
    xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
	
    <jsp:directive.page contentType="text/html;charset=utf-8" />

<f:view>
    <ice:outputDeclaration doctypeRoot="HTML"
			doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
			doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
    <html>
	    <head>
		   <title>vanHelsing GUI</title>
		</head>

		<body>
		
		<ice:panelGroup style="float:left; width:20%; background-color=blue">
		    <ice:form>
		    	<ice:tree id="baum"	
		    			value="#{configurationBean.tree}" 
		    			var="item"
		    			hideRootNode = "false"
		    			hideNavigation ="false">
		    				
		    		<ice:treeNode id="knoten">
		    			<f:facet name="icon">
		    			</f:facet>
		    			<f:facet name="content">
		    			<ice:commandLink actionListener="#{configurationBean.userObjectItemNodeSelected}">
		    				<f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
		    			    <ice:outputText id="knoten" value="#{item.userObject.userObject.value}"/>
		    			</ice:commandLink>
		    			</f:facet>
		    		</ice:treeNode>
		    	</ice:tree>
		    </ice:form>
		</ice:panelGroup>
		<ice:panelGroup style="margin: 0; padding: 0;width:350px;" >
			<ice:panelGrid cellpadding="0" cellspacing="3" 
				columns="2" rendered="#{configurationBean.selectedObject != null}">
				<ice:dataTable
				        var="item"
				         value="#{configurationBean.selectedObject}"
				         >
				        <ice:column>
				                <f:facet name="header">
				                         <ice:outputText value="Key" />
				                 </f:facet>
				                <ice:outputText value="#{item.key}" />
				        </ice:column>
				        <ice:column>
				                <f:facet name="header">
				                         <ice:outputText value="Value" />
				                </f:facet>
				                <ice:outputText value="#{item.keyValue}" />
				        </ice:column>
				</ice:dataTable>				
			</ice:panelGrid>		
		</ice:panelGroup>
	    <ice:form>
		    <ice:messages/>     
	    </ice:form>
		</body>
    </html>
</f:view>
</jsp:root>