From da71914c7adc7e59705ee76c8e65f9d7f59294dc Mon Sep 17 00:00:00 2001 From: Nils Christian Ehmke <nie@informatik.uni-kiel.de> Date: Sat, 28 Apr 2012 17:44:05 +0200 Subject: [PATCH] Click on a node in the graph selects it now. --- Kieker.WebGUI/src/main/webapp/main.xhtml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Kieker.WebGUI/src/main/webapp/main.xhtml b/Kieker.WebGUI/src/main/webapp/main.xhtml index eaea4f31..5ca6a0c7 100644 --- a/Kieker.WebGUI/src/main/webapp/main.xhtml +++ b/Kieker.WebGUI/src/main/webapp/main.xhtml @@ -113,17 +113,18 @@ <p:layoutUnit position="center" id="centerLayout"> <h:form id="centerForm" style="height: 100%"> <div class="canvas" id="mainCanvas" style="width : #{currentWorkspaceSizeBean.sizeX}px;height: #{currentWorkspaceSizeBean.sizeY}px"> - <c:forEach items="#{selectedMainProjectBean.mainProject.plugins}" var="plugin"> - <div class="ui-panel ui-widget ui-widget-content ui-corner-all block draggable" id="#{stringToIDBean.stringToID(plugin)}" > + <c:forEach items="#{selectedMainProjectBean.mainProject.plugins}" var="plugin" varStatus="counter"> + <p:remoteCommand name="setPlugin#{counter.index}" action="#{selectedPluginBean.setPlugin(plugin)}" update=":propertiesForm"/> + <!-- Netbeans reports an error here, but the code does still work though... --> + <div onclick="setPlugin#{counter.index}();" class="ui-panel ui-widget ui-widget-content ui-corner-all block draggable" id="#{stringToIDBean.stringToID(plugin)}" > <div class="ui-panel-titlebar ui-widget-header ui-corner-all"> <h:outputText style="font-weight: bold" value="#{plugin.getName()}"/> </div> - <p:commandLink ajax="true" value="Configure" action="#{selectedPluginBean.setPlugin(plugin)}" update=":propertiesForm"/> - <br/> <p:commandLink ajax="true" value="Connections" update=":connectionDialogForm" onclick="connectionDialog.show();"/> <br/> <p:commandLink ajax="true" value="Remove" action="#{selectedMainProjectBean.removePlugin(plugin)}" update=":propertiesForm"/> </div> + </c:forEach> <c:forEach items="#{selectedMainProjectBean.validConnections}" var="connection"> <div class="connector #{stringToIDBean.stringToID(connection.source)} #{stringToIDBean.stringToID(connection.destination)}"> -- GitLab