Ignore:
Timestamp:
Apr 15, 2010, 3:49:35 PM (14 years ago)
Author:
tobias
Message:

JobScheduleBean as a testcase for refactored tree building with DataTree, UOFactory und ConcreteUserObjectItem.
Helper methods added to Client.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vanHelsing/trunk/gui/WebContent/menu.jspx

    r860 r862  
    1818    <ice:outputText style="color:grey; font-size:32px" value="Van Helsing"/>
    1919    <ice:form>
    20     <ice:panelGroup style="float:top">
    21         <ice:commandButton id="newRes"
    22             value="create resource"
    23             actionListener="#{configurationBean.newResourceButtonListener}"/>
    24                 <ice:commandButton id="reloadRes"
    25                         value="reload Tree"
    26                         actionListener="#{configurationBean.reloadResourceButtonListener}" />
    27                 <ice:commandButton id="saveRes"
    28                 value="update resource"
    29                 actionListener="#{configurationBean.saveButtonListener}"/>
    30                 <ice:commandButton id="deleteRes"
    31                         value="delete resource"
    32                         actionListener="#{configurationBean.deleteResourceButtonListener}" />
    33         </ice:panelGroup>
    3420   
    3521        <ice:panelTabSet>
    3622                <ice:panelTab  label="Configuration">
     23                            <ice:panelGroup style="float:top">
     24                                <ice:commandButton id="newRes"
     25                                    value="create resource"
     26                                    actionListener="#{configurationBean.newResourceButtonListener}"/>
     27                                        <ice:commandButton id="reloadRes"
     28                                                value="reload Tree"
     29                                                actionListener="#{configurationBean.reloadResourceButtonListener}" />
     30                                        <ice:commandButton id="saveRes"
     31                                        value="update resource"
     32                                        actionListener="#{configurationBean.saveButtonListener}"/>
     33                                        <ice:commandButton id="deleteRes"
     34                                                value="delete resource"
     35                                                actionListener="#{configurationBean.deleteResourceButtonListener}" />
     36                                </ice:panelGroup>
     37               
    3738                        <ice:panelDivider style="height:600px;width:85%" dividerPosition="30">
    3839                        <f:facet name="first">
     
    106107         
    107108                <ice:panelTab label="Job / Schedule">
     109                        <ice:commandButton id="createNode"
     110                                value="create"
     111                                actionListener="#{jobScheduleBean.createNodeListener}" />
     112
     113                        <ice:commandButton id="updateNode"
     114                                value="update"
     115                                actionListener="#{jobScheduleBean.updateNodeListener}" />
     116
     117                        <ice:commandButton id="deleteNode"
     118                                value="delete"
     119                                actionListener="#{jobScheduleBean.deleteNodeListener}" />
     120                               
     121                        <ice:commandButton id="reloadTree"
     122                                value="reloadTree"
     123                                actionListener="#{jobScheduleBean.reloadTreeListener}" />
     124                       
     125                        <ice:panelDivider style="height:600px;width:85%" dividerPosition="30">
     126                                        <f:facet name="first">
     127                                <ice:tree id="baum2"   
     128                                        value="#{jobScheduleBean.dataTree.tree}"
     129                                        var="item"
     130                                        hideRootNode = "false"
     131                                        hideNavigation ="false"
     132                                        imageDir = "css/images/">
     133                                                        <ice:treeNode id="knoten">
     134                                                                <f:facet name="icon">
     135                                                                <ice:panelGroup style="display: inline" >
     136                                                    <ice:graphicImage
     137                                                         value="/css/images/#{item.userObject.icon}"/>
     138                                                        </ice:panelGroup>
     139                                                                </f:facet>
     140                                                                <f:facet name="content">
     141                                                                        <ice:commandLink actionListener="#{jobScheduleBean.selectNode}">
     142                                                                        <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
     143                                                                    <ice:outputText id="knoten" value="#{item.userObject.userObject.resName}"/>
     144                                                                                </ice:commandLink>
     145                                                                </f:facet>
     146                                                        </ice:treeNode>
     147                                                </ice:tree>
     148                                        </f:facet>
     149                                        <f:facet name="second">
     150                                               
     151                                        </f:facet>
     152                        </ice:panelDivider>                     
    108153                </ice:panelTab>
    109154         
Note: See TracChangeset for help on using the changeset viewer.