Font size changed when migrated to tomcat 10 version.

asked 2023-09-04 15:07:47 +0800

RajPriyan gravatar image RajPriyan

We previously used tomcat 7 version with Java 1.8, Zkoss version is In that Font size is 12. Now we migrated to tomcat 10 version with Java 11 & Zkoss version is same, But now the font size is 11.

If need to upgrade Zkoss version means, what are the steps I need to follow.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2023-09-12 17:02:59 +0800

MDuchemin gravatar image MDuchemin
2390 1 6
ZK Team

Very important information first in regard to choosing the tomcat version for your deployement: Tomcat 10 is a jakarta servlet container. The last version of Tomcat supporting the javax servlet implementation is tomcat 9.

In addition, the earliest ZK version to provide a jakarta-compatible release is ZK 9.6.0-jakarta.

Please refer to the following ZK documentation entries in regard to choosing your java / jakarta ZK version: https://www.zkoss.org/wiki/ZKInstallationGuide/BeforeYouStart/NewtoJakartaServlet https://www.zkoss.org/wiki/ZKInstallationGuide/ServletSpecification/Gettingstartedwith_ZK-Jakarta

If you are intending to use a ZK 5.X.X.X application, the latest available tomcat is tomcat 9 (which still supports javax.servlet implementations).

Alternatively, if you want to upgrade your ZK version and use tomcat 10, you will need to upgrade to ZK 9.6.0 or later to have access to the -jakarta version of the ZK dependencies.

Now, assuming you sorted out your migration:

ZK has different default themes depending on the ZK version. See the official theme documentation: https://www.zkoss.org/wiki/ZKDeveloper'sReference/ThemingandStyling/ZKOfficialThemes

Assuming that you use the same theme between your two versions:

If you access the two versions from different URLs, it's possible that you are zoomed in (or zoomed out) in one of the pages.

ZK itself should only retrieve style information from the style package associated with your project. A good idea would be to use the client-side developer tools and inspect one of the texts to verify which font-size is actually applied. When inspecting the font-size, you can check which source is providing that rule. If there is a difference in ZK, then you should see both font-size (11 and 12 px) originating from zk.wcs.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2023-09-04 15:07:47 +0800

Seen: 6 times

Last updated: Sep 12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More