From 2d0d09591263c0878f9c082637d6bbd7978b6c66 Mon Sep 17 00:00:00 2001 From: WangJian <1925432244@qq.com> Date: Sun, 19 Mar 2017 09:45:11 +0800 Subject: [PATCH 01/13] NIFI-3603:Updated nifi-web-ui POM to add localization files --- .../nifi-framework/nifi-web/nifi-web-ui/pom.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/pom.xml b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/pom.xml index 9108fe75774a..1ddf5d72ef7e 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/pom.xml +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/pom.xml @@ -264,6 +264,14 @@ ${staging.dir}/WEB-INF/web.xml + + src/main/java + WEB-INF/classes + + *.properties + + true + src/main/webapp/WEB-INF/pages WEB-INF/pages @@ -867,6 +875,7 @@ js/nf/bulletin-board/nf-bulletin-board-all.js.gz, js/nf/login/nf-login-all.js, js/nf/login/nf-login-all.js.gz, + js/nf/globalization/resources.js, views/*, fonts/**/*, images/*, From abf1ed3cd63b89c06945273783c7826ba6d7f9c7 Mon Sep 17 00:00:00 2001 From: WangJian <1925432244@qq.com> Date: Sun, 19 Mar 2017 10:03:24 +0800 Subject: [PATCH 02/13] NIFI-3603:Updated WEB-INF to add jstl dependencies to the jsp files and the jstl configuration in web.xml --- .../webapp/WEB-INF/pages/bulletin-board.jsp | 1 + .../src/main/webapp/WEB-INF/pages/canvas.jsp | 1 + .../src/main/webapp/WEB-INF/pages/cluster.jsp | 1 + .../main/webapp/WEB-INF/pages/counters.jsp | 1 + .../src/main/webapp/WEB-INF/pages/history.jsp | 1 + .../src/main/webapp/WEB-INF/pages/login.jsp | 1 + .../main/webapp/WEB-INF/pages/provenance.jsp | 1 + .../src/main/webapp/WEB-INF/pages/summary.jsp | 1 + .../main/webapp/WEB-INF/pages/templates.jsp | 1 + .../src/main/webapp/WEB-INF/pages/users.jsp | 1 + .../webapp/WEB-INF/partials/banners-main.jsp | 1 + .../WEB-INF/partials/banners-utility.jsp | 1 + .../bulletin-board/bulletin-board-content.jsp | 18 +++-- .../WEB-INF/partials/canvas/about-dialog.jsp | 10 +-- .../WEB-INF/partials/canvas/canvas-header.jsp | 29 +++---- .../canvas/component-state-dialog.jsp | 14 ++-- .../canvas/connection-configuration.jsp | 58 ++++++++------ .../partials/canvas/connections-dialog.jsp | 7 +- .../controller-service-configuration.jsp | 14 ++-- .../disable-controller-service-dialog.jsp | 23 +++--- .../canvas/drop-request-status-dialog.jsp | 1 + .../enable-controller-service-dialog.jsp | 18 +++-- .../partials/canvas/fill-color-dialog.jsp | 11 +-- .../WEB-INF/partials/canvas/flow-status.jsp | 4 +- .../canvas/flowfile-details-dialog.jsp | 33 ++++---- .../canvas/instantiate-template-dialog.jsp | 3 +- .../partials/canvas/label-configuration.jsp | 5 +- .../canvas/listing-request-status-dialog.jsp | 1 + .../WEB-INF/partials/canvas/navigation.jsp | 64 +++++++++------ .../canvas/new-controller-service-dialog.jsp | 10 ++- .../partials/canvas/new-port-dialog.jsp | 3 +- .../canvas/new-process-group-dialog.jsp | 3 +- .../partials/canvas/new-processor-dialog.jsp | 10 ++- .../new-remote-process-group-dialog.jsp | 46 ++++++----- .../canvas/new-reporting-task-dialog.jsp | 12 +-- .../partials/canvas/new-template-dialog.jsp | 5 +- .../canvas/override-policy-dialog.jsp | 7 +- .../partials/canvas/policy-management.jsp | 22 +++--- .../partials/canvas/port-configuration.jsp | 14 ++-- .../WEB-INF/partials/canvas/port-details.jsp | 7 +- .../canvas/process-group-configuration.jsp | 16 ++-- .../canvas/processor-configuration.jsp | 79 +++++++++++-------- .../WEB-INF/partials/canvas/queue-listing.jsp | 8 +- .../canvas/remote-port-configuration.jsp | 10 ++- .../remote-process-group-configuration.jsp | 47 ++++++----- .../canvas/remote-process-group-details.jsp | 49 +++++++----- .../canvas/remote-process-group-ports.jsp | 9 ++- .../canvas/reporting-task-configuration.jsp | 21 ++--- .../partials/canvas/search-users-dialog.jsp | 8 +- .../partials/canvas/settings-content.jsp | 25 +++--- .../webapp/WEB-INF/partials/canvas/shell.jsp | 7 +- .../canvas/upload-template-dialog.jsp | 6 +- .../partials/cluster/cluster-content.jsp | 13 +-- .../partials/cluster/node-details-dialog.jsp | 7 +- .../WEB-INF/partials/connection-details.jsp | 34 ++++---- .../partials/counters/counters-content.jsp | 13 +-- .../history/action-details-dialog.jsp | 1 + .../partials/history/history-content.jsp | 20 +++-- .../history/history-filter-dialog.jsp | 23 +++--- .../partials/history/history-purge-dialog.jsp | 11 ++- .../WEB-INF/partials/login/login-form.jsp | 13 +-- .../WEB-INF/partials/login/login-message.jsp | 1 + .../WEB-INF/partials/login/login-progress.jsp | 1 + .../partials/login/login-submission.jsp | 3 +- .../webapp/WEB-INF/partials/message-pane.jsp | 5 +- .../webapp/WEB-INF/partials/ok-dialog.jsp | 1 + .../WEB-INF/partials/processor-details.jsp | 54 +++++++------ .../provenance/lineage-query-dialog.jsp | 1 + .../provenance/provenance-content.jsp | 23 +++--- .../provenance-event-details-dialog.jsp | 67 ++++++++-------- .../provenance/provenance-query-dialog.jsp | 1 + .../provenance/provenance-search-dialog.jsp | 37 +++++---- .../partials/status-history-dialog.jsp | 6 +- .../cluster-connection-summary-dialog.jsp | 6 +- .../cluster-input-port-summary-dialog.jsp | 6 +- .../cluster-output-port-summary-dialog.jsp | 6 +- .../cluster-process-group-summary-dialog.jsp | 6 +- .../cluster-processor-summary-dialog.jsp | 6 +- ...er-remote-process-group-summary-dialog.jsp | 6 +- .../partials/summary/summary-content.jsp | 19 +++-- .../summary/system-diagnostics-dialog.jsp | 65 +++++++-------- .../summary/view-single-node-dialog.jsp | 3 +- .../partials/templates/templates-content.jsp | 13 +-- .../partials/users/user-delete-dialog.jsp | 3 +- .../WEB-INF/partials/users/user-dialog.jsp | 11 +-- .../partials/users/user-policies-dialog.jsp | 8 +- .../WEB-INF/partials/users/users-content.jsp | 13 +-- .../webapp/WEB-INF/partials/yes-no-dialog.jsp | 1 + .../src/main/webapp/WEB-INF/web.xml | 10 ++- 89 files changed, 751 insertions(+), 515 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/bulletin-board.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/bulletin-board.jsp index 62e3320a455b..9e36d11f13d6 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/bulletin-board.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/bulletin-board.jsp @@ -48,6 +48,7 @@ + ${nf.bulletin.board.script.tags} diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/canvas.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/canvas.jsp index 48db66e84c32..eb0ef66d4249 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/canvas.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/canvas.jsp @@ -76,6 +76,7 @@ + ${nf.canvas.script.tags} diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/cluster.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/cluster.jsp index 4814f412e849..f5b6901e050e 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/cluster.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/cluster.jsp @@ -53,6 +53,7 @@ + ${nf.cluster.script.tags} diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/counters.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/counters.jsp index 1d5f1ab33966..b8dadb66b626 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/counters.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/counters.jsp @@ -52,6 +52,7 @@ + ${nf.counters.script.tags} diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/history.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/history.jsp index f86c5f48f1c1..2b3825057000 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/history.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/history.jsp @@ -52,6 +52,7 @@ + ${nf.history.script.tags} diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/login.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/login.jsp index 26b6dba3e1eb..1efa0af3c647 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/login.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/login.jsp @@ -39,6 +39,7 @@ + ${nf.login.script.tags} diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/provenance.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/provenance.jsp index b4eb6a035b97..8a44a0db254b 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/provenance.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/provenance.jsp @@ -63,6 +63,7 @@ + ${nf.provenance.script.tags} diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/summary.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/summary.jsp index 1746e6bcab7d..7570e4d26761 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/summary.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/summary.jsp @@ -69,6 +69,7 @@ + ${nf.summary.script.tags} diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/templates.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/templates.jsp index be0ad6d37275..138a1d8e21e2 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/templates.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/templates.jsp @@ -52,6 +52,7 @@ + ${nf.templates.script.tags} diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/users.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/users.jsp index 42d07914cb2d..e148c8dccfd1 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/users.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/users.jsp @@ -55,6 +55,7 @@ + ${nf.users.script.tags} diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/banners-main.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/banners-main.jsp index 7950bbb83e95..e6b1826f16fc 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/banners-main.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/banners-main.jsp @@ -15,5 +15,6 @@ limitations under the License. --%> <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> \ No newline at end of file diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/banners-utility.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/banners-utility.jsp index 33e4c41bfe05..d35641400020 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/banners-utility.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/banners-utility.jsp @@ -15,5 +15,6 @@ limitations under the License. --%> <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> \ No newline at end of file diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/bulletin-board/bulletin-board-content.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/bulletin-board/bulletin-board-content.jsp index 39fa055a7932..078e38492466 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/bulletin-board/bulletin-board-content.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/bulletin-board/bulletin-board-content.jsp @@ -15,12 +15,14 @@ limitations under the License. --%> <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
-
NiFi Templates
+
- + +
@@ -28,16 +30,18 @@
- - Auto-refresh + + + - + +
- Last updated:  +
- Clear +
\ No newline at end of file diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/about-dialog.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/about-dialog.jsp index 6453da6deb23..66677c59a368 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/about-dialog.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/about-dialog.jsp @@ -15,6 +15,7 @@ limitations under the License. --%> <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
@@ -27,17 +28,14 @@

- Tagged +

- From on branch +

- Apache NiFi is a framework to support highly scalable and flexible dataflows. - It can be run on laptops up through clusters of enterprise class servers. - Instead of dictating a particular dataflow or behavior it empowers you to design your own - optimal dataflow tailored to your specific environment. +

diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/canvas-header.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/canvas-header.jsp index c7064f8ff7bc..154f9e268166 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/canvas-header.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/canvas-header.jsp @@ -15,6 +15,7 @@ limitations under the License. --%> <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
@@ -85,11 +86,11 @@
@@ -100,20 +101,20 @@ - Summary + - Counters + - Bulletin Board + @@ -122,14 +123,14 @@ - Data Provenance + - Controller Settings + - Cluster + - Flow Configuration History + @@ -151,34 +152,34 @@ - Users + - Policies + - Templates + - Help + - About + diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/component-state-dialog.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/component-state-dialog.jsp index 44768ddd4162..74b92e0dbfa0 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/component-state-dialog.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/component-state-dialog.jsp @@ -15,35 +15,37 @@ limitations under the License. --%> <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> \ No newline at end of file diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/connection-configuration.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/connection-configuration.jsp index 9e657437e288..e95ebd090bf7 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/connection-configuration.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/connection-configuration.jsp @@ -15,6 +15,7 @@ limitations under the License. --%> <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>