Ignore:
Timestamp:
Apr 9, 2010, 10:56:07 AM (14 years ago)
Author:
tobias
Message:

visual design slightly modified. tree functions extended

File:
1 edited

Legend:

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

    r857 r858  
    1212     <title>Van Helsing</title>
    1313     <ice:outputStyle href="./xmlhttp/css/rime/rime.css" />
     14     <ice:outputStyle href="./css/tree.css" />
    1415     
    1516    </head>
     
    1819    <ice:form>
    1920    <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}" />
    2027                <ice:commandButton id="saveRes"
    2128                value="update resource"
    2229                actionListener="#{configurationBean.saveButtonListener}"/>
    23         <ice:commandButton id="newRes"
    24             value="create resource"
    25             actionListener="#{configurationBean.newResourceButtonListener}"/>
     30                <ice:commandButton id="deleteRes"
     31                        value="delete resource"
     32                        actionListener="#{configurationBean.deleteResourceButtonListener}" />
    2633        </ice:panelGroup>
    2734   
     
    4552                                        </f:facet>
    4653                                        <f:facet name="content">
    47                                         <!-- <ice:panelGroup> -->
    48                                                         <!-- styleClass="selectedNode#{item.userObject eq treeController.selectedUserObject}"
    49                                                         style="display: inline" > -->
     54                                        <ice:panelGroup  styleClass="selectedNode#{item.userObject.userObject.resId eq configurationBean.selectedId} selectedComponent#{item.userObject.selected}"
     55                                                        style="display:inline" >
     56
    5057                                                <ice:commandLink actionListener="#{configurationBean.userObjectItemNodeSelected}">
    5158                                                <f:param name="userObject.resId" value="#{item.userObject.userObject.resId}"/>
    5259                                            <ice:outputText id="knoten" value="#{item.userObject.userObject.value}"/>
    53                                         </ice:commandLink>
    54                                         <!-- </ice:panelGroup> -->
     60                                                        </ice:commandLink>
     61                                        </ice:panelGroup>
    5562                                        </f:facet>
    5663                                </ice:treeNode>
     
    6976                                                         <ice:outputText value="Key" />
    7077                                                 </f:facet>
    71                                                 <ice:outputText value="#{item.key}" />
     78                                                <ice:outputText style="color:red" rendered="#{item.required eq true}" value="#{item.key}" />
     79                                                <ice:outputText style="color:green" rendered="#{item.required eq false}" value="#{item.key}" />
    7280                                        </ice:column>
    7381                                        <ice:column>
     
    7684                                                </f:facet>
    7785                                                <ice:inputText rendered="#{item.inputText != null}" partialSubmit="true" value="#{item.keyValue}" />
    78                                                                 <ice:selectOneMenu id="KeyValue"
    79                                                                         rendered="#{item.selectOneMenu != null}"
    80                                                 valueChangeListener="#{configurationBean.userObjectItemOptionSelected}"
    81                                                 value="#{item.keyValue}"
    82                                                 partialSubmit="true">
    83                                                 <f:selectItems id="KeyValueItems"
    84                                                 value="#{item.keyValueList}"/>
    85                                                 </ice:selectOneMenu>                                           
     86                                                                <ice:panelGroup>
     87                                                                        <ice:selectOneMenu id="KeyValue"
     88                                                                                rendered="#{item.selectOneMenu != null}"
     89                                                        valueChangeListener="#{configurationBean.userObjectItemOptionSelected}"
     90                                                        value="#{item.keyValue}"
     91                                                        partialSubmit="true">
     92                                                        <f:selectItems id="KeyValueItems"
     93                                                        value="#{item.keyValueList}"/>
     94                                                        </ice:selectOneMenu>
     95                                                        <ice:commandButton id="newRes"
     96                                                                    value="+"
     97                                                                    rendered="#{item.selectOneMenu != null}"
     98                                                                    actionListener="#{configurationBean.newResourceButtonListener}"/>
     99                                                </ice:panelGroup>                                               
    86100                                        </ice:column>
    87101                                </ice:dataTable>
Note: See TracChangeset for help on using the changeset viewer.