[ ] Node A
+ [ ] Child node 1
+ [ ] Child node 2
+
+
+Legend:
+[ ] -> Node unchecked
+[-] -> Node partly-checked
+[*] -> Node checked
+From aa1f12422455fd3f2d2cde52e985ef1bf5e3abe5 Mon Sep 17 00:00:00 2001 From: Eclipse Scout Technical User <69901525+EclipseScoutTechUser@users.noreply.github.com> Date: Mon, 12 Feb 2024 18:38:16 +0100 Subject: [PATCH] Update Scout antora docs --- .../24.1/migration/migration-guide.html | 125 +++++++++++++++--- .../24.1/releasenotes/release-notes.html | 17 ++- search-index.js | 2 +- 3 files changed, 124 insertions(+), 20 deletions(-) diff --git a/scout-docs/24.1/migration/migration-guide.html b/scout-docs/24.1/migration/migration-guide.html index 7520deea..52046d81 100644 --- a/scout-docs/24.1/migration/migration-guide.html +++ b/scout-docs/24.1/migration/migration-guide.html @@ -509,7 +509,7 @@
As part of the switch to Jakarta EE the third party library dependency to Apache File Upload was eliminated. Scout now relies on plain Jakarta EE API to process HTTP multipart requests. Servlets processing multipart requests using Jakarta EE API requires a multipart-config in their servlet registration.
If you use a web.xml
-based deployment (legacy only, see Removal of .war modules), make sure to add a <multipart-config> section to your web.xml
where the UiServlet
is registered:
If you use a web.xml
-based deployment (legacy only, see Removal of .war Modules), make sure to add a <multipart-config> section to your web.xml
where the UiServlet
is registered:
If you switch to a Jetty-based deployment (see chapter Former JettyServer for development can be used in a productive environment for details) a default multipart configuration providing the ability +
If you switch to a Jetty-based deployment (see chapter Former JettyServer for Development Can Be Used in a Productive Environment for details) a default multipart configuration providing the ability to upload multipart requests with unlimited size is used by default (see chapter UIServlet). This corresponds to the same behavior as using the former Apache File Upload based implementation.
org.eclipse.scout.dev.jetty.JettyServer
was so far only used for development environments.
@@ -720,7 +720,7 @@
The support for using a web.xml
was dropped when using the Scout Application, IServletContributor
and IServletFilterContributer
are used instead (see web.xml and Removal of .war modules).
The support for using a web.xml
was dropped when using the Scout Application, IServletContributor
and IServletFilterContributer
are used instead (see web.xml and Removal of .war Modules).
The following renaming/refactoring is applied.
@@ -1111,7 +1111,7 @@The build of a .war
file to be used within an application server (e.g. Tomcat) is deprecated now and might not work anymore in a further release (due to dependencies issues).
Thus, it’s highly recommended to either use shell scripts to run your productive environment as a service or built docker images to be used in Kubernetes or a similar setup.
@@ -1272,7 +1272,7 @@
WebappEventListener
is still available and might be used for legacy applications running within an application server (see Removal of .war modules),
+
WebappEventListener
is still available and might be used for legacy applications running within an application server (see Removal of .war Modules),
but it is marked as deprecated and might be removed in a future release.
ServletContext could be accessed via BEANS.get/.opt so far because it was registered via WebappEventListener
.
It was only used within ServletContextMimeTypeDetector
to ask the servlet context for its mime type mapping.
@@ -1324,7 +1324,7 @@
The former deprecated class IdExternalFormatter
was removed.
@@ -1400,7 +1400,7 @@
For the FormBasedAccessController
and the corresponding login box a basic second-factor support was added; a new credential verifier return value org.eclipse.scout.rt.platform.security.ICredentialVerifier.AUTH_2FA_REQUIRED
was added which will prompt for a second factor token. To verify this token a second-factor verifier ICredentialVerifier
needs to be registered.
When the autoCheckChildren
property of the Tree or TreeBox widget is set to true
(e.g. by overriding
+getConfiguredAutoCheckChildNodes()
) the automatic check behavior has changed.
Assuming the following tree structure is given:
+[ ] Node A
+ [ ] Child node 1
+ [ ] Child node 2
+
+
+Legend:
+[ ] -> Node unchecked
+[-] -> Node partly-checked
+[*] -> Node checked
+When checking or unchecking 'Node A' all its children are checked/unchecked too.
+[*] Node A
+ [*] Child node 1 <- Automatically checked
+ [*] Child node 2 <- Automatically checked
+When some of the child nodes are checked, the parent nodes get partly-checked.
+[-] Node A <- Partly checked
+ [*] Child node 1
+ [ ] Child node 2
+When 'Child Node 2' gets checked too, the parent node is checked automatically. +Attention: The mechanism of auto-checking the parent is new. It may break the logic in your application.
+[*] Node A <- Automatically checked
+ [*] Child node 1
+ [*] Child node 2
+AbstractTree
execAutoCheckChildNodes
Before this change, the auto-check logic was implemented in Java and JavaScript. The
+org.eclipse.scout.rt.client.ui.basic.tree.AbstractTree#execAutoCheckChildNodes
method implemented the logic
+on Java side. This method was removed. The complete auto-check logic is now only on JavaScript side.
To check all nodes of a tree in java, it was possible to check the root node while autoCheckChildren
was true.
+This is no longer supported. The new best practice is to use the
+org.eclipse.scout.rt.client.ui.basic.tree.AbstractTree#checkAllNodes
method.
// No longer supported
+tree.setNodeChecked(tree.getRootNode(), true);
+
+// Use this
+tree.checkAllNodes();
+The former org.eclipse.scout.dev.jetty.JettyServer
(now Application
) was so far only used for development environments.
With this release it was improved so that it can be used in a productive environment too.
The Scout Application class (org.eclipse.scout.rt.app.Application
) contains a main-method which may be started directly and itself starts an embedded Jetty server.
Therefore, an application server isn’t required anymore.
-See the migration guide for further information.
When enabling AutoCheckChildNodes
for a Tree or TreeBox widget, the behavior of automatic node checking has changed.
+The new behavior improves the consistence and represents better the real world requirements. For more details, consider
+reading the corresponding chapter in the
+migration guide.