AMQ-5976: Filter queues by name in admin webconsole. Thanks to Francois Chartier for the patch. This closes #144.

This commit is contained in:
Claus Ibsen 2016-11-29 18:42:08 +01:00
parent f888cc2729
commit 0b767fcb0c
1 changed files with 19 additions and 1 deletions

View File

@ -24,6 +24,9 @@
<%@include file="decorators/header.jsp" %> <%@include file="decorators/header.jsp" %>
<table>
<tr>
<td>
<div> <div>
<form action="createDestination.action" method="post"> <form action="createDestination.action" method="post">
<input type="hidden" name="JMSDestinationType" value="queue"/> <input type="hidden" name="JMSDestinationType" value="queue"/>
@ -35,9 +38,21 @@
<input type="submit" value="Create"/> <input type="submit" value="Create"/>
</form> </form>
</div> </div>
</td>
<td>
<div>
<form action="queues.jsp" method="get">
<label name="destination">Queue Name Filter</label>
<input type="text" name="QueueFilter" value="${param.QueueFilter}"/>
<h2>Queues</h2> <input type="submit" value="Filter"/>
</form>
</div>
</tr>
</table>
<h2>Queues:<c:if test="${null != param.QueueFilter && param.QueueFilter != ''}"> (filter='${param.QueueFilter}')</c:if></h2>
<table id="queues" class="sortable autostripe"> <table id="queues" class="sortable autostripe">
<thead> <thead>
@ -53,6 +68,7 @@
</thead> </thead>
<tbody> <tbody>
<c:forEach items="${requestContext.brokerQuery.queues}" var="row"> <c:forEach items="${requestContext.brokerQuery.queues}" var="row">
<c:if test="${param.QueueFilter == '' || fn:containsIgnoreCase(row.name, param.QueueFilter)}">
<tr> <tr>
<td><a href="<c:url value="browse.jsp"> <td><a href="<c:url value="browse.jsp">
@ -85,6 +101,8 @@
<c:param name="secret" value='${sessionScope["secret"]}'/></c:url>">Delete</a> <c:param name="secret" value='${sessionScope["secret"]}'/></c:url>">Delete</a>
</td> </td>
</tr> </tr>
</c:if>
</c:forEach> </c:forEach>
</tbody> </tbody>
</table> </table>