| 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><ice:outputText value="ICEfaces, Ajax for Java EE" /></title>
|
|---|
| 13 | <ice:outputStyle href="./xmlhttp/css/rime/rime.css" />
|
|---|
| 14 | </head>
|
|---|
| 15 | <body>
|
|---|
| 16 |
|
|---|
| 17 | <ice:outputText value="Thank you for using ICEfaces." />
|
|---|
| 18 | tree.jspx
|
|---|
| 19 | // MPL License text (see http://www.mozilla.org/MPL/)
|
|---|
| 20 |
|
|---|
| 21 | <ice:panelGroup styleClass="componentBox"
|
|---|
| 22 | xmlns:h="http://java.sun.com/jsf/html"
|
|---|
| 23 | xmlns:f="http://java.sun.com/jsf/core"
|
|---|
| 24 | xmlns:ice="http://www.icesoft.com/icefaces/component">
|
|---|
| 25 |
|
|---|
| 26 | <ice:panelGroup styleClass="synopsisBox">
|
|---|
| 27 | <ice:outputText value="#{msgs['page.tree.synopsis']}"/>
|
|---|
| 28 | <ice:outputText value="#{msgs['page.tree.explanation']}"/>
|
|---|
| 29 | </ice:panelGroup>
|
|---|
| 30 |
|
|---|
| 31 | <ice:panelGroup styleClass="exampleBox">
|
|---|
| 32 | <ice:tree id="tree"
|
|---|
| 33 | value="#{treeController.model}"
|
|---|
| 34 | var="node"
|
|---|
| 35 | hideRootNode="false"
|
|---|
| 36 | hideNavigation="false"
|
|---|
| 37 | imageDir="#{styleBean.imageDirectory}">
|
|---|
| 38 | <ice:treeNode>
|
|---|
| 39 | <f:facet name="icon">
|
|---|
| 40 | <ice:panelGroup
|
|---|
| 41 | style="display: inline" >
|
|---|
| 42 | <ice:graphicImage
|
|---|
| 43 | value="/xmlhttp/css/#{styleBean.currentStyle}/css-images/#{node.userObject.icon}"/>
|
|---|
| 44 | </ice:panelGroup>
|
|---|
| 45 | </f:facet>
|
|---|
| 46 | <f:facet name="content">
|
|---|
| 47 | <ice:panelGroup
|
|---|
| 48 | styleClass="selectedNode#{node.userObject eq treeController.selectedUserObject}"
|
|---|
| 49 | style="display: inline" >
|
|---|
| 50 | <ice:commandLink
|
|---|
| 51 | actionListener="#{treeController.employeeNodeSelected}">
|
|---|
| 52 | <f:param name="employeeId" value="#{node.userObject.employee.id}" />
|
|---|
| 53 | <ice:outputText id="TreeNode"
|
|---|
| 54 | value="#{node.userObject.text}"/>
|
|---|
| 55 | </ice:commandLink>
|
|---|
| 56 | </ice:panelGroup>
|
|---|
| 57 | </f:facet>
|
|---|
| 58 | </ice:treeNode>
|
|---|
| 59 | </ice:tree>
|
|---|
| 60 | <br/>
|
|---|
| 61 | <ice:commandButton id="moveUp"
|
|---|
| 62 | value="#{msgs['page.tree.move.up.label']}"
|
|---|
| 63 | disabled="#{treeController.moveUpDisabled}"
|
|---|
| 64 | actionListener="#{treeController.moveUp}"/>
|
|---|
| 65 | <ice:commandButton id="moveDown"
|
|---|
| 66 | value="#{msgs['page.tree.move.down.label']}"
|
|---|
| 67 | disabled="#{treeController.moveDownDisabled}"
|
|---|
| 68 | actionListener="#{treeController.moveDown}"/>
|
|---|
| 69 | </ice:panelGroup>
|
|---|
| 70 |
|
|---|
| 71 | <!-- Server-side values-->
|
|---|
| 72 | <ice:panelGroup
|
|---|
| 73 | styleClass="exampleBox firstChildTitle backBeanChangeContainer">
|
|---|
| 74 |
|
|---|
| 75 | <!-- backing bean title box -->
|
|---|
| 76 | <ice:panelGroup styleClass="backBeanChangeTitle" style="width:350px;">
|
|---|
| 77 | <ice:outputText value="#{msgs['page.global.serverFeedback']}"/>
|
|---|
| 78 | </ice:panelGroup>
|
|---|
| 79 |
|
|---|
| 80 | <!-- actual backing bean values. -->
|
|---|
| 81 | <ice:panelGroup styleClass="backBeanChangeBody"
|
|---|
| 82 | effect="#{treeController.valueChangeEffect}">
|
|---|
| 83 | <ice:panelGroup style="margin: 0; padding: 0;width:350px;">
|
|---|
| 84 | <ice:panelGrid cellpadding="0" cellspacing="3" columns="2"
|
|---|
| 85 | rendered="#{treeController.selectedUserObject.employee != null}">
|
|---|
| 86 |
|
|---|
| 87 | <ice:outputLabel value="#{msgs['page.tree.path.label']}"/>
|
|---|
| 88 | <ice:panelSeries id="icePnlSrs"
|
|---|
| 89 | value="#{treeController.selectedTreePath}"
|
|---|
| 90 | var="treePath">
|
|---|
| 91 | <ice:graphicImage
|
|---|
| 92 | width="11" height="8"
|
|---|
| 93 | style="margin-left:3px;margin-right:3px;"
|
|---|
| 94 | value="/xmlhttp/css/rime/css-images/bullet.gif" />
|
|---|
| 95 | <ice:outputText id="treePath" value="#{treePath}"/>
|
|---|
| 96 | </ice:panelSeries>
|
|---|
| 97 |
|
|---|
| 98 | <ice:outputLabel value="#{msgs['page.tree.employee.id.label']}"/>
|
|---|
| 99 | <ice:outputText id="employeeID"
|
|---|
| 100 | value="#{treeController.selectedUserObject.employee.id}"/>
|
|---|
| 101 |
|
|---|
| 102 | <ice:outputLabel value="#{msgs['page.tree.employee.name.label']}"/>
|
|---|
| 103 | <ice:outputText id="employeeName"
|
|---|
| 104 | value="#{treeController.selectedUserObject.employee.firstName} #{treeController.selectedUserObject.employee.lastName}"/>
|
|---|
| 105 |
|
|---|
| 106 | <ice:outputLabel value="#{msgs['page.tree.employee.phone.label']}"/>
|
|---|
| 107 | <ice:outputText id="employeePhone"
|
|---|
| 108 | value="#{treeController.selectedUserObject.employee.phone}"/>
|
|---|
| 109 | </ice:panelGrid>
|
|---|
| 110 | </ice:panelGroup>
|
|---|
| 111 | </ice:panelGroup>
|
|---|
| 112 | </ice:panelGroup>
|
|---|
| 113 |
|
|---|
| 114 | </ice:panelGroup>
|
|---|
| 115 |
|
|---|
| 116 | <ice:form>
|
|---|
| 117 | <ice:messages />
|
|---|
| 118 |
|
|---|
| 119 | </ice:form>
|
|---|
| 120 |
|
|---|
| 121 | </body>
|
|---|
| 122 | </html>
|
|---|
| 123 | </f:view>
|
|---|
| 124 | </jsp:root> |
|---|