From 4bb81d5909e93bb008a5c6f7e350cd4e1395ea04 Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Wed, 2 Nov 2022 08:39:49 +0100 Subject: [PATCH 1/2] WW-5255 Fixes and and uses them across tags --- .../main/webapp/WEB-INF/decorators/main.jsp | 19 ++++--- .../struts2/interceptor/debugging/console.ftl | 8 +-- .../resources/template/css_xhtml/head.ftl | 2 +- .../resources/template/simple/combobox.ftl | 14 ++--- .../main/resources/template/simple/debug.ftl | 16 +++--- .../template/simple/doubleselect.ftl | 4 +- .../template/simple/form-close-tooltips.ftl | 11 ++-- .../resources/template/simple/form-close.ftl | 4 +- .../main/resources/template/simple/head.ftl | 2 +- .../template/simple/inputtransferselect.ftl | 2 +- .../main/resources/template/simple/link.ftl | 52 +++++++++---------- .../main/resources/template/simple/nonce.ftl | 4 +- .../template/simple/optiontransferselect.ftl | 2 +- .../main/resources/template/simple/script.ftl | 33 +++++------- .../template/simple/updownselect.ftl | 4 +- .../template/xhtml/form-close-validate.ftl | 8 +-- .../resources/template/xhtml/form-close.ftl | 4 +- .../template/xhtml/form-validate.ftl | 2 +- .../main/resources/template/xhtml/head.ftl | 2 +- .../main/resources/template/xhtml/link.ftl | 21 -------- .../main/resources/template/xhtml/script.ftl | 21 -------- .../FreemarkerResultMockedTest.java | 3 +- .../struts2/views/jsp/ui/LinkTagTest.java | 6 ++- .../views/freemarker/callActionFreeMarker.ftl | 4 +- .../freemarker/callActionFreeMarker2.ftl | 4 +- .../views/freemarker/customTextField.ftl | 2 - .../views/freemarker/dynaAttributes.ftl | 2 - .../freemarker/incompatible-improvements.ftl | 4 +- .../struts2/views/freemarker/manual-list.ftl | 2 - .../struts2/views/freemarker/nested.ftl | 4 +- .../struts2/views/freemarker/nonceTest.ftl | 2 - .../struts2/views/freemarker/something.ftl | 2 - .../struts2/views/jsp/ui/HeadTagTest-1.txt | 4 +- .../apache/struts2/views/jsp/ui/tooltip-1.txt | 2 +- .../apache/struts2/views/jsp/ui/tooltip-2.txt | 4 +- .../apache/struts2/views/jsp/ui/tooltip-3.txt | 2 +- .../config-browser/showValidators.ftl | 32 +++++++----- 37 files changed, 132 insertions(+), 182 deletions(-) delete mode 100644 core/src/main/resources/template/xhtml/link.ftl delete mode 100644 core/src/main/resources/template/xhtml/script.ftl diff --git a/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp b/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp index ff1353032..77f387ace 100644 --- a/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp +++ b/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp @@ -64,14 +64,14 @@ <decorator:title default="Struts2 Showcase"/> - + - + - + - + $(function () { var alerts = $('ul.alert').wrap('
'); @@ -82,19 +82,22 @@ - + - + + + jQuery(document).ready(function() { prettyPrint(); } ); + - +