Ignore:
Timestamp:
May 3, 2010, 7:12:46 PM (14 years ago)
Author:
tobias
Message:

configurationView moved to new DataTree class.
implemented selectOneMenu on DataTree

File:
1 edited

Legend:

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

    r867 r868  
    2121        <ice:panelTabSet>
    2222                <ice:panelTab  label="Configuration">
    23                             <ice:panelGroup style="float:top">
    24                                 <ice:commandButton id="newClient"
    25                                         value="create client"
    26                                         actionListener="#{configurationBean.newClientButtonListener}" />
    27                                        
    28                                 <ice:commandButton id="newRes"
    29                                     value="create resource"
    30                                     actionListener="#{configurationBean.newResourceButtonListener}">
    31                                     </ice:commandButton>
    32                                    
    33                                         <ice:commandButton id="reloadRes"
    34                                                 value="reload Tree"
    35                                                 actionListener="#{configurationBean.reloadResourceButtonListener}" />
    36                                        
    37                                         <ice:commandButton id="saveRes"
    38                                         value="update resource"
    39                                         actionListener="#{configurationBean.saveButtonListener}"/>
    40                                        
    41                                         <ice:commandButton id="deleteRes"
    42                                                 value="delete resource"
    43                                                 actionListener="#{configurationBean.deleteResourceButtonListener}" />
    44                                 </ice:panelGroup>
    4523               
    46                         <ice:panelDivider style="height:600px;width:85%" dividerPosition="30">
     24                        <ice:panelDivider style="height:600px;width:95%" dividerPosition="30">
    4725                        <f:facet name="first">
    4826                        <ice:tree id="baum"     
    49                                         value="#{configurationBean.tree}"
     27                                        value="#{configurationBean.dataTree.tree}"
    5028                                        var="item"
    5129                                        hideRootNode = "false"
     
    6139                                        </f:facet>
    6240                                        <f:facet name="content">
    63                                         <ice:panelGroup  styleClass="selectedNode#{item.userObject.userObject.resId eq configurationBean.selectedId} selectedComponent#{item.userObject.selected}"
    64                                                         style="display:inline" >
     41                                        <!--<ice:panelGroup  styleClass="selectedNode#{item.userObject.userObject.resId eq configurationBean.selectedId} selectedComponent#{item.userObject.selected}"
     42                                                        style="display:inline" > -->
    6543
    66                                                 <ice:commandLink actionListener="#{configurationBean.userObjectItemNodeSelected}">
     44                                                <ice:commandLink actionListener="#{configurationBean.renderResource}">
    6745                                                <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
    68                                                 <f:param name="userObject.resName" value="#{item.userObject.userObject.value}" />
    69                                                 <ice:outputText id="knoten" value="#{item.userObject.userObject.value}"/>
     46                                                <f:param name="userObject.resName" value="#{item.userObject.userObject.resName}" />
     47                                                <ice:outputText id="knoten" value="#{item.userObject.userObject.resName}"/>
    7048                                                </ice:commandLink>
    71                                         </ice:panelGroup>
     49                                        <!--</ice:panelGroup> -->
    7250                                        </f:facet>
    7351                                </ice:treeNode>
     
    7654                        <f:facet name="second">
    7755                        <ice:panelGrid cellpadding="0" cellspacing="3"
    78                                 columns="2" rendered="#{configurationBean.selectedObject != null}">
     56                                columns="2" rendered="#{configurationBean.selectedObject.viewItemList != null}">
    7957                                <ice:dataTable
    8058                                        var="item"
    81                                          value="#{configurationBean.selectedObject}"
     59                                         value="#{configurationBean.selectedObject.viewItemList}"
    8260                                         style="float:left,bottom; width:90%"
    8361                                         >
     
    8664                                                         <ice:outputText value="Key" />
    8765                                                 </f:facet>
    88                                                 <ice:outputText style="color:red" rendered="#{item.required eq true}" value="#{item.key}" />
    89                                                 <ice:outputText style="color:green" rendered="#{item.required eq false}" value="#{item.key}" />
     66                                                <ice:outputText rendered="#{item.required eq true}" value="#{item.key}" />
     67                                                <ice:outputText style="color:grey" rendered="#{item.required eq false}" value="#{item.key}" />
    9068                                        </ice:column>
    9169                                        <ice:column>
     
    11795                        </f:facet>
    11896                        </ice:panelDivider>
     97                            <ice:panelGroup style="float:top">
     98                                <ice:commandButton id="newClient"
     99                                        value="create client"
     100                                        actionListener="#{configurationBean.newClientButtonListener}" />
     101                                       
     102                                <ice:commandButton id="newRes"
     103                                    value="create resource"
     104                                    actionListener="#{configurationBean.newResourceButtonListener}">
     105                                    </ice:commandButton>
     106                                   
     107                                        <ice:commandButton id="reloadRes"
     108                                                value="reload Tree"
     109                                                actionListener="#{configurationBean.reloadResourceButtonListener}" />
     110                                       
     111                                        <ice:commandButton id="saveRes"
     112                                        value="update resource"
     113                                        actionListener="#{configurationBean.saveButtonListener}"/>
     114                                       
     115                                        <ice:commandButton id="deleteRes"
     116                                                value="delete resource"
     117                                                actionListener="#{configurationBean.deleteResourceButtonListener}" />
     118                                </ice:panelGroup>
     119                       
    119120                </ice:panelTab>
    120121         
Note: See TracChangeset for help on using the changeset viewer.